]> Creatis software - cpPlugins.git/blobdiff - lib/cpBaseQtApplication/MainWindow.h
..
[cpPlugins.git] / lib / cpBaseQtApplication / MainWindow.h
index 53aebf287d2f1abedfcf9795c569de28fefbf6d4..a29ad0fcb194c0311c8502d6e2e89893518a1e7b 100644 (file)
@@ -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;