- void editBlackBox(GBlackBoxModel *bbmodel);
- void editDiagramParameters(wxVtkSceneManager* scene);
-
- void RegenerateAll();
- void DoRegeneratePackageDoc(const std::string& pack);
- void DoRegenerateBoxesLists();
-
- void OnToolLeftClick(wxCommandEvent& event);
- void OnExit(wxCommandEvent& event);
-
-
- private:
- wxAuiManager *_frameAUIMgr;
- wxTabPanelsManager *_tabsMgr;
- wxAuiNotebook *_notebook;
- WxGUIPackageBrowser2 *_pkgBrowser;
- WxGUIHtmlBrowser *_helpHtmlBrowser;
- wxPropertiesPanel *_propertiesPanel;
-
- std::string _dataDir;
-
- std::string _actualPkgBrowserBoxName;
-
- std::string _actualPkgBrowserPkgName;
+ class wxGUIEditorGraphicBBS : public wxFrame
+ {
+ public:
+ wxGUIEditorGraphicBBS(wxFrame *parent);
+ ~wxGUIEditorGraphicBBS();
+
+ void initToolbar();
+ void initMenu();
+ void initTabPanelsManager();
+ void initPackageBrowser();
+ void initHelpHTMLBrowser();
+ wxAuiNotebook* getAuiNotebook();
+
+ // Display the info of the black box highlighted in the PackageBrowser
+ void displayBlackBoxInfo(std::string packageName, std::string boxName);
+
+ // Shows the textStatus in the wxFrame status bar
+ void updateStatusBar(std::string textStatus);
+
+ // Executes the BBS script in parameter
+ void executeScript(std::string script);
+
+ // Shows the dialog to change the parameters and values of the black box
+ void editBlackBox(GBlackBoxModel *bbmodel);
+
+ // Method that can be used to refresh the help and package browser
+ // RaC TOFIX!!!
+ void RegenerateAll();
+ void DoRegeneratePackageDoc(const std::string& pack);
+ void DoRegenerateBoxesLists();
+
+ // 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
+
+
+ // File menu and toolbar events
+ void OnCreateNewTab(wxCommandEvent& event);
+ void OnOpenDiagram(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);
+ void OnClickBtnComplexBox(wxCommandEvent& event);
+ void OnAddComplexBoxInput(wxCommandEvent& event);
+ void OnAddComplexBoxOutput(wxCommandEvent& event);
+ void OnExit(wxCommandEvent& event);
+ void OnHelpBBeditor(wxCommandEvent& event);
+
+ // Edit menu events
+ 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
+ wxAuiManager *_frameAUIMgr;
+
+ //Class that manages all the tabs in the window
+ wxTabPanelsManager *_tabsMgr;
+
+ //Notebook managed by the wxTabPanelsManager
+ wxAuiNotebook *_notebook;
+
+ //Instance to the BBTK Package Browser
+ WxGUIPackageBrowser2 *_pkgBrowser;
+
+ //Instance to the BBTK Help Browser
+ WxGUIHtmlBrowser *_helpHtmlBrowser;
+
+ //Name of the box and its package that is shown in the browser
+ std::string _actualPkgBrowserBoxName;
+ std::string _actualPkgBrowserPkgName;
+
+ protected: