X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpBaseQtApplication%2FMainWindow.h;h=53aebf287d2f1abedfcf9795c569de28fefbf6d4;hb=2fed0327528e671e32cc7151cb65ebd769c053e6;hp=b62d30f62fe388343bb95ef6018257cdc57f0073;hpb=8d542556415c0f37a325b1641bb51b2bc284a115;p=cpPlugins.git diff --git a/lib/cpBaseQtApplication/MainWindow.h b/lib/cpBaseQtApplication/MainWindow.h index b62d30f..53aebf2 100644 --- a/lib/cpBaseQtApplication/MainWindow.h +++ b/lib/cpBaseQtApplication/MainWindow.h @@ -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;