X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxTabPanelsManager.cxx;h=0c5b96b3f8b27a7833524f8e03399ba985f6f19f;hb=e7cfa1b15189636d8763c56aec0b7a5d6429e4db;hp=f2aa6b03d9f5b89221ca481d073811c77598ec97;hpb=775c8164b5f679027b8bbafa97c0e0110711909b;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx index f2aa6b0..0c5b96b 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx @@ -36,6 +36,7 @@ Version: $Revision$ #include "wxTabPanelsManager.h" + namespace bbtk { @@ -58,15 +59,12 @@ namespace bbtk //========================================================================= void wxTabPanelsManager::addNewTab(wxString tabName) { -printf("EED wxTabPanelsManager::addNewTab 0\n"); - _lastId++; wxGEditorTabPanel *newPanel = new wxGEditorTabPanel(_notebook,_lastId); newPanel->setPanelsManager(this); _panels[_lastId] = newPanel; _actual = newPanel; _notebook->AddPage(newPanel, tabName ,true); -printf("EED wxTabPanelsManager::addNewTab 1\n"); } //========================================================================= @@ -132,16 +130,16 @@ printf("EED wxTabPanelsManager::addNewTab 1\n"); //========================================================================= - void wxTabPanelsManager::saveActualDiagram(std::string &content, const std::string &path) //DFCH + void wxTabPanelsManager::saveActualDiagram(std::string &content) { - _actual->saveDiagram(content, path); + _actual->saveDiagram(content); } //========================================================================= - void wxTabPanelsManager::loadDiagram(ifstream &inputStream, const std::string &path) //DFCH + void wxTabPanelsManager::loadDiagram(ifstream &inputStream) { - _actual->loadDiagram(inputStream, path); + _actual->loadDiagram(inputStream); } //========================================================================= @@ -217,23 +215,13 @@ 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( ) ); - } //=========================================================================