+ {
+ 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);
+
+
+
+ // File menu and toolbar events
+ void OnCreateNewTab(wxCommandEvent& event);
+ void OnOpenDiagram(wxCommandEvent& event);
+ void OnSaveActualDiagram(wxCommandEvent& event);
+ void OnOpenBBS(wxCommandEvent& event);
+ void OnSaveActualBBS(wxCommandEvent& event);
+ void OnSaveActualComplexBox(wxCommandEvent& event);
+ void OnExecuteActualDiagram(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);
+
+
+ private:
+
+ //AuiManager for the wxWindow
+ wxAuiManager *_frameAUIMgr;
+
+ //Class that manages all the tabs in the window
+ wxTabPanelsManager *_tabsMgr;