]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h
Feature #1666
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / bbtkwxGUIEditorGraphicBBS.h
index c93405fc4ca7e5afd57a4df8dc12dec932ae6b41..ee35ab0f39ae0c921b19dbb1e34635f221e16e5c 100644 (file)
@@ -50,6 +50,7 @@
 #include "wxVtkSceneManager.h"
 #include "GlobalConstants.h"
 
+
 #include "wxart_new.xpm" // JPR
 #include "wxart_open.xpm"
 #include "wxart_save.xpm"
 #include "wxart_delete.xpm"
 #include "wxart_centerview.xpm"
 #include "wxart_box.xpm"
+#include "wxart_executablebox.xpm"
 #include "wxart_complexbox.xpm"
 #include "wxart_complexinputport.xpm"
 #include "wxart_complexoutputport.xpm"
+#include "wxart_undo.xpm"
+#include "wxart_redo.xpm"
 
 //Includes creaMaracasVisu
 
@@ -67,7 +71,9 @@
 #include <bbtkWxGUIPackageBrowser2.h>
 #include <bbtkWxGUIHtmlBrowser.h>
 #include <bbtkBlackBoxDescriptor.h>
+#include <bbtkUtilities.h>
 #include <bbtkConfigurationFile.h>
+#include <bbtkSystemTools.h>
 
 //Includes vtk
 
@@ -104,7 +110,6 @@ namespace bbtk
                        void initTabPanelsManager();
                        void initPackageBrowser();
                        void initHelpHTMLBrowser();
-
                        wxAuiNotebook* getAuiNotebook();
 
                        // Display the info of the black box highlighted in the PackageBrowser
@@ -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();
@@ -127,21 +136,25 @@ namespace bbtk
 
                        // Refresh the state of buttons and menus when changing for example the mode to edit complex box
                        void refreshGUIControls();
-
+                       
             void SaveActualBBS(std::string filename);
+            void AskComplexBoxConfiguration();
             void SaveActualComplexBox(std::string filename);
             void SaveActualDiagram(std::string filename);
-
+                       void SaveCurrentDiagramAs( ); //DFCH
+                       void SaveTempActualDiagram(const std::string &);//FCY
 
 
                        // File menu and toolbar events
                        void OnCreateNewTab(wxCommandEvent& event);
                        void OnOpenDiagram(wxCommandEvent& event);
-                       void OnSaveActualDiagram(wxCommandEvent& event);
+                       void OnSaveActualDiagram(wxCommandEvent& event); //DFCH
+                       void OnSaveAsActualDiagram(wxCommandEvent& event); //DFCH
                        void OnOpenBBS(wxCommandEvent& event);
                        void OnSaveActualBBS(wxCommandEvent& event);
                        void OnSaveActualComplexBox(wxCommandEvent& event);
                        void OnExecuteActualDiagram(wxCommandEvent& event);
+                       void OnClickBtnExecutableBox(wxCommandEvent& event);
                        void OnDeleteAllBoxesActualDiagram(wxCommandEvent& event);
                        void OnCenterViewActualDiagram(wxCommandEvent& event);
                        void OnClickBtnBox(wxCommandEvent& event);
@@ -150,11 +163,25 @@ 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);
+                       void OnCreateBlackBox(wxCommandEvent& event);
+                       void OnPlugPackage(wxCommandEvent& event);
+                       void OnEditConfig(wxCommandEvent& event);
+                       void OnShowHTMLDoc(wxCommandEvent& event);
+                       void OnCreateIndex(wxCommandEvent& event);
+               
+               
+               
+               
                private:
 
                        //AuiManager for the wxWindow