tuchulcha  0.10.1
Graphical Workflow Configuration Editor
TuchulchaWindow.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 MAINWINDOW_H_
26 #define MAINWINDOW_H_
27 
28 #include <QMainWindow>
29 #include <QPointer>
30 #include "CentralMdiArea.h"
31 
32 class QMdiSubWindow;
33 class FlowWidget;
34 class ObjectInspector;
35 class ParameterFileModel;
36 class NodeTreeView;
37 class QAction;
38 class RecentFileHandler;
39 class DocGenerator;
40 class QProcess;
41 class GraphModel;
42 
44 class TuchulchaWindow : public QMainWindow {
45  Q_OBJECT
46 
47 public:
49 
51  TuchulchaWindow(QWidget* parent = 0);
52  virtual ~TuchulchaWindow();
53 
54 public slots:
56 
58  void open(const QString& fileName = QString());
59 
62  void open(const QStringList& files);
63 
65  void openNew();
66 
68  void saveFlowChart() const;
69 
71  void zoomIn();
72 
74  void zoomOut();
75 
77  void zoomFit();
78 
80  void updateMetadata();
81 
83  void runWorkflow();
84 
86 
87  void options(int tab=-1);
88 
90  void showMessage(QString msg) const;
91 
92 signals:
96 
98  void metaDataUpdated();
99 
101  void statusMessage(const QString&) const;
102 
103 protected:
107  virtual void closeEvent(QCloseEvent* event);
108 
109 private slots:
111  void _showAbout();
112 
114 
115  void _showHelp(QString page = QString());
116 
118  void _showAboutQt();
119 
121 
127  void _updateFlowLinks();
128 
129 private:
131  QToolBar* _toolBar;
145  static const int _saveStateVersion;
147  QPointer<QProcess> _helpDisp;
149 
152  void _setupConnections(GraphModel* model, FlowWidget* fWidget);
153 };
154 
155 #endif /* MAINWINDOW_H_ */
virtual void closeEvent(QCloseEvent *event)
Close event handler.
void statusMessage(const QString &) const
status message
DocGenerator * _docGen
Documentation Generator.
This model wraps a ParameterFile instance and provides access to the data interpreted as a (directed)...
Definition: GraphModel.h:32
void activeGraphModelChanged(ParameterFileModel *model)
inform about changed graph to edit
Declaration of class CentralMdiArea.
void options(int tab=-1)
edit options dialog
TuchulchaWindow(QWidget *parent=0)
Default constructor.
QPointer< QProcess > _helpDisp
help display process
Central Mdi Area.
FlowWidget * _flow
current flow widget
ObjectInspector * _inspector
object inspector
CentralMdiArea * _centralArea
Central widget to manage multiple windows.
provide list of recent files
NodeTreeView * _selector
selector widget
Object inspector widget.
Management of the application's main window.
void saveFlowChart() const
save current flowchart
RecentFileHandler * _rfHandler
recent file handler
void _showAbout()
show about dialog
This model serves to provide a model frontend to access a ParameterFile instance. ...
void showMessage(QString msg) const
print status message
void openNew()
create new empty flowchart
void _setupConnections(GraphModel *model, FlowWidget *fWidget)
setup model and view connections (for open and new)
void _showHelp(QString page=QString())
show help browser
void zoomFit()
fit in view
void zoomIn()
zoom in
void metaDataUpdated()
meta data has been updated, plugins reloaded
void _updateFlowLinks()
update links when new flowchart has been selected
void updateMetadata()
update plugin information
Widget to display data flow diagram.
Definition: FlowWidget.h:36
handle documentation page generation
Definition: DocGenerator.h:35
void _showAboutQt()
show about Qt dialog
QToolBar * _toolBar
tool bar
static const int _saveStateVersion
window state version identifier
QTreeView for module selection.
Definition: NodeTreeView.h:42
void open(const QString &fileName=QString())
open parameterfile and display flowchart content
void zoomOut()
zoom out
void runWorkflow()
runn current workflow