X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxGEditorTabPanel.h;h=59d615e3f6801f38bd451987dd5b4244352fb31e;hb=228d83d191151e160937f836bc768365e55e1cf0;hp=db615aa629274b7263137abc85020f446f7f6469;hpb=04884fa171fe877e5c2ca53d11d6838bc1f8a8f7;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.h index db615aa..59d615e 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.h +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.h @@ -101,19 +101,24 @@ namespace bbtk void saveDiagram(std::string &content, const std::string &path); //DFCH // Save temporary diagram as BBG - void saveTempDiagram(); + void saveTempDiagram(const std::string &); + + // Save temporary diagram as BBG and update buttons + void saveTempandUpdate(const std::string &); // Load BBG diagram void loadDiagram(ifstream &inputStream, const std::string &path); //DFCH + void saveStringAction(const std::string &action); + // Load temporary diagram as BBG void loadTempDiagram(unsigned short un); // evaluate the position in the undo actions list - unsigned short getUndoState(); + unsigned short getUndoState(std::string &); // evaluate the position in the redo actions list - unsigned short getRedoState(); + unsigned short getRedoState(std::string &); // Add a new complex input object to the scene void addComplexInputPort(std::string portName); @@ -170,6 +175,8 @@ namespace bbtk private: std::vector states; // represents each modification of the tab. Maxixum size 100!! std::vector::iterator _actualdo; // actual position on modifications vector + std::vector sstates; // represents string of each modification of the tab. Maxixum size 100!! + std::vector::iterator _sactualdo; // actual position onstring modifications vector int _id; wxAuiManager *_panelAUIMgr;