]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx
Feature #1758
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxTabPanelsManager.cxx
index 7c29eaefb1e94f887567146803e76d81cec6c4ba..6aa897c1fce75f5239190283519bed80543e7fbf 100644 (file)
@@ -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<int, wxGEditorTabPanel*>::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()
@@ -356,22 +370,18 @@ printf("wxTabPanelsManager::VerifyActualTabPanel  %d \n", this->_notebook->GetPa
         _actual->SetCategory( category );
     }
 
-
        //=========================================================================
     void wxTabPanelsManager::SetDescription(std::string description)
     {
         _actual->SetDescription( description );
     }
 
-
-
-
-
-
-
-
-
-
+       //=========================================================================
+       bool wxTabPanelsManager::TryToOpenScriptApplication(std::string packageName ,std::string boxType)
+    {
+        _parent->TryToOpenScriptApplication( packageName, boxType );
+    }
+               
 }  // EO namespace bbtk
 
 // EOF