X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxTabPanelsManager.h;h=f9ff803f5a1ddeb20f918598ac269acbc528ca25;hb=c831683a7a606ee930de94df48aa0064d6db4dfa;hp=556a504cfc07c6cdfde8ef6dce36dd2e63b28f98;hpb=d43eaee96a8c31023bae53055512ef35fd4e67c9;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h index 556a504..f9ff803 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h @@ -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 +* RaC - 2010 +****/ #ifndef __wxTabPanelsManager_h__ #define __wxTabPanelsManager_h__ @@ -62,29 +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 _panels; + map _panels; wxGEditorTabPanel* _actual; wxAuiNotebook *_notebook; int _lastId;