]> Creatis software - cpPlugins.git/blob - appli/PipelineEditor/PipelineEditorMainWindow.cxx
...
[cpPlugins.git] / appli / PipelineEditor / PipelineEditorMainWindow.cxx
1 #include <appli/PipelineEditor/PipelineEditorMainWindow.h>
2 #include <appli/PipelineEditor/ui_PipelineEditorMainWindow.h>
3
4 // -------------------------------------------------------------------------
5 PipelineEditorMainWindow::
6 PipelineEditorMainWindow(
7   int argc, char* argv[], QApplication* app, QWidget* parent
8   )
9   : Superclass( argc, argv, app, parent ),
10     m_UI( new Ui::PipelineEditorMainWindow )
11 {
12   // Basic UI configuration
13   this->m_UI->setupUi( this );
14   this->UpdateEnvironment( );
15   this->_Configure(
16     this->m_UI->Plugins, this->m_UI->MPR, this->m_UI->Canvas->editor( )
17     );
18
19   // Slots <-> signals
20   this->connect(
21     this->m_UI->ActionOpen, SIGNAL( triggered( ) ),
22     this, SLOT( _InteractiveLoadWorkspace( ) )
23     );
24   this->connect(
25     this->m_UI->ActionSave, SIGNAL( triggered( ) ),
26     this, SLOT( _InteractiveSaveWorkspace( ) )
27     );
28   // TODO: _QT_CONNECT_ACTION( Close );
29   this->connect(
30     this->m_UI->ActionLoadPluginFile, SIGNAL( triggered( ) ),
31     this, SLOT( _InteractiveLoadPlugins( ) )
32     );
33   this->connect(
34     this->m_UI->ActionLoadPluginDirectory, SIGNAL( triggered( ) ),
35     this, SLOT( _InteractiveLoadPluginsFromPath( ) )
36     );
37   this->connect(
38     this->m_UI->ActionShowPlugins, SIGNAL( triggered( ) ),
39     this, SLOT( _ShowPlugins( ) )
40     );
41   this->connect(
42     this->m_UI->ActionAddEnvironmentPath, SIGNAL( triggered( ) ),
43     this, SLOT( _InteractiveAddEnviromentPaths( ) )
44     );
45 }
46
47 // -------------------------------------------------------------------------
48 PipelineEditorMainWindow::
49 ~PipelineEditorMainWindow( )
50 {
51   delete this->m_UI;
52 }
53
54 // eof - $RCSfile$