]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx
Feature #1347
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxTabPanelsManager.cxx
index faa28b6ba9a89b5d65a8589477f574cd95faf8ae..2e5c4eedf032c02e7095fefaa886384f93a60ff2 100644 (file)
@@ -36,7 +36,6 @@ Version:   $Revision$
 
 #include "wxTabPanelsManager.h"
 
-
 namespace bbtk
 {
 
@@ -133,16 +132,26 @@ printf("EED wxTabPanelsManager::addNewTab 1\n");
 
        //=========================================================================
 
-       void wxTabPanelsManager::saveActualDiagram(std::string &content)
+       void wxTabPanelsManager::saveActualDiagram(std::string &content, const std::string &path) //DFCH
        {
-               _actual->saveDiagram(content);
+               _actual->saveDiagram(content, path);
        }
 
        //=========================================================================
 
-       void wxTabPanelsManager::loadDiagram(ifstream &inputStream)
+       void wxTabPanelsManager::loadDiagram(ifstream &inputStream, const std::string &path) //DFCH
+       {
+               _actual->loadDiagram(inputStream, path);
+       }
+       //=========================================================================
+       void wxTabPanelsManager::saveTempActualDiagram() //FCY
+       {
+               _actual->saveTempDiagram();
+       }
+       //=========================================================================
+       unsigned short wxTabPanelsManager::loadTempDiagram(unsigned short un) //FCY
        {
-               _actual->loadDiagram(inputStream);
+               return _actual->loadTempDiagram(un);
        }
 
        //=========================================================================
@@ -218,13 +227,23 @@ printf("wxTabPanelsManager::VerifyActualTabPanel  %d \n", this->_notebook->GetPa
        {
            return _actual->GetCbName();
        }
-
+       
+       //=========================================================================
        void wxTabPanelsManager::SetNameTabPanel(wxString tabpanelname)
        {
            int id          = _notebook->GetSelection();
            _notebook->SetPageText( id , tabpanelname );
        }
 
+       //=========================================================================
+       //DFCH
+       std::string wxTabPanelsManager::GetCurrentTabPanelPath( )
+       {
+               int id          = _notebook->GetSelection();
+               wxGEditorTabPanel* auxPanel = (wxGEditorTabPanel*) _notebook->GetPage(id);
+               return( auxPanel->GetFullPath( ) );
+           //return ( (wxGEditorTabPanel) _notebook->GetPage(id)->GetFullPath( ) );
+       }
 
 
        //=========================================================================