X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxTabPanelsManager.cxx;h=32173e91c291423383f4302615c7f84e8202677e;hb=04884fa171fe877e5c2ca53d11d6838bc1f8a8f7;hp=2e5c4eedf032c02e7095fefaa886384f93a60ff2;hpb=0846876a83badbcceaa83f3e1562ef1708e0d7e0;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx index 2e5c4ee..32173e9 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx @@ -149,11 +149,21 @@ printf("EED wxTabPanelsManager::addNewTab 1\n"); _actual->saveTempDiagram(); } //========================================================================= - unsigned short wxTabPanelsManager::loadTempDiagram(unsigned short un) //FCY + void wxTabPanelsManager::loadTempDiagram(unsigned short un) //FCY { - return _actual->loadTempDiagram(un); + _actual->loadTempDiagram(un); } + //========================================================================= + unsigned short wxTabPanelsManager::getUndoState() //FCY + { + return _actual->getUndoState(); + } + //========================================================================= + unsigned short wxTabPanelsManager::getRedoState() //FCY + { + return _actual->getRedoState(); + } //========================================================================= bool wxTabPanelsManager::isActualDiagramComplexBox() @@ -220,6 +230,7 @@ printf("wxTabPanelsManager::VerifyActualTabPanel %d \n", this->_notebook->GetPa int id = tab->getPanelId(); _actual = _panels[id]; _parent->refreshGUIControls(); + } //========================================================================= @@ -235,6 +246,12 @@ printf("wxTabPanelsManager::VerifyActualTabPanel %d \n", this->_notebook->GetPa _notebook->SetPageText( id , tabpanelname ); } + std::string wxTabPanelsManager::GetNameTabPanel() + { + int id = _notebook->GetSelection(); + return crea::wx2std(_notebook->GetPageText(id)); + } + //========================================================================= //DFCH std::string wxTabPanelsManager::GetCurrentTabPanelPath( )