tuchulcha  0.10.1
Graphical Workflow Configuration Editor
ModelToolBar.h
Go to the documentation of this file.
1 /* Copyright (C) 2009 Jens-Malte Gottfried
2 
3  This file is part of Tuchulcha.
4 
5  Tuchulcha is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Tuchulcha is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Tuchulcha. If not, see <http://www.gnu.org/licenses/>.
17 */
25 #ifndef MODELTOOLBAR_H_
26 #define MODELTOOLBAR_H_
27 
28 #include <QToolBar>
29 
30 class ParameterFileModel;
31 class GraphModel;
32 
36 class ModelToolBar : public QToolBar {
37  Q_OBJECT
38 
39 public:
43  ModelToolBar(const QString& title, QWidget* parent = 0);
44 
46  virtual ~ModelToolBar();
47 
51  void addModelActions();
52 
53 public slots:
56  void setModel(ParameterFileModel* model);
57 
59 
60  void addNode(QString type);
61 
62 private slots:
64  void _delete();
65 
67  void _rename();
68 
70  void _disconnect();
71 
72 private:
75 };
76 
77 #endif /*MODELTOOLBAR_H_*/
This model wraps a ParameterFile instance and provides access to the data interpreted as a (directed)...
Definition: GraphModel.h:32
virtual ~ModelToolBar()
default destructor
void setModel(ParameterFileModel *model)
set graph model to edit
This model serves to provide a model frontend to access a ParameterFile instance. ...
void _rename()
rename selected node
void addModelActions()
Add model specific buttons onto toolbar.
void addNode(QString type)
add instance of given type
charon_core_DLL_PUBLIC std::string type(const std::string &typeInfo)
void _delete()
delete selected node
Toolbar specialized for graph model handling.
Definition: ModelToolBar.h:36
GraphModel * _model
used graph model
Definition: ModelToolBar.h:74
ModelToolBar(const QString &title, QWidget *parent=0)
default constructor
void _disconnect()
disconnect selected node