]> Creatis software - cpPlugins.git/blobdiff - lib/cpBaseQtApplication/MainWindow.cxx
...
[cpPlugins.git] / lib / cpBaseQtApplication / MainWindow.cxx
index 81f24c033ec50fc7aebb3b7e94bd65f722734bff..60cdc20ad5913d68ee0f9da041bd38410dc5bf37 100644 (file)
@@ -7,6 +7,7 @@
 #include <QMessageBox>
 
 #include <cpExtensions/QT/SimpleMPRWidget.h>
+#include <cpExtensions/QT/ConfigurationChooser.h>
 
 #include <vtkDataSet.h>
 
@@ -70,9 +71,9 @@ MainWindow( int argc, char* argv[], QApplication* app, QWidget* parent )
   // Get the plugins interface
   this->m_Plugins = TPlugins::New( );
   try { this->m_Plugins->AddEnvironments( env.str( ) ); } catch( ... ) { }
-  try { this->m_Plugins->OpenEnvironments( env.str( ) ); } catch( ... ) { }
-  try { this->m_Plugins->SaveEnvironments( this->m_RunPath ); } catch( ... ) { }
+  try { this->m_Plugins->LoadPaths( this->m_RunPath ); } catch( ... ) { }
   this->updateEnvironment( );
+  try { this->m_Plugins->SavePaths( this->m_RunPath ); } catch( ... ) { }
 
   // Create local workspace
   this->m_Workspace = TWorkspace::New( );
@@ -347,7 +348,7 @@ void cpBaseQtApplication::MainWindow::
 _addEnvironmentPaths( const std::string& envs )
 {
   try { this->m_Plugins->AddEnvironments( envs ); } catch( ... ) { }
-  try { this->m_Plugins->SaveEnvironments( this->m_RunPath ); } catch( ... ) { }
+  try { this->m_Plugins->SavePaths( this->m_RunPath ); } catch( ... ) { }
   this->updateEnvironment( );
   this->_updatePlugins( );
 }
@@ -439,6 +440,19 @@ _loadPluginsFromPath( )
   this->_loadPluginsFromPath( d.selectedFiles( ).begin( )->toStdString( ) );
 }
 
+// -------------------------------------------------------------------------
+void cpBaseQtApplication::MainWindow::
+_actorsProperties( )
+{
+  if( this->m_MPR != NULL )
+  {
+    auto dlg = new cpExtensions::QT::ConfigurationChooser( this );
+    dlg->setData( this->m_MPR );
+    dlg->exec( );
+
+  } // fi
+}
+
 // -------------------------------------------------------------------------
 /* TODO
    void cpBaseQtApplication::MainWindow::