]> Creatis software - bbtkGEditor.git/blob - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GlobalConstants.h
2396 bbGEditor Feature New Normal Feature Show Tree 2014-06-18 15:29
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GlobalConstants.h
1 /*
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
5 #                        pour la Santé)
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 #
8 #  This software is governed by the CeCILL-B license under French law and 
9 #  abiding by the rules of distribution of free software. You can  use, 
10 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
11 #  license as circulated by CEA, CNRS and INRIA at the following URL 
12 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
13 #  or in the file LICENSE.txt.
14 #
15 #  As a counterpart to the access to the source code and  rights to copy,
16 #  modify and redistribute granted by the license, users are provided only
17 #  with a limited warranty  and the software's author,  the holder of the
18 #  economic rights,  and the successive licensors  have only  limited
19 #  liability. 
20 #
21 #  The fact that you are presently reading this means that you have had
22 #  knowledge of the CeCILL-B license and that you accept its terms.
23 # ------------------------------------------------------------------------  
24 */
25
26 /*=========================================================================
27 Program:   bbtk
28 Module:    $RCSfile$
29 Language:  C++
30 Date:      $Date$
31 Version:   $Revision$
32 =========================================================================*/
33
34 /* ---------------------------------------------------------------------
35
36  * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
37  * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
38  *
39  *  This software is governed by the CeCILL-B license under French law and
40  *  abiding by the rules of distribution of free software. You can  use,
41  *  modify and/ or redistribute the software under the terms of the CeCILL-B
42  *  license as circulated by CEA, CNRS and INRIA at the following URL
43  *  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
44  *  or in the file LICENSE.txt.
45  *
46  *  As a counterpart to the access to the source code and  rights to copy,
47  *  modify and redistribute granted by the license, users are provided only
48  *  with a limited warranty  and the software's author,  the holder of the
49  *  economic rights,  and the successive licensors  have only  limited
50  *  liability.
51  *
52  *  The fact that you are presently reading this means that you have had
53  *  knowledge of the CeCILL-B license and that you accept its terms.
54  * ------------------------------------------------------------------------ */
55
56
57 /****
58  * Design and Developpement of BBTK GEditor
59  * Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
60  * RaC - 2010
61  ****/
62
63 #ifndef __GlobalConstants_h__
64 #define __GlobalConstants_h__
65
66 namespace bbtk {
67
68         // Object types
69         const int GBLACKBOX                                     =       1;
70         const int GCONNECTOR                            =       2;
71         const int GPORT                                         =       3;
72         const int GINPUTPORT                            =       4;
73         const int GOUTPUTPORT                           =       5;
74         const int GCOMPLEXINPUTPORT                     =       6;
75         const int GCOMPLEXOUTPUTPORT            =       7;
76
77         const double GPOSITION_Z                        =       -900;
78         
79         // Object states
80         
81         // JGRR
82         const int POSSIBLE_CONNECTION = 107;
83         const int SELECTED_POSSIBLE_CONNECTION = 108; 
84         // EO JGRR
85     
86         const int NOTHING_HAPPENS                       =       101;
87         const int HIGHLIGHTED                           =       102;
88         const int CLICKED                                       =       103;
89         const int DRAG                                          =       104;
90         const int SELECTED                                      =       105;
91         const int CREATING_CONTOUR                      =       106;
92
93         // Object dimensions
94         const double BOX_HEIGHT                         =       10;
95         const double BOX_WIDTH                          =       100;
96         const double PORT_HEIGHT                        =       1.8;
97         const double PORT_WIDTH                         =       2.8;
98         const double COMPLEXPORT_HEIGHT         =       8;
99         const double COMPLEXPORT_WIDTH          =       8;
100
101         // Commands
102         const int NO_COMMAND                            =       201;
103         const int INIT_CREATION_CONTOUR         =       202;
104         const int FIN_CREATION_CONTOUR          =       203;
105         const int ADD_TO_SELECTED                       =       204;
106         const int DRAG_OBJECTS                          =       205;
107         const int EDIT_BLACKBOX                         =       206;
108         const int REMOVE_FROM_SELECTED          =       207;
109
110
111         //// COLORS (object_state_(R|G|B))
112
113         //Object Border colors
114
115         const double BOXBORDER_NH_R                                     =       0.5;
116         const double BOXBORDER_NH_G                                     =       0.25;
117         const double BOXBORDER_NH_B                                     =       0.0;
118
119         const double COMPLEXINPUTPORTBORDER_NH_R        =       0.7;
120         const double COMPLEXINPUTPORTBORDER_NH_G        =       0.1;
121         const double COMPLEXINPUTPORTBORDER_NH_B        =       0.1;
122
123         const double COMPLEXOUTPUTPORTBORDER_NH_R       =       0.3;
124         const double COMPLEXOUTPUTPORTBORDER_NH_G       =       0.55;
125         const double COMPLEXOUTPUTPORTBORDER_NH_B       =       0.1;
126
127         const double BOXBORDER_HIGHLIGHTED_R            =       0.05;
128         const double BOXBORDER_HIGHLIGHTED_G            =       0.25;
129         const double BOXBORDER_HIGHLIGHTED_B            =       0.45;
130
131         const double BOXBORDER_DRAG_R                           =       0.75;
132         const double BOXBORDER_DRAG_G                           =       0.75;
133         const double BOXBORDER_DRAG_B                           =       0.75;
134
135         const double BOXBORDER_SELECTED_R                       =       0.45;
136         const double BOXBORDER_SELECTED_G                       =       0.45;
137         const double BOXBORDER_SELECTED_B                       =       0.00;
138
139
140         //Object Fill colors
141
142         const double BOXFILL_NH_R                               =       0.5;
143         const double BOXFILL_NH_G                               =       0.35;
144         const double BOXFILL_NH_B                               =       0.15;
145
146         const double COMPLEXINPUTPORTFILL_NH_R  =       0.8;
147         const double COMPLEXINPUTPORTFILL_NH_G  =       0.1;
148         const double COMPLEXINPUTPORTFILL_NH_B  =       0.1;
149
150         const double COMPLEXOUTPUTPORTFILL_NH_R =       0.5;
151         const double COMPLEXOUTPUTPORTFILL_NH_G =       0.85;
152         const double COMPLEXOUTPUTPORTFILL_NH_B =       0.1;
153
154         const double BOXFILL_HIGHLIGHTED_R              =       0.05;
155         const double BOXFILL_HIGHLIGHTED_G              =       0.30;
156         const double BOXFILL_HIGHLIGHTED_B              =       0.45;
157
158         const double BOXFILL_DRAG_R                             =       0.75;
159         const double BOXFILL_DRAG_G                             =       0.75;
160         const double BOXFILL_DRAG_B                             =       0.75;
161
162         const double BOXFILL_SELECTED_R                 =       0.65;
163         const double BOXFILL_SELECTED_G                 =       0.65;
164         const double BOXFILL_SELECTED_B                 =       0.05;
165
166
167         //Object Text colors
168
169
170         const double PORTFILL_NH_R                              =       0.0;
171         const double PORTFILL_NH_G                              =       0.0;
172         const double PORTFILL_NH_B                              =       0.0;
173
174         const double PORTTEXT_NH_R                              =       1.0;
175         const double PORTTEXT_NH_G                              =       1.0;
176         const double PORTTEXT_NH_B                              =       0.0;
177
178         const double BOXTEXT_NH_R                               =       0.25;
179         const double BOXTEXT_NH_G                               =       0.0;
180         const double BOXTEXT_NH_B                               =       0.0;
181
182         const double BOXTEXT_HIGHLIGHTED_R              =       0.05;
183         const double BOXTEXT_HIGHLIGHTED_G              =       0.05;
184         const double BOXTEXT_HIGHLIGHTED_B              =       0.4;
185
186         const double BOXTEXT_DRAG_R                             =       0.75;
187         const double BOXTEXT_DRAG_G                             =       0.75;
188         const double BOXTEXT_DRAG_B                             =       0.75;
189
190         const double BOXTEXT_SELECTED_R                 =       0.35;
191         const double BOXTEXT_SELECTED_G                 =       0.35;
192         const double BOXTEXT_SELECTED_B                 =       0.05;
193
194         // GUI Id's
195         const int ID_NEW                                                =       1000;
196         const int ID_SAVE_AS_DIAGRAM                    =       1001;
197         const int ID_SAVE_DIAGRAM                               =       1015; //last DFCH
198         const int ID_OPEN                                               =       1002;
199         const int ID_RUN                                                =       1003;
200         const int ID_DELETEALL                                  =       1004;
201         const int ID_CENTERVIEW                                 =       1005;
202         const int ID_BTNCOMPLEXBOX                              =       1006;
203         const int ID_ADDCOMPLEXBOXINPUT                 =       1007;
204         const int ID_ADDCOMPLEXBOXOUTPUT                =       1008;
205         const int ID_OPEN_BBS                                   =       1009;
206         const int ID_SAVE_AS_BBS                                =       1010;
207         const int ID_SAVE_AS_COMPLEXBOX                 =       1011;
208         const int ID_COPY_TO_COMPLEXDIAGRAM             =       1012;
209         const int ID_BTNBOX                                             =       1013;
210         const int ID_HELP_BBEDITOR                              =       1014;
211         const int ID_BTEXECUTABLEBOX                    =       1016; // EED
212         const int ID_EXPORT_CONSOLEAPP                  =       1017; // RaC
213         const int ID_EDIT_COMPLEXBOX_SCRIPT             =       1018; // EED
214         
215         const int wxID_NOTEBOOK                                 =       1018;  // EED updated
216         
217         const int ID_bbEditor_Tool_Menu_CreatePackage   =       1019;  // EED
218         const int ID_bbEditor_Tool_Menu_CreateBlackBox          =       1020;  // EED
219         const int ID_bbEditor_Tool_Menu_PlugPackage                     =       1021;  // EED
220         const int ID_bbEditor_Tool_Menu_EditConfig                      =       1022;  // EED
221         const int ID_bbEditor_Tool_Menu_ShowHTMLDoc                     =       1023;  // EED
222         const int ID_bbEditor_Tool_Menu_CreateIndex                     =       1024;  // EED
223         
224         const int ID_UNDO                                                                       =       1025;  // FCY
225         const int ID_REDO                                                                       =       1026;  // FCY
226         const int ID_CHANGENAME                                                         =   1027;
227
228         const int ID_EDITPROPERTIES                                                                     =       1028;  // RaC 2nd HackFest
229         const int ID_SHOWTREE                                                                   =       1029;  // CFT
230 }
231 // namespace bbtk
232 #endif
233