Qucs-GUI
0.0.19
|
Implementation of the vacomponent class. More...
#include "vacomponent.h"
#include <QString>
#include <QScriptEngine>
#include <QScriptValue>
#include <QScriptValueIterator>
#include <QFile>
#include <QTextStream>
#include <QMessageBox>
Go to the source code of this file.
Functions | |
QString | getData (QString filename) |
getData Reads the JSON file | |
double | getDouble (QScriptValue data, QString prop) |
getDouble Helper to get a property out of a JSON script | |
QString | getString (QScriptValue data, QString prop) |
getString Helper to get a property out of a JSON script |
Implementation of the vacomponent class.
Definition in file vacomponent.cpp.
QString getData | ( | QString | filename | ) |
getData Reads the JSON file
filename | File (JSON) containing the symbol paintings and properties. |
Definition at line 301 of file vacomponent.cpp.
double getDouble | ( | QScriptValue | data, |
QString | prop | ||
) |
getDouble Helper to get a property out of a JSON script
data | JSON data as a QScritValue |
prop | JSON property key |
Definition at line 328 of file vacomponent.cpp.
QString getString | ( | QScriptValue | data, |
QString | prop | ||
) |
getString Helper to get a property out of a JSON script
data | JSON data as a QScritValue |
prop | JSON property key |
Definition at line 338 of file vacomponent.cpp.