Schemantic Class Reference
The main widget class of the schematic. More...
See also: List of Classes
- addMacroToolButton(string macroName,string parameter,string iconfilename)
- generateNetList(string type)
- hideToolBar(string name)
- saveNetList(string filename, string type)
- setShortcut(string function,string key)
- showToolBar(string name)
- toLayout(layout *l)
- toolBarAdd(string name,string buttons)
This class is the main widget of the windows from which the macro was executed. It is directly accessible via the classname "schematic".
Most methods of this call require a user dialog. A direct access of the drawing is possible via the member drawing.
Member Function Documentation
Add a new button to the toolbars. The button will be added to the toolbar 'Macros'. If this toolbar does not exist, it will be created. macroName specifies the name of the macro to be executed. iconfilename points to the file for the icon of the new button. If the given file does not exist, the default macro icon is used. MacroToolButtons will not stored with shut-down.
(introduced with version 20170716)
This class is the main class of the drawing. It holds all relevant information. schematicDisplay
This string hold the current filename.
the current sheet as netlist. Type had to be defined in the setup before.
OBSOLETE: Please use drawing->generateNetList() instead.
Returns: an encoded string containing all required information to restore the current toolbar and dock window setup. With setToolbarState the current setup can be restored. (introduced with version 20160401)
void schematic::hideToolBar(string name)
Hides the named toolbar.
exports the current sheet as netlist. Type had to be defined in the setup before.
OBSOLETE: Please use drawing->saveNetList() instead.
Use this function to modify any existing shortcut. It returns true, if the modification was successful.
layout->setShortcut("&Sector",""); // remove old 'F' shortkey layout->setShortcut("&Zoom Fit All","F"); // set 'F' to zoom fit layout->setShortcut("&Zoom Fit Selection","Shift+F"); // set 'Shift F' to zoom fit selection
Sets the toolbar and dock window configuration. The string parameter needs to be created with the getToolbarState. (introduced with version 20160401)
void schematic::showToolBar(string name)
Shows the named toolbar.
void schematic::toLayout(layout *l)
converts the current schematic sheet to a layout drawing.
Add a new tool bar, separate multipli buttons with a ';'.
layout->toolBarAdd("my toolbar","New Layout;Zoom Mouse;Code 39;Quit");