![]() |
tuchulcha
0.10.1
Graphical Workflow Configuration Editor
|
Toolbar specialized for graph model handling. More...
#include <ModelToolBar.h>

Public Slots | |
| void | addNode (QString type) |
| add instance of given type More... | |
| void | setModel (ParameterFileModel *model) |
| set graph model to edit More... | |
Public Member Functions | |
| ModelToolBar (const QString &title, QWidget *parent=0) | |
| default constructor More... | |
| virtual | ~ModelToolBar () |
| default destructor | |
| void | addModelActions () |
| Add model specific buttons onto toolbar. More... | |
Private Slots | |
| void | _delete () |
| delete selected node | |
| void | _disconnect () |
| disconnect selected node | |
| void | _rename () |
| rename selected node | |
Private Attributes | |
| GraphModel * | _model |
| used graph model | |
Adds by default buttons for node deletion, renaming and disconnection. Further buttons can be added like to a usual QToolBar.
Definition at line 36 of file ModelToolBar.h.
| ModelToolBar::ModelToolBar | ( | const QString & | title, |
| QWidget * | parent = 0 |
||
| ) |
| title | toolbar title |
| parent | parent widget |
Definition at line 30 of file ModelToolBar.cpp.
| void ModelToolBar::addModelActions | ( | ) |
This is a separate function to be able to add other buttons before the model buttons.
Definition at line 38 of file ModelToolBar.cpp.
References _delete(), _disconnect(), and _rename().
|
slot |
| type | node type |
Definition at line 75 of file ModelToolBar.cpp.
References _model, and GraphModel::addNode().
|
slot |
| model | new model to use for node addition |
Definition at line 56 of file ModelToolBar.cpp.
References _model.