Add Equations device group #126

This commit is contained in:
Vadim Kuznetsov 2022-08-06 15:30:27 +03:00
parent c93419789e
commit 098228edc6
2 changed files with 10 additions and 2 deletions

View File

@ -86,8 +86,8 @@ Component* Equation::newOne()
Element* Equation::info(QString& Name, char* &BitmapFile, bool getNewOne)
{
Name = QObject::tr("Equation");
BitmapFile = (char *) "";
Name = QObject::tr("Qucs legacy equation");
BitmapFile = (char *) "equation";
if(getNewOne) return new Equation();
return 0;

View File

@ -211,6 +211,8 @@ void Module::intoCategory (Module * m) {
REGISTER_COMP_1 (QObject::tr("simulations"),val)
#define REGISTER_DIAGRAM_1(val) \
REGISTER_MOD_1 (QObject::tr("diagrams"),val)
#define REGISTER_EQUATION_1(val) \
REGISTER_MOD_1 (QObject::tr("equations"),val)
#define REGISTER_DIAGRAM_2(val,inf1,inf2) \
REGISTER_MOD_2 (QObject::tr("diagrams"),val,inf1,inf2)
#define REGISTER_PAINT_1(val) \
@ -548,6 +550,12 @@ void Module::registerModules (void) {
REGISTER_DIAGRAM_1 (TimingDiagram);
REGISTER_DIAGRAM_1 (TruthDiagram);
// equations
REGISTER_EQUATION_1 (NutmegEquation);
REGISTER_EQUATION_1 (SpiceParam);
REGISTER_EQUATION_1 (SpiceGlobalParam);
REGISTER_EQUATION_1 (Equation);
// external simulation
if (QucsSettings.DefaultSimulator == spicecompat::simQucsator) {
REGISTER_EXTERNAL_1 (ETR_Sim);