]> Creatis software - cpPlugins.git/blobdiff - appli/PipelineEditor/PipelineEditorMainWindow.cxx
...
[cpPlugins.git] / appli / PipelineEditor / PipelineEditorMainWindow.cxx
index 20ddc16524a5f854050454bc1cbd69b76bca7d79..5057790fe059d97730a76deeeedaedbf761a40f1 100644 (file)
@@ -26,12 +26,31 @@ PipelineEditorMainWindow(
     );
 
   // Slots <-> signals
-  _QT_CONNECT_ACTION( Open );
-  _QT_CONNECT_ACTION( Save );
-  _QT_CONNECT_ACTION( Close );
-  _QT_CONNECT_ACTION( LoadPluginFile );
-  _QT_CONNECT_ACTION( LoadPluginDirectory );
-  _QT_CONNECT_ACTION( ShowPlugins );
+  this->connect(
+    this->m_UI->ActionOpen, SIGNAL( triggered( ) ),
+    this, SLOT( _InteractiveLoadWorkspace( ) )
+    );
+  this->connect(
+    this->m_UI->ActionSave, SIGNAL( triggered( ) ),
+    this, SLOT( _InteractiveSaveWorkspace( ) )
+    );
+  // TODO: _QT_CONNECT_ACTION( Close );
+  this->connect(
+    this->m_UI->ActionLoadPluginFile, SIGNAL( triggered( ) ),
+    this, SLOT( _InteractiveLoadPlugins( ) )
+    );
+  this->connect(
+    this->m_UI->ActionLoadPluginDirectory, SIGNAL( triggered( ) ),
+    this, SLOT( _InteractiveLoadPluginsFromPath( ) )
+    );
+  this->connect(
+    this->m_UI->ActionShowPlugins, SIGNAL( triggered( ) ),
+    this, SLOT( _ShowPlugins( ) )
+    );
+  this->connect(
+    this->m_UI->ActionAddEnvironmentPath, SIGNAL( triggered( ) ),
+    this, SLOT( _InteractiveAddEnviromentPaths( ) )
+    );
 }
 
 // -------------------------------------------------------------------------
@@ -41,45 +60,4 @@ PipelineEditorMainWindow::
   delete this->m_UI;
 }
 
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionOpen( )
-{
-  this->_InteractiveLoadWorkspace( );
-}
-
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionSave( )
-{
-  this->_InteractiveSaveWorkspace( );
-}
-
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionClose( )
-{
-}
-
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionLoadPluginFile( )
-{
-  this->_InteractiveLoadPlugins( );
-}
-
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionLoadPluginDirectory( )
-{
-  this->_InteractiveLoadPluginsFromPath( );
-}
-
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionShowPlugins( )
-{
-  this->_ShowPlugins( );
-}
-
 // eof - $RCSfile$