]> Creatis software - bbtkGEditor.git/blob - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h
The actual version updates the status bar with the highlighted object ... Also it...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / bbtkwxGUIEditorGraphicBBS.h
1 /*=========================================================================                                                                               
2   Program:   bbtk
3   Module:    $RCSfile$
4   Language:  C++
5   Date:      $Date$
6   Version:   $Revision$
7 =========================================================================*/
8
9 /* ---------------------------------------------------------------------
10
11 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
12 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
13 *
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.
20 *
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
25 *  liability. 
26 *
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 * ------------------------------------------------------------------------ */                                                                         
30
31
32
33 /**
34  *  \file 
35  *  \brief Class bbtk::BlackBox : abstract black-box interface. 
36  */
37
38 /**
39  * \class bbtk::WxGUIEditorGraphicBBS
40  * \brief 
41  */
42  
43 #ifndef __WxGUIEditorGraphicBBS_h__
44 #define __WxGUIEditorGraphicBBS_h__
45
46 //Includes same project
47 #include "wxTabPanelsManager.h"
48 #include "wxPropertiesPanel.h"
49 #include "C:\RaC\CREATIS\bbtkGEditor\data\icons\wxart_new.xpm"
50
51 //Includes creaMaracasVisu
52
53 //Includes bbtk
54 #include <bbtkWxGUIPackageBrowser2.h>
55 #include <bbtkWxGUIHtmlBrowser.h>
56 #include <bbtkBlackBoxDescriptor.h>
57 #include <bbtkConfigurationFile.h>
58
59 //Includes vtk
60
61 //Includes wxWidgets
62 #include <wx/frame.h>
63 #include <wx/aui/aui.h>
64 #include <wx/aui/auibook.h>
65 #include <wx/panel.h>
66 #include <wx/toolbar.h>
67 #include <wx/bitmap.h>
68 #include <wx/menu.h>
69 #include <wx/dnd.h>
70 #include <wx/grid.h>
71
72 //Includes std
73
74 namespace bbtk
75 {
76         class wxTabPanelsManager;
77   
78         class  wxGUIEditorGraphicBBS : public wxFrame
79   {
80   public: 
81           wxGUIEditorGraphicBBS(wxFrame *parent );
82           ~wxGUIEditorGraphicBBS();
83
84                 void initToolbar(); 
85                 void initMenu();
86                 void initTabPanelsManager();
87                 void initPackageBrowser();
88                 void initHelpHTMLBrowser();
89                 void initPropertiesPanel();
90
91                 wxAuiNotebook* getAuiNotebook();
92                 void displayBlackBoxInfo(std::string packageName, std::string boxName);
93                 void updateStatusBar(std::string textStatus);
94
95                 void RegenerateAll();
96                 void DoRegeneratePackageDoc(const std::string& pack);   
97                 void DoRegenerateBoxesLists();
98
99                 void OnToolLeftClick(wxCommandEvent& event);
100                 void OnExit(wxCommandEvent& event);
101
102
103         private:
104                 wxAuiManager                                            *_frameAUIMgr;
105                 wxTabPanelsManager                                      *_tabsMgr;
106                 wxAuiNotebook                                           *_notebook;
107                 WxGUIPackageBrowser2                            *_pkgBrowser;
108                 WxGUIHtmlBrowser                                        *_helpHtmlBrowser;
109                 wxPropertiesPanel                                       *_propertiesPanel;
110
111                 std::string _dataDir;
112
113                 std::string _actualPkgBrowserBoxName;
114
115                 std::string _actualPkgBrowserPkgName;
116
117         protected:
118
119           
120  };
121
122
123 }
124 // namespace bbtk
125 #endif
126