]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx
Updated Version with the moving of the objects updated and the background doesn't...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxTabPanelsManager.cxx
index 0dc9e42a2673810c5f6ea8d6e8fd361f23d9945d..6f1ee930aafa75ad0575aeedd98c6a2d43c01a4e 100644 (file)
@@ -42,10 +42,11 @@ namespace bbtk
 
 
        //=========================================================================
-       wxTabPanelsManager::wxTabPanelsManager(wxAuiNotebook *notebook)
+       wxTabPanelsManager::wxTabPanelsManager(wxGUIEditorGraphicBBS *parent)
        {
+               _parent = parent;
                _lastId = 0;
-               _notebook = notebook;
+               _notebook = _parent->getAuiNotebook();
                addNewTab();
        }
 
@@ -59,7 +60,8 @@ namespace bbtk
        {
                _lastId++;              
 
-               wxPanel *newPanel = new wxGEditorTabPanel(_notebook,_lastId);
+               wxGEditorTabPanel *newPanel = new wxGEditorTabPanel(_notebook,_lastId);
+               newPanel->setPanelsManager(this);
                _panels[_lastId]=newPanel;
                _actual = newPanel;
 
@@ -73,11 +75,20 @@ namespace bbtk
        }
        
        //=========================================================================
-       wxPanel* wxTabPanelsManager::getActualTabPanel()
+       wxGEditorTabPanel* wxTabPanelsManager::getActualTabPanel()
        {
                return _actual;
        }
 
+       //=========================================================================
+
+       void wxTabPanelsManager::displayBlackBoxInfo(std::string packageName, std::string boxName)
+       {
+               _parent->displayBlackBoxInfo(packageName,boxName);
+       }
+
+       //=========================================================================
+
        /*****************************************************
        /* HANDLERS 
        /*****************************************************/