Salome HOME
Color for background and title are taken from resource manager
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_CanvasNodePrs.h
index d8aa906e78e927607bda0b63cfb822d94d4401c0..b59bd154e3cd8f48fd4636ad13f9208adc71a95f 100644 (file)
@@ -17,6 +17,7 @@ using namespace std;
 
 class SUPERVGUI_CanvasNodePrs;
 class SUPERVGUI_CanvasPortPrs;
+class SUIT_ResourceMgr;
 class SUPERVGUI_CanvasHookPrs : public QCanvasEllipse
 {
   public:
@@ -50,7 +51,7 @@ class SUPERVGUI_CanvasNode;
 class SUPERVGUI_CanvasNodePrs: public QCanvasPolygonalItem {
 
   public:
-    SUPERVGUI_CanvasNodePrs(QCanvas* theCanvas, SUPERVGUI_CanvasNode* theNode, bool theCellPrs=false);
+    SUPERVGUI_CanvasNodePrs( SUIT_ResourceMgr*, QCanvas*, SUPERVGUI_CanvasNode*, bool theCellPrs=false);
     virtual ~SUPERVGUI_CanvasNodePrs();
 
     SUPERVGUI_CanvasNode* getNode() const { return myNode; }
@@ -122,10 +123,12 @@ class SUPERVGUI_CanvasNodePrs: public QCanvasPolygonalItem {
     virtual void drawTitleShape(QPainter& thePainter);
     virtual void drawStatusShape(QPainter& thePainter);
 
+    SUIT_ResourceMgr* resMgr() const { return myMgr; }
     bool myPortVisible;
 
   private:
     SUPERVGUI_CanvasNode* myNode;
+    SUIT_ResourceMgr* myMgr;
 
     int myWidth;