X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxTabPanelsManager.h;h=a42f05edffd65d728e2bee6d16128e2816bc833b;hb=25cc7b0782c5950c95cbf3fa94586769ae093f10;hp=bf617e3369a467d3a1a29ffdea47970028349099;hpb=fea0c6ff7e209a7bb61bcc8176742e5f1a609443;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h index bf617e3..a42f05e 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h @@ -49,6 +49,7 @@ Version: $Revision$ #include #include #include +#include #include "wxGEditorTabPanel.h" #include "wxVtkSceneManager.h" @@ -56,6 +57,7 @@ Version: $Revision$ using namespace std; + namespace bbtk { @@ -88,7 +90,9 @@ namespace bbtk void loadDiagram(ifstream &inputStream, const std::string &path); //DFCH void saveTempActualDiagram(); //FCY - unsigned short loadTempDiagram(unsigned short un); //FCY + void loadTempDiagram(unsigned short un); //FCY + unsigned short getUndoState(); + unsigned short getRedoState(); bool isActualDiagramComplexBox(); void setActualDiagramComplexBox(bool val); void addActualDiagramComplexInputPort(std::string portName); @@ -97,6 +101,10 @@ namespace bbtk int getNumActualSelectedObjects(); void OnTabChanged(wxAuiNotebookEvent& event); + + // Event handler. Runs in the moment of closing but not closed yet (for that exists the CLOSED event, but not working at all) + void OnTabClose(wxAuiNotebookEvent& event); + void VerifyLastTabPanel(); void SetCbName(std::string cbName); @@ -111,6 +119,7 @@ namespace bbtk std::string GetCategory(); void SetNameTabPanel(wxString tabpanelname); + std::string GetNameTabPanel(); std::string GetCurrentTabPanelPath( ); //DFCH