24 #include <QTextStream>
25 #include <QScriptEngine>
26 #include <QScriptValue>
27 #include <QScriptValueIterator>
43 bool getNewOne=
false, QString filename=
"");
50 QString
getData(QString filename);
51 double getDouble(QScriptValue data, QString prop);
52 QString
getString(QScriptValue data, QString prop);
virtual Component * newOne()
QString getData(QString filename)
getData Reads the JSON file
void createSymbol(QString filename)
vacomponent::createSymbol Constructor call this to create the symbol.
QString getString(QScriptValue data, QString prop)
getString Helper to get a property out of a JSON script
double getDouble(QScriptValue data, QString prop)
getDouble Helper to get a property out of a JSON script
static Element * info(QString &, QString &, bool getNewOne=false, QString filename="")
vacomponent::info is used to either get information or create objects.
Superclass of all schematic drawing elements.
vacomponent(QString filename)
vacomponent::vacomponent