Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / src / prs / YACSPrs_Def.h
1 // Copyright (C) 2005  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
2 // 
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either 
6 // version 2.1 of the License.
7 // 
8 // This library is distributed in the hope that it will be useful 
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public  
14 // License along with this library; if not, write to the Free Software 
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef YACSPRS_DEF_H
21 #define YACSPRS_DEF_H
22
23 #define GRAPH_MARGIN 50
24
25 #define NODE_WIDTH 266 //160
26 #define NODE_COLOR QColor(255,249,147)
27 #define NODE_MARGIN 4
28 #define NODE_SPACE 2
29
30 #define SERVICENODE_COLOR QColor(255,255,255)
31 #define SERVICENODE_SUBCOLOR QColor(85,85,255)
32
33 #define INLINENODE_COLOR QColor(255,255,255)
34 #define INLINENODE_SUBCOLOR QColor(12,131,30)
35
36 #define IFNODE_COLOR QColor(255,255,255)
37 #define IFNODE_SUBCOLOR QColor(255,170,0)
38
39 #define SWITCHNODE_COLOR QColor(255,255,255)
40 #define SWITCHNODE_SUBCOLOR QColor(255,99,38)
41
42 #define LOOPNODE_COLOR QColor(255,255,255)
43 #define LOOPNODE_SUBCOLOR QColor(236,1,107)
44 #define LOOPNODE_BRACKETCOLOR QColor(255,255,0)
45
46 #define BLOCNODE_COLOR QColor(221,255,221)
47 #define BLOCNODE_SUBCOLOR QColor(131,0,0)
48 #define BLOCNODERECT_COLOR QColor(0,0,127)
49 #define BLOCNODE_MARGIN 4
50
51 #define NODEBOUNDARY_MARGIN 2
52
53 #define NODE_HILIGHT_COLOR QColor(222,222,222)
54
55 #define TITLE_HEIGHT 20
56 #define TITLE_COLOR QColor(63, 213, 255)
57
58 #define PIXMAP_HEIGHT TITLE_HEIGHT*3
59 #define PIXMAP_MARGIN 4
60
61 #define PORT_WIDTH  75
62 #define PORT_HEIGHT 20
63 #define PORT_MARGIN 4
64 #define PORT_SPACE 2
65
66 #define LABELPORT_COLOR QColor(170,0,0)
67
68 #define PORT_HILIGHT_COLOR QColor(222,222,222)
69
70 #define LINKPOINT_SIZE 5
71 #define LINKEDGE_WIDTH 2
72 #define LINKDRAW_COLOR QColor(0,0,127)
73 #define STREAMLINKDRAW_COLOR QColor(222,0,0)
74 #define LINK_HILIGHT_COLOR QColor(222,222,222)
75 #define LINK_SELECT_COLOR Qt::magenta
76
77 #define LABELLINKDRAW_COLOR QColor(170,0,0)
78
79 #define HOOKPOINT_SIZE 10
80 #define HOOKPOINTGATE_SIZE 14
81 #define HOOKPOINTMASTER_SIZE 66
82 #define HOOK_COLOR QColor(0,0,127)
83 #define HOOK_HILIGHT_COLOR LINK_HILIGHT_COLOR
84 #define HOOK_SELECT_COLOR LINK_SELECT_COLOR
85
86 #define TEXT_MARGIN 5
87 #define MARGIN 2
88
89 #endif