]> Creatis software - bbtkGEditor.git/blob - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h
Setting values in a blackbox and almost setting values in the scene properties
[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 "wxEditionDialog.h"
50 #include "wxVtkSceneManager.h"
51 #include "C:\RaC\CREATIS\bbtkGEditor\data\icons\wxart_new.xpm"
52
53 //Includes creaMaracasVisu
54
55 //Includes bbtk
56 #include <bbtkWxGUIPackageBrowser2.h>
57 #include <bbtkWxGUIHtmlBrowser.h>
58 #include <bbtkBlackBoxDescriptor.h>
59 #include <bbtkConfigurationFile.h>
60
61 //Includes vtk
62
63 //Includes wxWidgets
64 #include <wx/frame.h>
65 #include <wx/aui/aui.h>
66 #include <wx/aui/auibook.h>
67 #include <wx/panel.h>
68 #include <wx/toolbar.h>
69 #include <wx/bitmap.h>
70 #include <wx/menu.h>
71 #include <wx/dnd.h>
72 #include <wx/grid.h>
73
74 //Includes std
75 #include <iostream>
76 #include <fstream>
77
78 namespace bbtk
79 {
80         class wxTabPanelsManager;
81
82         class wxVtkSceneManager;
83   
84         class  wxGUIEditorGraphicBBS : public wxFrame
85   {
86   public: 
87           wxGUIEditorGraphicBBS(wxFrame *parent );
88           ~wxGUIEditorGraphicBBS();
89
90                 void initToolbar(); 
91                 void initMenu();
92                 void initTabPanelsManager();
93                 void initPackageBrowser();
94                 void initHelpHTMLBrowser();
95                 void initPropertiesPanel();
96
97                 wxAuiNotebook* getAuiNotebook();
98                 void displayBlackBoxInfo(std::string packageName, std::string boxName);
99                 void updateStatusBar(std::string textStatus);
100                 void executeActualDiagram();
101
102                 void editBlackBox(GBlackBoxModel *bbmodel);
103                 void editDiagramParameters(wxVtkSceneManager* scene);
104
105                 void RegenerateAll();
106                 void DoRegeneratePackageDoc(const std::string& pack);   
107                 void DoRegenerateBoxesLists();
108
109                 void OnToolLeftClick(wxCommandEvent& event);
110                 void OnExit(wxCommandEvent& event);
111
112
113         private:
114                 wxAuiManager                                            *_frameAUIMgr;
115                 wxTabPanelsManager                                      *_tabsMgr;
116                 wxAuiNotebook                                           *_notebook;
117                 WxGUIPackageBrowser2                            *_pkgBrowser;
118                 WxGUIHtmlBrowser                                        *_helpHtmlBrowser;
119                 wxPropertiesPanel                                       *_propertiesPanel;
120
121                 std::string _dataDir;
122
123                 std::string _actualPkgBrowserBoxName;
124
125                 std::string _actualPkgBrowserPkgName;
126
127         protected:
128
129           
130  };
131
132
133 }
134 // namespace bbtk
135 #endif
136