#include "wxTabPanelsManager.h"
-
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");
}
//=========================================================================
{
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( ) );
+ }
//=========================================================================