X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxTabPanelsManager.cxx;h=fe453d791a001df2bc4b3f8fa63364a276387727;hb=0209f53d6a0dbefceb3610b8d074e8fc4dcaba33;hp=7c29eaefb1e94f887567146803e76d81cec6c4ba;hpb=9157501536655873bf21a9455fb600aa028a7280;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx index 7c29eae..fe453d7 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx @@ -305,6 +305,20 @@ printf("wxTabPanelsManager::VerifyActualTabPanel %d \n", this->_notebook->GetPa //return ( (wxGEditorTabPanel) _notebook->GetPage(id)->GetFullPath( ) ); } + //========================================================================= + + int wxTabPanelsManager::FindTab(std::string filename) + { + std::map::iterator it; + for (it = _panels.begin(); it != _panels.end(); ++it) + { + wxGEditorTabPanel *obj = it->second; + int id = it->first; + if(obj->GetFullPath()==filename) + return id; + } + return -1; + } //========================================================================= std::string wxTabPanelsManager::GetCbPackageName()