Qucs-GUI  0.0.19
Functions
/home/travis/build/Qucs/qucs/qucs/qucs/components/vacomponent.cpp File Reference

Implementation of the vacomponent class. More...

#include "vacomponent.h"
#include <QString>
#include <QScriptEngine>
#include <QScriptValue>
#include <QScriptValueIterator>
#include <QFile>
#include <QTextStream>
#include <QMessageBox>
Include dependency graph for vacomponent.cpp:

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

Detailed Description

Implementation of the vacomponent class.

Definition in file vacomponent.cpp.


Function Documentation

QString getData ( QString  filename)

getData Reads the JSON file

Parameters:
filenameFile (JSON) containing the symbol paintings and properties.
Returns:
the JSON file as a QString

Definition at line 301 of file vacomponent.cpp.

Here is the caller graph for this function:

double getDouble ( QScriptValue  data,
QString  prop 
)

getDouble Helper to get a property out of a JSON script

Parameters:
dataJSON data as a QScritValue
propJSON property key
Returns:
a double corresponding to the JSON value

Definition at line 328 of file vacomponent.cpp.

Here is the caller graph for this function:

QString getString ( QScriptValue  data,
QString  prop 
)

getString Helper to get a property out of a JSON script

Parameters:
dataJSON data as a QScritValue
propJSON property key
Returns:
a QString corresponding to the JSON value

Definition at line 338 of file vacomponent.cpp.

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines