X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpBaseQtApplication%2FMainWindow.h;h=a29ad0fcb194c0311c8502d6e2e89893518a1e7b;hb=4985f4ba986f600298676866c5099b2f84bee50b;hp=53aebf287d2f1abedfcf9795c569de28fefbf6d4;hpb=9f494b26ae4e5de45b4c2119a10de67ac0beeedf;p=cpPlugins.git diff --git a/lib/cpBaseQtApplication/MainWindow.h b/lib/cpBaseQtApplication/MainWindow.h index 53aebf2..a29ad0f 100644 --- a/lib/cpBaseQtApplication/MainWindow.h +++ b/lib/cpBaseQtApplication/MainWindow.h @@ -74,8 +74,8 @@ namespace cpBaseQtApplication ); virtual ~MainWindow( ); - TWorkspace* workspace( const std::string& wname ); - const TWorkspace* workspace( const std::string& wname ) const; + TWorkspace* workspace( ); + const TWorkspace* workspace( ) const; Pipeline::Canvas* canvas( ); const Pipeline::Canvas* canvas( ) const; @@ -105,13 +105,9 @@ namespace cpBaseQtApplication void _loadPluginsFromPath( const std::string& path ); void _loadPluginsFromPath( ); - void _clearWorkspaces( ); + void _clearWorkspace( ); - virtual void _addWorkspace( const std::string& name ); - void _addWorkspace( ); - - void _saveWorkspace( const std::string& wname, const std::string& fname ); - void _saveWorkspace( const std::string& wname, bool force ); + void _saveWorkspace( const std::string& fname ); void _saveWorkspace( ); void _loadWorkspace( const std::string& fname ); @@ -120,13 +116,12 @@ namespace cpBaseQtApplication void _actorsProperties( ); protected: - Blocker m_Blocker; - std::string m_RunPath; - TPlugins::Pointer m_Plugins; - std::string m_LastSaveFileName; - std::map< std::string, TWorkspace::Pointer > m_Workspaces; + Blocker m_Blocker; + std::string m_RunPath; + TPlugins::Pointer m_Plugins; + std::string m_LastSaveFileName; + TWorkspace::Pointer m_Workspace; - bool m_SingleWorkspace; std::string m_BaseWindowTitle; Pipeline::Canvas* m_Canvas;