]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h
Important change in the location of the classes in the libraries to follow the final...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxTabPanelsManager.h
index 556a504cfc07c6cdfde8ef6dce36dd2e63b28f98..126141a7131f897716423c3526e4ed6a529b37df 100644 (file)
@@ -62,7 +62,7 @@ namespace bbtk
        class wxGEditorTabPanel;
        class wxGUIEditorGraphicBBS;
 
-       class wxTabPanelsManager
+       class wxTabPanelsManager : public wxEvtHandler
        {
        public: 
                wxTabPanelsManager(wxGUIEditorGraphicBBS *parent);
@@ -74,9 +74,22 @@ namespace bbtk
 
                void displayBlackBoxInfo(std::string packageName, std::string boxName);
                void updateStatusBar(std::string textStatus);
-               std::string getActualDiagramScript();
+               std::string getActualDiagramBBS();
+               std::string getActualComplexBoxBBS(std::string cbName,std::string cbAuthor="",std::string cbCategory="",std::string cbDescription="");
                void editBlackBox(GBlackBoxModel *bbmodel);
                void editDiagramParameters(wxVtkSceneManager* scene);
+               void deleteAllBoxesActualDiagram();
+               void centerViewActualDiagram();
+               void saveActualDiagram(std::string &content);
+               void loadDiagram(ifstream &inputStream);
+               bool isActualDiagramComplexBox();
+               void setActualDiagramComplexBox(bool val);
+               void addActualDiagramComplexInputPort(std::string portName);
+               void addActualDiagramComplexOutputPort(std::string portName);
+               void copySelectedBBoxesToComplexDiagram();
+               int getNumActualSelectedObjects();
+               
+               void OnTabChanged(wxAuiNotebookEvent& event);
 
        private:
 
@@ -84,7 +97,7 @@ namespace bbtk
        ** The map 
        */
                wxGUIEditorGraphicBBS *_parent;
-               map<int, wxPanel*> _panels;
+               map<int, wxGEditorTabPanel*> _panels;
                wxGEditorTabPanel* _actual;
                wxAuiNotebook  *_notebook;
                int _lastId;