GlobalConstants.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 Program:   bbtk
00003 Module:    $RCSfile: GlobalConstants.h,v $
00004 Language:  C++
00005 Date:      $Date: 2012/05/23 15:57:12 $
00006 Version:   $Revision: 1.35 $
00007 =========================================================================*/
00008 
00009 /* ---------------------------------------------------------------------
00010 
00011  * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
00012  * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
00013  *
00014  *  This software is governed by the CeCILL-B license under French law and
00015  *  abiding by the rules of distribution of free software. You can  use,
00016  *  modify and/ or redistribute the software under the terms of the CeCILL-B
00017  *  license as circulated by CEA, CNRS and INRIA at the following URL
00018  *  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
00019  *  or in the file LICENSE.txt.
00020  *
00021  *  As a counterpart to the access to the source code and  rights to copy,
00022  *  modify and redistribute granted by the license, users are provided only
00023  *  with a limited warranty  and the software's author,  the holder of the
00024  *  economic rights,  and the successive licensors  have only  limited
00025  *  liability.
00026  *
00027  *  The fact that you are presently reading this means that you have had
00028  *  knowledge of the CeCILL-B license and that you accept its terms.
00029  * ------------------------------------------------------------------------ */
00030 
00031 
00032 /****
00033  * Design and Developpement of BBTK GEditor
00034  * Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
00035  * RaC - 2010
00036  ****/
00037 
00038 #ifndef __GlobalConstants_h__
00039 #define __GlobalConstants_h__
00040 
00041 namespace bbtk {
00042 
00043         // Object types
00044         const int GBLACKBOX                                     =       1;
00045         const int GCONNECTOR                            =       2;
00046         const int GPORT                                         =       3;
00047         const int GINPUTPORT                            =       4;
00048         const int GOUTPUTPORT                           =       5;
00049         const int GCOMPLEXINPUTPORT                     =       6;
00050         const int GCOMPLEXOUTPUTPORT            =       7;
00051 
00052         // Object states
00053         
00054         // JGRR
00055         const int POSSIBLE_CONNECTION = 107;
00056         const int SELECTED_POSSIBLE_CONNECTION = 108; 
00057         // EO JGRR
00058     
00059         const int NOTHING_HAPPENS                       =       101;
00060         const int HIGHLIGHTED                           =       102;
00061         const int CLICKED                                       =       103;
00062         const int DRAG                                          =       104;
00063         const int SELECTED                                      =       105;
00064         const int CREATING_CONTOUR                      =       106;
00065 
00066         // Object dimensions
00067         const double BOX_HEIGHT                         =       10;
00068         const double BOX_WIDTH                          =       100;
00069         const double PORT_HEIGHT                        =       1.8;
00070         const double PORT_WIDTH                         =       2.8;
00071         const double COMPLEXPORT_HEIGHT         =       8;
00072         const double COMPLEXPORT_WIDTH          =       8;
00073 
00074         // Commands
00075         const int NO_COMMAND                            =       201;
00076         const int INIT_CREATION_CONTOUR         =       202;
00077         const int FIN_CREATION_CONTOUR          =       203;
00078         const int ADD_TO_SELECTED                       =       204;
00079         const int DRAG_OBJECTS                          =       205;
00080         const int EDIT_BLACKBOX                         =       206;
00081         const int REMOVE_FROM_SELECTED          =       207;
00082 
00083 
00085 
00086         //Object Border colors
00087 
00088         const double BOXBORDER_NH_R                                     =       0.5;
00089         const double BOXBORDER_NH_G                                     =       0.25;
00090         const double BOXBORDER_NH_B                                     =       0.0;
00091 
00092         const double COMPLEXINPUTPORTBORDER_NH_R        =       0.7;
00093         const double COMPLEXINPUTPORTBORDER_NH_G        =       0.1;
00094         const double COMPLEXINPUTPORTBORDER_NH_B        =       0.1;
00095 
00096         const double COMPLEXOUTPUTPORTBORDER_NH_R       =       0.3;
00097         const double COMPLEXOUTPUTPORTBORDER_NH_G       =       0.55;
00098         const double COMPLEXOUTPUTPORTBORDER_NH_B       =       0.1;
00099 
00100         const double BOXBORDER_HIGHLIGHTED_R            =       0.05;
00101         const double BOXBORDER_HIGHLIGHTED_G            =       0.25;
00102         const double BOXBORDER_HIGHLIGHTED_B            =       0.45;
00103 
00104         const double BOXBORDER_DRAG_R                           =       0.75;
00105         const double BOXBORDER_DRAG_G                           =       0.75;
00106         const double BOXBORDER_DRAG_B                           =       0.75;
00107 
00108         const double BOXBORDER_SELECTED_R                       =       0.45;
00109         const double BOXBORDER_SELECTED_G                       =       0.45;
00110         const double BOXBORDER_SELECTED_B                       =       0.00;
00111 
00112 
00113         //Object Fill colors
00114 
00115         const double BOXFILL_NH_R                               =       0.5;
00116         const double BOXFILL_NH_G                               =       0.35;
00117         const double BOXFILL_NH_B                               =       0.15;
00118 
00119         const double COMPLEXINPUTPORTFILL_NH_R  =       0.8;
00120         const double COMPLEXINPUTPORTFILL_NH_G  =       0.1;
00121         const double COMPLEXINPUTPORTFILL_NH_B  =       0.1;
00122 
00123         const double COMPLEXOUTPUTPORTFILL_NH_R =       0.5;
00124         const double COMPLEXOUTPUTPORTFILL_NH_G =       0.85;
00125         const double COMPLEXOUTPUTPORTFILL_NH_B =       0.1;
00126 
00127         const double BOXFILL_HIGHLIGHTED_R              =       0.05;
00128         const double BOXFILL_HIGHLIGHTED_G              =       0.30;
00129         const double BOXFILL_HIGHLIGHTED_B              =       0.45;
00130 
00131         const double BOXFILL_DRAG_R                             =       0.75;
00132         const double BOXFILL_DRAG_G                             =       0.75;
00133         const double BOXFILL_DRAG_B                             =       0.75;
00134 
00135         const double BOXFILL_SELECTED_R                 =       0.65;
00136         const double BOXFILL_SELECTED_G                 =       0.65;
00137         const double BOXFILL_SELECTED_B                 =       0.05;
00138 
00139 
00140         //Object Text colors
00141 
00142 
00143         const double PORTFILL_NH_R                              =       0.0;
00144         const double PORTFILL_NH_G                              =       0.0;
00145         const double PORTFILL_NH_B                              =       0.0;
00146 
00147         const double PORTTEXT_NH_R                              =       1.0;
00148         const double PORTTEXT_NH_G                              =       1.0;
00149         const double PORTTEXT_NH_B                              =       0.0;
00150 
00151         const double BOXTEXT_NH_R                               =       0.25;
00152         const double BOXTEXT_NH_G                               =       0.0;
00153         const double BOXTEXT_NH_B                               =       0.0;
00154 
00155         const double BOXTEXT_HIGHLIGHTED_R              =       0.05;
00156         const double BOXTEXT_HIGHLIGHTED_G              =       0.05;
00157         const double BOXTEXT_HIGHLIGHTED_B              =       0.4;
00158 
00159         const double BOXTEXT_DRAG_R                             =       0.75;
00160         const double BOXTEXT_DRAG_G                             =       0.75;
00161         const double BOXTEXT_DRAG_B                             =       0.75;
00162 
00163         const double BOXTEXT_SELECTED_R                 =       0.35;
00164         const double BOXTEXT_SELECTED_G                 =       0.35;
00165         const double BOXTEXT_SELECTED_B                 =       0.05;
00166 
00167         // GUI Id's
00168         const int ID_NEW                                                =       1000;
00169         const int ID_SAVE_AS_DIAGRAM                    =       1001;
00170         const int ID_SAVE_DIAGRAM                               =       1015; //last DFCH
00171         const int ID_OPEN                                               =       1002;
00172         const int ID_RUN                                                =       1003;
00173         const int ID_DELETEALL                                  =       1004;
00174         const int ID_CENTERVIEW                                 =       1005;
00175         const int ID_BTNCOMPLEXBOX                              =       1006;
00176         const int ID_ADDCOMPLEXBOXINPUT                 =       1007;
00177         const int ID_ADDCOMPLEXBOXOUTPUT                =       1008;
00178         const int ID_OPEN_BBS                                   =       1009;
00179         const int ID_SAVE_AS_BBS                                =       1010;
00180         const int ID_SAVE_AS_COMPLEXBOX                 =       1011;
00181         const int ID_COPY_TO_COMPLEXDIAGRAM             =       1012;
00182         const int ID_BTNBOX                                             =       1013;
00183         const int ID_HELP_BBEDITOR                              =       1014;
00184         const int ID_BTEXECUTABLEBOX                    =       1016; // EED
00185         
00186         const int wxID_NOTEBOOK                                 =       1017;  // EED updated
00187         
00188         const int ID_bbEditor_Tool_Menu_CreatePackage   =       1018;  // EED
00189         const int ID_bbEditor_Tool_Menu_CreateBlackBox          =       1019;  // EED
00190         const int ID_bbEditor_Tool_Menu_PlugPackage                     =       1020;  // EED
00191         const int ID_bbEditor_Tool_Menu_EditConfig                      =       1021;  // EED
00192         const int ID_bbEditor_Tool_Menu_ShowHTMLDoc                     =       1022;  // EED
00193         const int ID_bbEditor_Tool_Menu_CreateIndex                     =       1023;  // EED
00194         
00195         const int ID_UNDO                                                                       =       1024;  // FCY
00196         const int ID_REDO                                                                       =       1025;  // FCY
00197         const int ID_CHANGENAME                                                         =   1026;
00198 }
00199 // namespace bbtk
00200 #endif
00201 

Generated on Thu May 31 15:12:19 2012 for bbtkGEditor by  doxygen 1.5.7.1