Salome HOME
Bug fix: don't set "Loading" state for MacroNodes in InitialState() function (called...
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_CanvasNode.h
index 9cf391c4bbdf662b56165edeff2a96730b20014c..b1f629d2e0ddd26c74de5b6b39c683477ffd18c6 100644 (file)
 using namespace std;
 #include "SUPERVGUI_Def.h"
 #include "SUPERVGUI_BrowseNodeDlg.h"
+#include <qstringlist.h>
 
 class SUPERVGUI_Main;
 class SUPERVGUI_CanvasNodePrs;
 
 class SUPERVGUI_CanvasNode : public QObject {
+  friend class SUPERVGUI_ManagePortsDlg;
+
   Q_OBJECT
 
   public:
-    SUPERVGUI_CanvasNode(QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode);
+    SUPERVGUI_CanvasNode(QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode, bool theIsCell=false);
     virtual ~SUPERVGUI_CanvasNode();
 
     // done to ignore port update when node is removed
@@ -61,6 +64,7 @@ class SUPERVGUI_CanvasNode : public QObject {
 
     SUPERV_Port createInPort();
     SUPERV_Port createOutPort();
+    QStringList getPortsNamesIN(SUPERV_INode theNode, bool theInputPorts);
 
     virtual QPopupMenu* getPopupMenu(QWidget* theParent);
 
@@ -70,8 +74,9 @@ class SUPERVGUI_CanvasNode : public QObject {
     void suspendResume();
     void kill();
     void stopRestart();
-    void configure();
-    void showPython();
+
+    //asv: 13.12.04: ??? --> void configure();
+    //asv: 13.12.04: ??? --> void showPython();
 
     virtual void rename();
     virtual void remove();
@@ -89,6 +94,7 @@ class SUPERVGUI_CanvasNode : public QObject {
     virtual void addInputPort();
     virtual void addOutputPort();
     virtual void editFunction();
+    void managePorts();
 
   protected:
     virtual SUPERVGUI_CanvasNodePrs* createPrs() const;
@@ -99,6 +105,7 @@ class SUPERVGUI_CanvasNode : public QObject {
     SUPERVGUI_BrowseNodeDlg* myBrowseDlg;
 
     bool isIgnore;
+    int  myDeleteItem;
 
   protected slots:
     virtual void onDestroyed(QObject*);