X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUPERVGUI%2FSUPERVGUI_CanvasNode.h;h=0be086ddd806ba398cf1cf975615d046ce000ca5;hb=e6a75ddee66ff8c08097932cf0960b7764bc5d63;hp=12b6b2bb6fb12db204426bea6c3fc7d68cd31598;hpb=7d3931c54614b3d73351551e662ccbd3be07a0d8;p=modules%2Fsuperv.git diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasNode.h b/src/SUPERVGUI/SUPERVGUI_CanvasNode.h index 12b6b2b..0be086d 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasNode.h +++ b/src/SUPERVGUI/SUPERVGUI_CanvasNode.h @@ -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); @@ -111,7 +114,6 @@ class SUPERVGUI_CanvasNode : public QObject { SUPERVGUI_BrowseNodeDlg* myBrowseDlg; bool isIgnore; - int myDeleteItem; protected slots: virtual void onDestroyed(QObject*); @@ -122,6 +124,7 @@ class SUPERVGUI_CanvasNode : public QObject { QString myLabelText; SUPERVGUI_CanvasNodePrs* myPrs; + SUIT_ResourceMgr* myMgr; bool myDestroyed;