Qucs-GUI  0.0.19
Public Member Functions | Static Public Member Functions | Protected Member Functions
vacomponent Class Reference

#include <vacomponent.h>

Inheritance diagram for vacomponent:
Inheritance graph
[legend]
Collaboration diagram for vacomponent:
Collaboration graph
[legend]

Public Member Functions

 vacomponent (QString filename)
 vacomponent::vacomponent
 ~vacomponent ()
virtual ComponentnewOne (QString filename)
 vacomponent::newOne is used to mouse drop new items into the schematic.

Static Public Member Functions

static Elementinfo (QString &, QString &, bool getNewOne=false, QString filename="")
 vacomponent::info is used to either get information or create objects.

Protected Member Functions

void createSymbol (QString filename)
 vacomponent::createSymbol Constructor call this to create the symbol.

Detailed Description

Definition at line 33 of file vacomponent.h.


Constructor & Destructor Documentation

vacomponent::vacomponent ( QString  filename)

vacomponent::vacomponent

Parameters:
filenameFile (JSON) containing the symbol paintins and properties.
Todo:
check if JSON is error free
Todo:
Need to destroy engine?
Todo:
append units to description
Todo:
what if there are no properties?

TODO adjust location of text

Definition at line 40 of file vacomponent.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 38 of file vacomponent.h.


Member Function Documentation

void vacomponent::createSymbol ( QString  filename) [protected]

vacomponent::createSymbol Constructor call this to create the symbol.

Parameters:
filenameFile (JSON) containing the symbol paintins and properties. It reads the JSON file and parses the symbol paintings. Data is appended to to the appropriate lists, Lines, Rects, Ellips, ...

Definition at line 143 of file vacomponent.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Element * vacomponent::info ( QString &  Name,
QString &  BitmapFile,
bool  getNewOne = false,
QString  filename = "" 
) [static]

vacomponent::info is used to either get information or create objects.

Parameters:
NameModel name, returned by reference
BitmapFileBitmap file for the dock, returned by reference
getNewOneif set return new object based on JSON file
filenameFile (JSON) containing the symbol paintins and properties.
Returns:
Null or a new Element if getNewOne is true Used to get Name and BitmapFile. It can also create new objects from symbol file.

Default BitmapFile is [modulename] The BitmapFile JSON entry can be modified in

See also:
LoadDialog::slotChangeIcon()

Definition at line 118 of file vacomponent.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Component * vacomponent::newOne ( QString  filename) [virtual]

vacomponent::newOne is used to mouse drop new items into the schematic.

Parameters:
filenameFile (JSON) containing the symbol paintins and properties.
Returns:
Component based on the filename Used by mouseactions to drop new items into the schematic.

Definition at line 98 of file vacomponent.cpp.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines