Salome HOME
Update copyright information
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_CanvasCellNodePrs.cxx
index c7a7f65e117f1ea936c8944ab83d78999067f923..4c765b5b6c4d656ac980684af8773748c9f15d8b 100644 (file)
@@ -1,24 +1,44 @@
-//  SUPERV SUPERVGUI : GUI for Supervisor component
+//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  Copyright (C) 2003  OPEN CASCADE
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+//  SUPERV SUPERVGUI : GUI for Supervisor component
 //  File   : SUPERVGUI_CanvasCellNodePrs.cxx
 //  Author : 
 //  Module : SUPERV
-
+//
 #include "SUPERVGUI_CanvasCellNodePrs.h"
 #include "SUPERVGUI_Canvas.h"
 
+#include "SUIT_ResourceMgr.h"
+
 #define TEXT_MARGIN 5
 
 // ----------------------------------------------------------
 // Cell widget of the table on QCanvas
 // ----------------------------------------------------------
-SUPERVGUI_CanvasCellNodePrs::SUPERVGUI_CanvasCellNodePrs(QCanvas* theCanvas, SUPERVGUI_CanvasCellNode* theNode):
+SUPERVGUI_CanvasCellNodePrs::SUPERVGUI_CanvasCellNodePrs( SUIT_ResourceMgr* mgr, QCanvas* theCanvas, SUPERVGUI_CanvasCellNode* theNode):
   myTitleWidth(CELL_WIDTH_PART),
   myLabelWidth(CELL_WIDTH_PART),
   myStatusWidth(CELL_WIDTH_PART), 
-  SUPERVGUI_CanvasNodePrs(theCanvas, theNode, true)
+  SUPERVGUI_CanvasNodePrs( mgr, theCanvas, theNode, true)
 {
   myPortVisible = false;
 }
@@ -89,7 +109,7 @@ void SUPERVGUI_CanvasCellNodePrs::drawTitle(QPainter& thePainter) {
   else if (getNode()->getEngine()->IsGOTO())
     thePainter.setBrush(Qt::green.light());
   else {
-    QBrush br(MAIN_TITLE);
+    QBrush br( resMgr()->colorValue( "SUPERVGraph", "Title", DEF_MAIN_TITLE ) );
     thePainter.setBrush(br);
   }
   drawTitleShape(thePainter);
@@ -202,7 +222,7 @@ void SUPERVGUI_CanvasCellNodePrs::setState(SUPERV::GraphState theState)
 
   default:
     setStatus("No Status");
-    setStatusColor(MAIN_BACK);
+    setStatusColor( resMgr()->colorValue( "SUPERVGraph", "NodeBody", DEF_MAIN_BACK ) ); // mkr : IPAL10829
     break;
   }