]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h
*** empty log message ***
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxTabPanelsManager.h
index 42681b7e8270e38a2351a2c602eedfb6b9566441..f9ff803f5a1ddeb20f918598ac269acbc528ca25 100644 (file)
@@ -35,10 +35,11 @@ Version:   $Revision$
 *  \brief Class bbtk::BlackBox : abstract black-box interface. 
 */
 
-/**
-* \class bbtk::wxTabPanelsManager
-* \brief 
-*/
+/****
+* Design and Developpement of BBTK GEditor
+* Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
+* RaC - 2010
+****/
 
 #ifndef __wxTabPanelsManager_h__
 #define __wxTabPanelsManager_h__
@@ -62,33 +63,43 @@ namespace bbtk
        class wxGEditorTabPanel;
        class wxGUIEditorGraphicBBS;
 
-       class wxTabPanelsManager
+       class wxTabPanelsManager : public wxEvtHandler
        {
+
        public: 
+
                wxTabPanelsManager(wxGUIEditorGraphicBBS *parent);
                ~wxTabPanelsManager();
                
-               virtual void addNewTab();
+               void addNewTab();
                wxAuiNotebook* getAuiNotebook();
                wxGEditorTabPanel* getActualTabPanel();
 
                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:
 
-       /**
-       ** The map 
-       */
+       // Private Attributes
                wxGUIEditorGraphicBBS *_parent;
-               map<int, wxPanel*> _panels;
+               map<int, wxGEditorTabPanel*> _panels;
                wxGEditorTabPanel* _actual;
                wxAuiNotebook  *_notebook;
                int _lastId;