1 #include <appli/PipelineEditor/PipelineEditorMainWindow.h>
2 #include <appli/PipelineEditor/ui_PipelineEditorMainWindow.h>
6 // -------------------------------------------------------------------------
7 #define _QT_CONNECT_ACTION( ACTION ) \
9 this->m_UI->Action##ACTION, SIGNAL( triggered( ) ), \
10 this, SLOT( _Action##ACTION( ) ) \
13 // -------------------------------------------------------------------------
14 PipelineEditorMainWindow::
15 PipelineEditorMainWindow(
16 int argc, char* argv[], QApplication* app, QWidget* parent
18 : Superclass( argc, argv, app, parent ),
19 m_UI( new Ui::PipelineEditorMainWindow )
21 // Basic UI configuration
22 this->m_UI->setupUi( this );
23 this->UpdateEnvironment( );
25 this->m_UI->Plugins, this->m_UI->MPR, this->m_UI->Canvas->editor( )
29 _QT_CONNECT_ACTION( Open );
30 _QT_CONNECT_ACTION( Save );
31 _QT_CONNECT_ACTION( Close );
32 _QT_CONNECT_ACTION( LoadPluginFile );
33 _QT_CONNECT_ACTION( LoadPluginDirectory );
34 _QT_CONNECT_ACTION( ShowPlugins );
37 // -------------------------------------------------------------------------
38 PipelineEditorMainWindow::
39 ~PipelineEditorMainWindow( )
44 // -------------------------------------------------------------------------
45 void PipelineEditorMainWindow::
48 this->_InteractiveLoadWorkspace( );
51 // -------------------------------------------------------------------------
52 void PipelineEditorMainWindow::
55 this->_InteractiveSaveWorkspace( );
58 // -------------------------------------------------------------------------
59 void PipelineEditorMainWindow::
64 // -------------------------------------------------------------------------
65 void PipelineEditorMainWindow::
66 _ActionLoadPluginFile( )
68 this->_InteractiveLoadPlugins( );
71 // -------------------------------------------------------------------------
72 void PipelineEditorMainWindow::
73 _ActionLoadPluginDirectory( )
75 this->_InteractiveLoadPluginsFromPath( );
78 // -------------------------------------------------------------------------
79 void PipelineEditorMainWindow::
82 this->_ShowPlugins( );