Version: 9.15.0
Resource.cxx
Go to the documentation of this file.
1 // Copyright (C) 2006-2025 CEA, EDF
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, or (at your option) any later version.
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 #include "Resource.hxx"
21 
22 using namespace YACS::HMI;
23 
24 // Statics for general resources
25 // -----------------------------
26 
39 
40 // Statics for color of states
41 // ---------------------------
42 
48 
50 
55 QColor Resource::PAUSED = PAUSED_;
59 
62 QColor Resource::READY = READY_;
63 QColor Resource::TOLOAD = TOLOAD_;
64 QColor Resource::LOADED = LOADED_;
68 QColor Resource::DONE = DONE_;
72 QColor Resource::PAUSE = PAUSE_;
75 QColor Resource::FAILED = FAILED_;
76 QColor Resource::ERROR = ERROR_;
78 
79 // Statics for color of links
80 // --------------------------
81 
88 
92 
93 // Statics for color of nodes
94 // --------------------------
95 
124 
126 
127 // Statics for geometry values for nodes
128 // -------------------------------------
129 
130 int Resource::CtrlPort_Width = 24;
132 int Resource::DataPort_Width = 72;
134 
135 int Resource::Thickness = 1;
136 
138 int Resource::Space_Margin = 2;
139 
140 int Resource::Line_Space = 2;
141 int Resource::Line_Width = 2;
142 
143 int Resource::Text_DX = 3;
144 
147 int Resource::Radius = 3;
148 
150 
152 
153 // Constructor
154 // -----------
155 
157 {
158 }
#define UNKNOWN_
Definition: Resource.hxx:133
#define DESACTIVATED_
Definition: Resource.hxx:142
#define FINISHED_
Definition: Resource.hxx:131
#define RUNNODEBRUSHCOLOR
Definition: Resource.hxx:120
#define STREAMLINKDRAW_COLOR
Definition: Resource.hxx:156
#define LINK_SEPARATION_WEIGHT
Definition: Resource.hxx:162
#define ADDROWCOLS
Definition: Resource.hxx:108
#define CtrlPort_hiPen_
Definition: Resource.hxx:183
#define VALIDNODECOLOR
Definition: Resource.hxx:121
#define DataPort_hiPen_
Definition: Resource.hxx:187
#define DataStreamPort_hiBrush_
Definition: Resource.hxx:189
#define CtrlPort_brush_
Definition: Resource.hxx:180
#define FAILED_
Definition: Resource.hxx:150
#define AUTOCOMPUTELINKS
Definition: Resource.hxx:110
#define ElementaryNode_pen_
Definition: Resource.hxx:174
#define CTRLLINK_SELECT_COLOR
Definition: Resource.hxx:159
#define PAUSE_
Definition: Resource.hxx:147
#define READY_
Definition: Resource.hxx:137
#define PAUSED_
Definition: Resource.hxx:130
#define COMPONENTINSTANCENEW
Definition: Resource.hxx:104
#define CTRLLINKDRAW_COLOR
Definition: Resource.hxx:158
#define STRAIGHTLINKS
Definition: Resource.hxx:109
#define ComposedNode_pen_
Definition: Resource.hxx:170
#define ComposedNode_hiPen_
Definition: Resource.hxx:171
#define Header_hiBrush_
Definition: Resource.hxx:177
#define ACTIVATED_
Definition: Resource.hxx:141
#define STREAMLINK_SELECT_COLOR
Definition: Resource.hxx:157
#define LOADED_
Definition: Resource.hxx:139
#define DONE_
Definition: Resource.hxx:143
#define ComposedNode_hiBrush_
Definition: Resource.hxx:169
#define DOCKWIDGETPRIORITY
Definition: Resource.hxx:114
#define DataPort_brush_
Definition: Resource.hxx:184
#define ERROR_
Definition: Resource.hxx:151
#define STOPPED_
Definition: Resource.hxx:132
#define ElementaryNode_hiPen_
Definition: Resource.hxx:175
#define LINK_SELECT_COLOR
Definition: Resource.hxx:155
#define PROGRESSBARLABEL
Definition: Resource.hxx:116
#define NOTYETINITIALIZED_
Definition: Resource.hxx:126
#define TABPANELSUP
Definition: Resource.hxx:113
#define INVALID_
Definition: Resource.hxx:136
#define Header_hiPen_
Definition: Resource.hxx:179
#define LINKDRAW_COLOR
Definition: Resource.hxx:154
#define Scene_hiPen_
Definition: Resource.hxx:165
#define DEFAULT_
Definition: Resource.hxx:152
#define DISABLED_
Definition: Resource.hxx:149
#define DataPort_hiBrush_
Definition: Resource.hxx:185
#define DataStreamPort_pen_
Definition: Resource.hxx:190
#define DataStreamPort_brush_
Definition: Resource.hxx:188
#define UNDEFINED_
Definition: Resource.hxx:135
#define INTERNALERR_
Definition: Resource.hxx:148
#define LOADFAILED_
Definition: Resource.hxx:145
#define TOLOAD_
Definition: Resource.hxx:138
#define EXECFAILED_
Definition: Resource.hxx:146
#define TOACTIVATE_
Definition: Resource.hxx:140
#define PYTHONFONT
Definition: Resource.hxx:105
#define EDITEDNODEBRUSHCOLOR
Definition: Resource.hxx:118
#define PYTHONEXTERNALEDITOR
Definition: Resource.hxx:106
#define ElementaryNode_hiBrush_
Definition: Resource.hxx:173
#define Scene_hiBrush_
Definition: Resource.hxx:167
#define INITIALISED_
Definition: Resource.hxx:127
#define DataStreamPort_hiPen_
Definition: Resource.hxx:191
#define Scene_brush_
Definition: Resource.hxx:166
#define dragOver_
Definition: Resource.hxx:193
#define EMPHASIZEBRUSHCOLOR
Definition: Resource.hxx:124
#define NORMALNODEBRUSHCOLOR
Definition: Resource.hxx:119
#define SIMPLIFYLINK
Definition: Resource.hxx:111
#define LINK_PEN_DARKNESS
Definition: Resource.hxx:160
#define USERCATALOG
Definition: Resource.hxx:107
#define ElementaryNode_brush_
Definition: Resource.hxx:172
#define ENSUREVISIBLEWHENMOVED
Definition: Resource.hxx:112
#define ComposedNode_brush_
Definition: Resource.hxx:168
#define SUSPENDED_
Definition: Resource.hxx:144
#define Header_brush_
Definition: Resource.hxx:176
#define DataPort_pen_
Definition: Resource.hxx:186
#define INVALIDNODECOLOR
Definition: Resource.hxx:122
#define Header_pen_
Definition: Resource.hxx:178
#define WAITINGTASKS_
Definition: Resource.hxx:129
#define PROGRESSBARCOLOR
Definition: Resource.hxx:115
#define LINK_THICKNESS
Definition: Resource.hxx:161
#define RUNNING_
Definition: Resource.hxx:128
#define CtrlPort_pen_
Definition: Resource.hxx:182
#define CtrlPort_hiBrush_
Definition: Resource.hxx:181
#define Scene_pen_
Definition: Resource.hxx:164
static int DataPort_Width
Definition: Resource.hxx:305
static int Line_Width
Definition: Resource.hxx:314
static QColor Header_brush
Definition: Resource.hxx:283
static bool simplifyLink
Definition: Resource.hxx:212
static QColor CtrlPort_hiBrush
Definition: Resource.hxx:288
static QColor DESACTIVATED
Definition: Resource.hxx:243
static QColor ElementaryNode_hiPen
Definition: Resource.hxx:282
static int Corner_Margin
Definition: Resource.hxx:318
static QFont pythonfont
Definition: Resource.hxx:256
static int CtrlPort_Width
Definition: Resource.hxx:303
static QColor DONE
Definition: Resource.hxx:244
static QColor control_link_draw_color
Definition: Resource.hxx:263
static int dockWidgetPriority
Definition: Resource.hxx:214
static QColor Scene_brush
Definition: Resource.hxx:273
static QColor Scene_hiBrush
Definition: Resource.hxx:274
static QColor PAUSED
Definition: Resource.hxx:231
static int Border_Margin
Definition: Resource.hxx:310
static QColor ACTIVATED
Definition: Resource.hxx:242
static bool straightLinks
Definition: Resource.hxx:210
static QColor DataPort_brush
Definition: Resource.hxx:291
static bool COMPONENT_INSTANCE_NEW
Definition: Resource.hxx:206
static QColor ElementaryNode_pen
Definition: Resource.hxx:281
static QColor WAITINGTASKS
Definition: Resource.hxx:230
static bool tabPanelsUp
Definition: Resource.hxx:324
static QColor Scene_hiPen
Definition: Resource.hxx:272
static QColor NOTYETINITIALIZED
Definition: Resource.hxx:227
static QColor DISABLED
Definition: Resource.hxx:250
static int link_pen_darkness
Definition: Resource.hxx:266
static QColor FAILED
Definition: Resource.hxx:251
static QColor INVALID
Definition: Resource.hxx:237
static QColor DataStreamPort_hiBrush
Definition: Resource.hxx:296
static QColor DataPort_hiBrush
Definition: Resource.hxx:292
static bool addRowCols
Definition: Resource.hxx:209
static QColor DataStreamPort_hiPen
Definition: Resource.hxx:298
static int CtrlPort_Height
Definition: Resource.hxx:304
static QColor ComposedNode_brush
Definition: Resource.hxx:275
static QColor control_link_select_color
Definition: Resource.hxx:264
static QColor EXECFAILED
Definition: Resource.hxx:247
static QColor FINISHED
Definition: Resource.hxx:232
static QColor UNDEFINED
Definition: Resource.hxx:236
static QColor INTERNALERR
Definition: Resource.hxx:249
static QColor progressBarColor
Definition: Resource.hxx:215
static int progressBarLabel
Definition: Resource.hxx:216
static QColor emphasizeBrushColor
Definition: Resource.hxx:225
static QColor DataStreamPort_pen
Definition: Resource.hxx:297
static QColor Scene_pen
Definition: Resource.hxx:271
static QColor link_draw_color
Definition: Resource.hxx:259
static int DataPort_Height
Definition: Resource.hxx:306
static QString userCatalog
Definition: Resource.hxx:207
static QColor DataPort_pen
Definition: Resource.hxx:293
static int Text_DX
Definition: Resource.hxx:316
static QColor LOADED
Definition: Resource.hxx:240
static QColor RUNNING
Definition: Resource.hxx:229
static int Space_Margin
Definition: Resource.hxx:311
static QColor DataStreamPort_brush
Definition: Resource.hxx:295
static QColor stream_link_draw_color
Definition: Resource.hxx:260
static QColor READY
Definition: Resource.hxx:238
static int link_separation_weight
Definition: Resource.hxx:267
static QColor stream_link_select_color
Definition: Resource.hxx:262
static bool autoComputeLinks
Definition: Resource.hxx:211
static int Thickness
Definition: Resource.hxx:308
static QColor DEFAULT
Definition: Resource.hxx:253
static int Header_Height
Definition: Resource.hxx:319
static QColor Header_hiPen
Definition: Resource.hxx:286
static QColor normalNodeBrushColor
Definition: Resource.hxx:220
static QColor TOACTIVATE
Definition: Resource.hxx:241
static QColor STOPPED
Definition: Resource.hxx:233
static QColor UNKNOWN
Definition: Resource.hxx:234
static QColor editedNodeBrushColor
Definition: Resource.hxx:219
static QColor ElementaryNode_brush
Definition: Resource.hxx:279
static QColor dragOver
Definition: Resource.hxx:300
static QColor validNodeColor
Definition: Resource.hxx:222
static QColor Header_pen
Definition: Resource.hxx:285
static QColor CtrlPort_pen
Definition: Resource.hxx:289
static QColor INITIALISED
Definition: Resource.hxx:228
static QColor ComposedNode_hiPen
Definition: Resource.hxx:278
static QColor runNodeBrushColor
Definition: Resource.hxx:221
static QColor LOADFAILED
Definition: Resource.hxx:246
static QColor ElementaryNode_hiBrush
Definition: Resource.hxx:280
static QColor SUSPENDED
Definition: Resource.hxx:245
static int Line_Space
Definition: Resource.hxx:313
static double link_thickness
Definition: Resource.hxx:268
static QColor ComposedNode_hiBrush
Definition: Resource.hxx:276
static QString pythonExternalEditor
Definition: Resource.hxx:208
static QColor invalidNodeColor
Definition: Resource.hxx:223
static QColor link_select_color
Definition: Resource.hxx:261
static bool ensureVisibleWhenMoved
Definition: Resource.hxx:213
static int progressBar_Height
Definition: Resource.hxx:322
static QColor CtrlPort_hiPen
Definition: Resource.hxx:290
static QColor Header_hiBrush
Definition: Resource.hxx:284
static QColor CtrlPort_brush
Definition: Resource.hxx:287
static QColor TOLOAD
Definition: Resource.hxx:239
static QColor DataPort_hiPen
Definition: Resource.hxx:294
static QColor ComposedNode_pen
Definition: Resource.hxx:277
static QColor ERROR
Definition: Resource.hxx:252
static int Radius
Definition: Resource.hxx:320
static QColor PAUSE
Definition: Resource.hxx:248