tuchulcha  0.10.1
Graphical Workflow Configuration Editor
TuchulchaWindow Class Reference

Management of the application's main window. More...

#include <TuchulchaWindow.h>

Inheritance diagram for TuchulchaWindow:

Public Slots

void open (const QString &fileName=QString())
 open parameterfile and display flowchart content More...
 
void open (const QStringList &files)
 open parameterfiles More...
 
void openNew ()
 create new empty flowchart
 
void options (int tab=-1)
 edit options dialog More...
 
void runWorkflow ()
 runn current workflow
 
void saveFlowChart () const
 save current flowchart
 
void showMessage (QString msg) const
 print status message
 
void updateMetadata ()
 update plugin information
 
void zoomFit ()
 fit in view
 
void zoomIn ()
 zoom in
 
void zoomOut ()
 zoom out
 

Signals

void activeGraphModelChanged (ParameterFileModel *model)
 inform about changed graph to edit More...
 
void metaDataUpdated ()
 meta data has been updated, plugins reloaded
 
void statusMessage (const QString &) const
 status message
 

Public Member Functions

 TuchulchaWindow (QWidget *parent=0)
 Default constructor. More...
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *event)
 Close event handler. More...
 

Private Slots

void _showAbout ()
 show about dialog
 
void _showAboutQt ()
 show about Qt dialog
 
void _showHelp (QString page=QString())
 show help browser More...
 
void _updateFlowLinks ()
 update links when new flowchart has been selected More...
 

Private Member Functions

void _setupConnections (GraphModel *model, FlowWidget *fWidget)
 setup model and view connections (for open and new) More...
 

Private Attributes

CentralMdiArea_centralArea
 Central widget to manage multiple windows.
 
DocGenerator_docGen
 Documentation Generator.
 
FlowWidget_flow
 current flow widget
 
QPointer< QProcess > _helpDisp
 help display process
 
ObjectInspector_inspector
 object inspector
 
RecentFileHandler_rfHandler
 recent file handler
 
NodeTreeView_selector
 selector widget
 
QToolBar * _toolBar
 tool bar
 

Static Private Attributes

static const int _saveStateVersion = 1
 window state version identifier
 

Detailed Description

Definition at line 44 of file TuchulchaWindow.h.

Constructor & Destructor Documentation

Member Function Documentation

void TuchulchaWindow::_setupConnections ( GraphModel model,
FlowWidget fWidget 
)
private
Parameters
modelworkflow model
fWidgetflow widget

Definition at line 546 of file TuchulchaWindow.cpp.

References _docGen, _rfHandler, showMessage(), and statusMessage().

void TuchulchaWindow::_showHelp ( QString  page = QString())
privateslot
Parameters
pagerequested help page

Definition at line 452 of file TuchulchaWindow.cpp.

References _docGen, _helpDisp, exists(), and DocGenerator::showHelp().

void TuchulchaWindow::_updateFlowLinks ( )
privateslot

this sets the _flow pointer to the currently selected widget, which is needed to get the zoom and model buttons working

this also emits the activeGraphModeChanged signal which sets up the connections of the object inspector and the model tool bar

Definition at line 576 of file TuchulchaWindow.cpp.

References _centralArea, _flow, activeGraphModelChanged(), and FlowWidget::model().

void TuchulchaWindow::activeGraphModelChanged ( ParameterFileModel model)
signal
Parameters
modelnew model to edit, 0 if no model exists
void TuchulchaWindow::closeEvent ( QCloseEvent *  event)
protectedvirtual

Save window state and close the window.

Parameters
eventclose event

Definition at line 365 of file TuchulchaWindow.cpp.

References _centralArea, and _saveStateVersion.

void TuchulchaWindow::open ( const QString &  fileName = QString())
slot
Parameters
fileNameFile to open. Shows file open dialog if empty.

Definition at line 515 of file TuchulchaWindow.cpp.

References _centralArea, _setupConnections(), _updateFlowLinks(), FileManager::instance(), and ParameterFileModel::load().

void TuchulchaWindow::open ( const QStringList &  files)
slot
Parameters
filesFiles to open

Definition at line 531 of file TuchulchaWindow.cpp.

References open().

void TuchulchaWindow::options ( int  tab = -1)
slot
Parameters
tabnumber of options tab to show (default if invalid)

Definition at line 648 of file TuchulchaWindow.cpp.

References _showHelp(), _toolBar, and OptionsDialog::setTab().


The documentation for this class was generated from the following files: