X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxTabPanelsManager.cxx;h=32173e91c291423383f4302615c7f84e8202677e;hb=0dfaa8eefbfad1092161af92ba548f1172ed6652;hp=faa28b6ba9a89b5d65a8589477f574cd95faf8ae;hpb=dbd1c9afcafc2880fdfb16f4ad850379d8ca9004;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx index faa28b6..32173e9 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx @@ -36,7 +36,6 @@ Version: $Revision$ #include "wxTabPanelsManager.h" - namespace bbtk { @@ -133,18 +132,38 @@ 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->loadDiagram(inputStream); + _actual->saveTempDiagram(); + } + //========================================================================= + void wxTabPanelsManager::loadTempDiagram(unsigned short un) //FCY + { + _actual->loadTempDiagram(un); } + //========================================================================= + unsigned short wxTabPanelsManager::getUndoState() //FCY + { + return _actual->getUndoState(); + } + //========================================================================= + unsigned short wxTabPanelsManager::getRedoState() //FCY + { + return _actual->getRedoState(); + } //========================================================================= bool wxTabPanelsManager::isActualDiagramComplexBox() @@ -211,6 +230,7 @@ printf("wxTabPanelsManager::VerifyActualTabPanel %d \n", this->_notebook->GetPa int id = tab->getPanelId(); _actual = _panels[id]; _parent->refreshGUIControls(); + } //========================================================================= @@ -218,13 +238,29 @@ printf("wxTabPanelsManager::VerifyActualTabPanel %d \n", this->_notebook->GetPa { return _actual->GetCbName(); } - + + //========================================================================= void wxTabPanelsManager::SetNameTabPanel(wxString tabpanelname) { int id = _notebook->GetSelection(); _notebook->SetPageText( id , tabpanelname ); } + std::string wxTabPanelsManager::GetNameTabPanel() + { + int id = _notebook->GetSelection(); + return crea::wx2std(_notebook->GetPageText(id)); + } + + //========================================================================= + //DFCH + std::string wxTabPanelsManager::GetCurrentTabPanelPath( ) + { + int id = _notebook->GetSelection(); + wxGEditorTabPanel* auxPanel = (wxGEditorTabPanel*) _notebook->GetPage(id); + return( auxPanel->GetFullPath( ) ); + //return ( (wxGEditorTabPanel) _notebook->GetPage(id)->GetFullPath( ) ); + } //=========================================================================