Salome HOME
Color for background and title are taken from resource manager
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_CanvasNode.h
index 445c9a2fda06bf1314c75eda8829cf15aa2293e9..0be086ddd806ba398cf1cf975615d046ce000ca5 100644 (file)
@@ -16,6 +16,7 @@ using namespace std;
 
 class SUPERVGUI_Main;
 class SUPERVGUI_CanvasNodePrs;
+class SUIT_ResourceMgr;
 
 class SUPERVGUI_CanvasNode : public QObject {
   friend class SUPERVGUI_ManagePortsDlg;
@@ -24,7 +25,7 @@ class SUPERVGUI_CanvasNode : public QObject {
   Q_OBJECT
 
   public:
-    SUPERVGUI_CanvasNode(QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode, bool theIsCell=false);
+    SUPERVGUI_CanvasNode( SUIT_ResourceMgr*, QObject*, SUPERVGUI_Main*, SUPERV_CNode theNode, bool theIsCell=false);
     virtual ~SUPERVGUI_CanvasNode();
 
     // done to ignore port update when node is removed
@@ -93,8 +94,9 @@ class SUPERVGUI_CanvasNode : public QObject {
     void setTrace(bool b);
     void setVerbose(bool b);
 
-    virtual void addInputPort();
-    virtual void addOutputPort();
+    // mkr : IPAL9815 : commented the following code
+    /*virtual void addInputPort();
+      virtual void addOutputPort();*/
     virtual void editFunction();
     virtual void pastePort();
     void managePorts();
@@ -103,6 +105,7 @@ class SUPERVGUI_CanvasNode : public QObject {
   protected:
     // redefined by most of CanvasNode successors
     virtual SUPERVGUI_CanvasNodePrs* createPrs() const;
+    SUIT_ResourceMgr* resMgr() const { return myMgr; }
     
     void createPort(SUPERV::Port_ptr thePort);
     void createStreamPort(SUPERV::StreamPort_ptr thePort);
@@ -121,6 +124,7 @@ class SUPERVGUI_CanvasNode : public QObject {
 
     QString          myLabelText;
     SUPERVGUI_CanvasNodePrs* myPrs;
+    SUIT_ResourceMgr* myMgr;
 
     bool myDestroyed;