X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxTabPanelsManager.h;h=64cef9c8abd562e174c77d39c14da2eab1f2b2a4;hb=e4d5a319ef249bde6c4f4ddfee66f6258558bf91;hp=35618a7cec9c0fe0b79654d3ae27c95e9bc5cbd8;hpb=827bf260ed8c5451c11c41854c411e8a84d70f11;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.h index 35618a7..64cef9c 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 { @@ -86,6 +88,12 @@ namespace bbtk void centerViewActualDiagram(); void saveActualDiagram(std::string &content, const std::string &path); //DFCH void loadDiagram(ifstream &inputStream, const std::string &path); //DFCH + + void saveTempActualDiagram(const std::string &); //FCY + void saveTempandUpdate(const std::string &); + void loadTempDiagram(unsigned short un); //FCY + unsigned short getUndoState(std::string &); + unsigned short getRedoState(std::string &); bool isActualDiagramComplexBox(); void setActualDiagramComplexBox(bool val); void addActualDiagramComplexInputPort(std::string portName); @@ -94,8 +102,13 @@ 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(); + // Getters and Setters of current diagram void SetCbName(std::string cbName); void SetCbPackageName(std::string packagename); void SetAuthor(std::string author); @@ -108,6 +121,7 @@ namespace bbtk std::string GetCategory(); void SetNameTabPanel(wxString tabpanelname); + std::string GetNameTabPanel(); std::string GetCurrentTabPanelPath( ); //DFCH