1 // File : SUPERVGUI_ControlNode.h
2 // Created : 14 / 01 / 2003
3 // Author : Vitaly SMETANNIKOV
6 // Copyright : Open CASCADE
8 #ifndef SUPERVGUI_ControlNode_H
9 #define SUPERVGUI_ControlNode_H
11 #include "SUPERVGUI_GraphNode.h"
14 #include <qcombobox.h>
17 class SUPERVGUI_EndControlNode;
21 * Start node of Switch and Loop
23 class SUPERVGUI_StartControlNode: public SUPERVGUI_GraphNode {
27 SUPERVGUI_StartControlNode(QWidget* theParent, SUPERVGUI_Main* theMain,
28 SUPERV_CNode theNode);
29 virtual ~SUPERVGUI_StartControlNode() {};
31 virtual void hideAll();
32 virtual void showAll();
33 virtual void updateShape();
34 virtual void deletePort(SUPERVGUI_Port* thePort);
36 void setEndNode(SUPERVGUI_EndControlNode* theEndNode);
38 virtual QPoint getOutConnectPnt();
42 virtual void rename();
43 virtual void remove();
44 virtual void addInputPort();
45 virtual void addOutputPort();
50 SUPERVGUI_EndControlNode* myEndNode;
58 * End node of Switch and Loop
60 class SUPERVGUI_EndControlNode: public SUPERVGUI_GraphNode {
64 SUPERVGUI_EndControlNode(QWidget* theParent, SUPERVGUI_Main* theMain,
65 SUPERV_CNode theNode, SUPERVGUI_StartControlNode* theStart);
66 virtual ~SUPERVGUI_EndControlNode() {};
68 virtual void hideAll();
69 virtual void showAll();
70 virtual void updateShape();
72 virtual QPoint getInConnectPnt();
80 SUPERVGUI_StartControlNode* myStartNode;
85 class SUPERVGUI_SelectInlineDlg: public QDialog {
89 SUPERVGUI_SelectInlineDlg(SUPERVGUI_Main* theMain);
90 virtual ~SUPERVGUI_SelectInlineDlg() {};
92 QString getName() { return myCombo->currentText(); }
102 class SUPERVGUI_GotoNode: public SUPERVGUI_GraphNode {
106 SUPERVGUI_GotoNode(QWidget* theParent, SUPERVGUI_Main* theMain,
107 SUPERV_CNode theNode);
108 virtual ~SUPERVGUI_GotoNode() {};
110 virtual void hideAll();
111 virtual void showAll();
112 virtual void updateShape();
114 void setLinkedNode(char* theNodeName);