//=========================================================================
void wxTabPanelsManager::addNewTab(wxString tabName)
{
-
_lastId++;
- wxGEditorTabPanel *newPanel = new wxGEditorTabPanel(_notebook,_lastId);
+
+ //EED 13/10/2012 wxGEditorTabPanel *newPanel = new wxGEditorTabPanel( _notebook,_lastId );
+ wxGEditorTabPanel *newPanel = new wxGEditorTabPanel( _notebook,_lastId, _parent->GetBBTKFactory() );
+
newPanel->setPanelsManager(this);
_panels[_lastId] = newPanel;
_actual = newPanel;
-
_notebook->AddPage(newPanel, tabName ,true);
}
//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()
_actual->SetCategory( category );
}
-
//=========================================================================
void wxTabPanelsManager::SetDescription(std::string description)
{
_actual->SetDescription( description );
}
-
-
-
-
-
-
-
-
-
+ //=========================================================================
+ bool wxTabPanelsManager::TryToOpenScriptApplication(std::string packageName ,std::string boxType)
+ {
+ return _parent->TryToOpenScriptApplication( packageName, boxType );
+ }
+
} // EO namespace bbtk
// EOF