1 /*=========================================================================
7 =========================================================================*/
9 /* ---------------------------------------------------------------------
11 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
12 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
14 * This software is governed by the CeCILL-B license under French law and
15 * abiding by the rules of distribution of free software. You can use,
16 * modify and/ or redistribute the software under the terms of the CeCILL-B
17 * license as circulated by CEA, CNRS and INRIA at the following URL
18 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
19 * or in the file LICENSE.txt.
21 * As a counterpart to the access to the source code and rights to copy,
22 * modify and redistribute granted by the license, users are provided only
23 * with a limited warranty and the software's author, the holder of the
24 * economic rights, and the successive licensors have only limited
27 * The fact that you are presently reading this means that you have had
28 * knowledge of the CeCILL-B license and that you accept its terms.
29 * ------------------------------------------------------------------------ */
35 * \brief Class bbtk::BlackBox : abstract black-box interface.
39 * \class bbtk::WxGUIEditorGraphicBBS
43 #ifndef __WxGUIEditorGraphicBBS_h__
44 #define __WxGUIEditorGraphicBBS_h__
46 //Includes same project
47 #include "wxTabPanelsManager.h"
48 #include "wxBlackBoxEditionDialog.h"
49 #include "wxVtkSceneManager.h"
50 #include "GlobalConstants.h"
52 //#include "C:\RaC\CREATIS\bbtkGEditor\data\icons\wxart_new.xpm" // JPR
53 #include "wxart_new.xpm" // JPR
54 #include "wxart_open.xpm"
55 #include "wxart_save.xpm"
56 #include "wxart_run.xpm"
57 #include "wxart_delete.xpm"
58 #include "wxart_centerview.xpm"
60 //Includes creaMaracasVisu
63 #include <bbtkWxGUIPackageBrowser2.h>
64 #include <bbtkWxGUIHtmlBrowser.h>
65 #include <bbtkBlackBoxDescriptor.h>
66 #include <bbtkConfigurationFile.h>
72 #include <wx/aui/aui.h>
73 #include <wx/aui/auibook.h>
75 #include <wx/toolbar.h>
76 #include <wx/bitmap.h>
87 class wxTabPanelsManager;
89 class wxVtkSceneManager;
91 class wxGUIEditorGraphicBBS : public wxFrame
94 wxGUIEditorGraphicBBS(wxFrame *parent );
95 ~wxGUIEditorGraphicBBS();
99 void initTabPanelsManager();
100 void initPackageBrowser();
101 void initHelpHTMLBrowser();
103 wxAuiNotebook* getAuiNotebook();
104 void displayBlackBoxInfo(std::string packageName, std::string boxName);
105 void updateStatusBar(std::string textStatus);
106 void executeScript(std::string script);
108 void editBlackBox(GBlackBoxModel *bbmodel);
109 void editDiagramParameters(wxVtkSceneManager* scene);
111 void RegenerateAll();
112 void DoRegeneratePackageDoc(const std::string& pack);
113 void DoRegenerateBoxesLists();
115 void OnCreateNewTab(wxCommandEvent& event);
116 void OnOpenDiagram(wxCommandEvent& event);
117 void OnSaveActualDiagram(wxCommandEvent& event);
118 void OnExecuteActualDiagram(wxCommandEvent& event);
119 void OnDeleteAllBoxesActualDiagram(wxCommandEvent& event);
120 void OnCenterViewActualDiagram(wxCommandEvent& event);
121 void OnActivateComplexBox(wxCommandEvent& event);
122 void OnExit(wxCommandEvent& event);
126 wxAuiManager *_frameAUIMgr;
127 wxTabPanelsManager *_tabsMgr;
128 wxAuiNotebook *_notebook;
129 WxGUIPackageBrowser2 *_pkgBrowser;
130 WxGUIHtmlBrowser *_helpHtmlBrowser;
132 std::string _dataDir;
134 std::string _actualPkgBrowserBoxName;
136 std::string _actualPkgBrowserPkgName;