Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
module.cpp File Reference
#include <QtGui>
#include <Q3Dict>
#include <QString>
#include <QStringList>
#include <Q3PtrList>
#include "element.h"
#include "components/component.h"
#include "components/components.h"
#include "paintings/paintings.h"
#include "diagrams/diagrams.h"
#include "module.h"

Go to the source code of this file.

Macros

#define REGISTER_MOD_1(cat, val)   registerModule (cat, &val::info)
 
#define REGISTER_MOD_2(cat, val, inf1, inf2)
 
#define REGISTER_MOD_3(cat, val, inf1, inf2, inf3)
 
#define REGISTER_COMP_1(cat, val)   registerComponent (cat, &val::info)
 
#define REGISTER_COMP_2(cat, val, inf1, inf2)
 
#define REGISTER_COMP_3(cat, val, inf1, inf2, inf3)
 
#define REGISTER_LUMPED_1(val)   REGISTER_COMP_1 (QObject::tr("lumped components"),val)
 
#define REGISTER_LUMPED_2(val, inf1, inf2)   REGISTER_COMP_2 (QObject::tr("lumped components"),val,inf1,inf2)
 
#define REGISTER_SOURCE_1(val)   REGISTER_COMP_1 (QObject::tr("sources"),val)
 
#define REGISTER_PROBE_1(val)   REGISTER_COMP_1 (QObject::tr("probes"),val)
 
#define REGISTER_TRANS_1(val)   REGISTER_COMP_1 (QObject::tr("transmission lines"),val)
 
#define REGISTER_NONLINEAR_1(val)   REGISTER_COMP_1 (QObject::tr("nonlinear components"),val)
 
#define REGISTER_NONLINEAR_2(val, inf1, inf2)   REGISTER_COMP_2 (QObject::tr("nonlinear components"),val,inf1,inf2)
 
#define REGISTER_NONLINEAR_3(val, inf1, inf2, inf3)   REGISTER_COMP_3 (QObject::tr("nonlinear components"),val,inf1,inf2,inf3)
 
#define REGISTER_VERILOGA_1(val)   REGISTER_COMP_1 (QObject::tr("verilog-a devices"),val)
 
#define REGISTER_VERILOGA_2(val, inf1, inf2)   REGISTER_COMP_2 (QObject::tr("verilog-a devices"),val,inf1,inf2)
 
#define REGISTER_DIGITAL_1(val)   REGISTER_COMP_1 (QObject::tr("digital components"),val)
 
#define REGISTER_FILE_1(val)   REGISTER_COMP_1 (QObject::tr("file components"),val)
 
#define REGISTER_FILE_3(val, inf1, inf2, inf3)   REGISTER_COMP_3 (QObject::tr("file components"),val,inf1,inf2,inf3)
 
#define REGISTER_SIMULATION_1(val)   REGISTER_COMP_1 (QObject::tr("simulations"),val)
 
#define REGISTER_DIAGRAM_1(val)   REGISTER_MOD_1 (QObject::tr("diagrams"),val)
 
#define REGISTER_DIAGRAM_2(val, inf1, inf2)   REGISTER_MOD_2 (QObject::tr("diagrams"),val,inf1,inf2)
 
#define REGISTER_PAINT_1(val)   REGISTER_MOD_1 (QObject::tr("paintings"),val)
 
#define REGISTER_PAINT_2(val, inf1, inf2)   REGISTER_MOD_2 (QObject::tr("paintings"),val,inf1,inf2)
 
#define REGISTER_EXTERNAL_1(val)   REGISTER_COMP_1 (QObject::tr("external sim components"),val)
 

Macro Definition Documentation

#define REGISTER_COMP_1 (   cat,
  val 
)    registerComponent (cat, &val::info)

Definition at line 171 of file module.cpp.

#define REGISTER_COMP_2 (   cat,
  val,
  inf1,
  inf2 
)
Value:
registerComponent (cat, &val::inf1); \
registerComponent (cat, &val::inf2)

Definition at line 173 of file module.cpp.

#define REGISTER_COMP_3 (   cat,
  val,
  inf1,
  inf2,
  inf3 
)
Value:
registerComponent (cat, &val::inf1); \
registerComponent (cat, &val::inf2); \
registerComponent (cat, &val::inf3)

Definition at line 176 of file module.cpp.

#define REGISTER_DIAGRAM_1 (   val)    REGISTER_MOD_1 (QObject::tr("diagrams"),val)

Definition at line 209 of file module.cpp.

#define REGISTER_DIAGRAM_2 (   val,
  inf1,
  inf2 
)    REGISTER_MOD_2 (QObject::tr("diagrams"),val,inf1,inf2)

Definition at line 211 of file module.cpp.

#define REGISTER_DIGITAL_1 (   val)    REGISTER_COMP_1 (QObject::tr("digital components"),val)

Definition at line 201 of file module.cpp.

#define REGISTER_EXTERNAL_1 (   val)    REGISTER_COMP_1 (QObject::tr("external sim components"),val)

Definition at line 217 of file module.cpp.

#define REGISTER_FILE_1 (   val)    REGISTER_COMP_1 (QObject::tr("file components"),val)

Definition at line 203 of file module.cpp.

#define REGISTER_FILE_3 (   val,
  inf1,
  inf2,
  inf3 
)    REGISTER_COMP_3 (QObject::tr("file components"),val,inf1,inf2,inf3)

Definition at line 205 of file module.cpp.

#define REGISTER_LUMPED_1 (   val)    REGISTER_COMP_1 (QObject::tr("lumped components"),val)

Definition at line 181 of file module.cpp.

#define REGISTER_LUMPED_2 (   val,
  inf1,
  inf2 
)    REGISTER_COMP_2 (QObject::tr("lumped components"),val,inf1,inf2)

Definition at line 183 of file module.cpp.

#define REGISTER_MOD_1 (   cat,
  val 
)    registerModule (cat, &val::info)

Definition at line 161 of file module.cpp.

#define REGISTER_MOD_2 (   cat,
  val,
  inf1,
  inf2 
)
Value:
registerModule (cat, &val::inf1); \
registerModule (cat, &val::inf2)

Definition at line 163 of file module.cpp.

#define REGISTER_MOD_3 (   cat,
  val,
  inf1,
  inf2,
  inf3 
)
Value:
registerModule (cat, &val::inf1); \
registerModule (cat, &val::inf2); \
registerModule (cat, &val::inf3)

Definition at line 166 of file module.cpp.

#define REGISTER_NONLINEAR_1 (   val)    REGISTER_COMP_1 (QObject::tr("nonlinear components"),val)

Definition at line 191 of file module.cpp.

#define REGISTER_NONLINEAR_2 (   val,
  inf1,
  inf2 
)    REGISTER_COMP_2 (QObject::tr("nonlinear components"),val,inf1,inf2)

Definition at line 193 of file module.cpp.

#define REGISTER_NONLINEAR_3 (   val,
  inf1,
  inf2,
  inf3 
)    REGISTER_COMP_3 (QObject::tr("nonlinear components"),val,inf1,inf2,inf3)

Definition at line 195 of file module.cpp.

#define REGISTER_PAINT_1 (   val)    REGISTER_MOD_1 (QObject::tr("paintings"),val)

Definition at line 213 of file module.cpp.

#define REGISTER_PAINT_2 (   val,
  inf1,
  inf2 
)    REGISTER_MOD_2 (QObject::tr("paintings"),val,inf1,inf2)

Definition at line 215 of file module.cpp.

#define REGISTER_PROBE_1 (   val)    REGISTER_COMP_1 (QObject::tr("probes"),val)

Definition at line 187 of file module.cpp.

#define REGISTER_SIMULATION_1 (   val)    REGISTER_COMP_1 (QObject::tr("simulations"),val)

Definition at line 207 of file module.cpp.

#define REGISTER_SOURCE_1 (   val)    REGISTER_COMP_1 (QObject::tr("sources"),val)

Definition at line 185 of file module.cpp.

#define REGISTER_TRANS_1 (   val)    REGISTER_COMP_1 (QObject::tr("transmission lines"),val)

Definition at line 189 of file module.cpp.

#define REGISTER_VERILOGA_1 (   val)    REGISTER_COMP_1 (QObject::tr("verilog-a devices"),val)

Definition at line 197 of file module.cpp.

#define REGISTER_VERILOGA_2 (   val,
  inf1,
  inf2 
)    REGISTER_COMP_2 (QObject::tr("verilog-a devices"),val,inf1,inf2)

Definition at line 199 of file module.cpp.