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