]> Creatis software - cpPlugins.git/blobdiff - lib/cpBaseQtApplication/MainWindow.h
...
[cpPlugins.git] / lib / cpBaseQtApplication / MainWindow.h
index b62d30f62fe388343bb95ef6018257cdc57f0073..53aebf287d2f1abedfcf9795c569de28fefbf6d4 100644 (file)
@@ -74,19 +74,6 @@ namespace cpBaseQtApplication
       );
     virtual ~MainWindow( );
 
-    /* TODO
-       void updateEnvironment( );
-       void updateFilter( const std::string& name );
-       void showData( const std::string& name, const std::string& port );
-       void showData(
-       cpPlugins::BaseObjects::DataObject* data, const std::string& name
-       );
-       void hideData( const std::string& name, const std::string& port );
-       void hideData( const std::string& name );
-       void dataProperties( const std::string& name, const std::string& port );
-       void dataProperties( const std::string& name );
-    */
-
     TWorkspace* workspace( const std::string& wname );
     const TWorkspace* workspace( const std::string& wname ) const;
 
@@ -102,11 +89,15 @@ namespace cpBaseQtApplication
     const cpExtensions::QT::ActorsWidgetInterface* viewer( ) const;
     void setViewer( cpExtensions::QT::ActorsWidgetInterface* v );
 
-    /* TODO
-       protected:
-       void _configure( PluginsNavigator* nav, TMPR* mpr, Editor* edt );
-       void _updatePlugins( );
-    */
+  protected:
+    template< class _TViewer >
+    _TViewer* _configureViewer( QWidget* w )
+      {
+        _TViewer* v = dynamic_cast< _TViewer* >( w );
+        if( v == NULL )
+          v = new _TViewer( );
+        return( v );
+      }
 
   protected slots:
     void _loadPlugins( const std::string& filename );
@@ -126,38 +117,7 @@ namespace cpBaseQtApplication
     void _loadWorkspace( const std::string& fname );
     void _loadWorkspace( );
 
-    /* TODO
-       void _loadWorkspace( const std::string& filename );
-       void _loadWorkspace( );
-       void _saveWorkspace( const std::string& filename );
-       void _saveWorkspace( );
-       void _showPlugins( );
-       void _addEnvironmentPaths( const std::string& envs );
-       void _addEnvironmentPaths( );
-       void _actorsProperties( );
-    */
-
-    /* TODO
-       void _ClearWorkspace( );
-       void _LoadPlugins( const std::string& filename );
-       void _LoadPluginsFromPath( const std::string& path );
-
-       void _LoadWorkspace( const std::string& filename );
-       void _SaveWorkspace( const std::string& filename );
-
-       void _BackgroundProperties( unsigned int i );
-       void _DataProperties( const std::string& actor );
-
-       void _AddEnviromentPaths( );
-       void _LoadPlugins( );
-       void _LoadPluginsFromPath( );
-       void _ShowPlugins( );
-       void _LoadWorkspace( );
-       void _SaveWorkspace( );
-       void _DataProperties(
-       const std::string& filter_name, const std::string& output_name
-       );
-    */
+    void _actorsProperties( );
 
   protected:
     Blocker           m_Blocker;