X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FbbtkwxGUIEditorGraphicBBS.h;h=ee35ab0f39ae0c921b19dbb1e34635f221e16e5c;hb=7ecf7bf3d89fe77fab3453731c57eb49df35c983;hp=d3cc7ed296f44ece63dd85c5db2c9fb66511d690;hpb=dd81df5d0a29d435fd2f0a832b3666b6a416cb19;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h index d3cc7ed..ee35ab0 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h @@ -50,6 +50,7 @@ #include "wxVtkSceneManager.h" #include "GlobalConstants.h" + #include "wxart_new.xpm" // JPR #include "wxart_open.xpm" #include "wxart_save.xpm" @@ -61,6 +62,8 @@ #include "wxart_complexbox.xpm" #include "wxart_complexinputport.xpm" #include "wxart_complexoutputport.xpm" +#include "wxart_undo.xpm" +#include "wxart_redo.xpm" //Includes creaMaracasVisu @@ -68,7 +71,9 @@ #include #include #include +#include #include +#include //Includes vtk @@ -119,6 +124,10 @@ namespace bbtk // Shows the dialog to change the parameters and values of the black box void editBlackBox(GBlackBoxModel *bbmodel); + bool boxNameExists(std::string boxname); + + // Checks and adds if necessary the .bbg/.bbs extensions + std::string CheckExtension (std::string filename, std::string extension); // Method that can be used to refresh the help and package browser // RaC TOFIX!!! void RegenerateAll(); @@ -133,6 +142,7 @@ namespace bbtk void SaveActualComplexBox(std::string filename); void SaveActualDiagram(std::string filename); void SaveCurrentDiagramAs( ); //DFCH + void SaveTempActualDiagram(const std::string &);//FCY // File menu and toolbar events @@ -153,9 +163,13 @@ namespace bbtk void OnAddComplexBoxOutput(wxCommandEvent& event); void OnExit(wxCommandEvent& event); void OnHelpBBeditor(wxCommandEvent& event); + void OnUndo(wxCommandEvent& event); + void OnRedo(wxCommandEvent& event); + void OnChangeName(wxCommandEvent& event); // Edit menu events - void OnCopySelectedToComplexDiagram(wxCommandEvent& event); + void OnCopySelectedToComplexDiagram(wxCommandEvent& event); + // Tool menu events void OnCreatePackage(wxCommandEvent& event);