1 // SUPERV SUPERVGUI : GUI for Supervisor component
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : SUPERVGUI_ControlNode.h
8 // Author : Vitaly SMETANNIKOV
11 #ifndef SUPERVGUI_ControlNode_H
12 #define SUPERVGUI_ControlNode_H
14 #include "SUPERVGUI_GraphNode.h"
17 #include <qcombobox.h>
20 class SUPERVGUI_EndControlNode;
24 * Start node of Switch and Loop
26 class SUPERVGUI_StartControlNode: public SUPERVGUI_GraphNode {
30 SUPERVGUI_StartControlNode(QWidget* theParent, SUPERVGUI_Main* theMain,
31 SUPERV_CNode theNode);
32 virtual ~SUPERVGUI_StartControlNode() {};
34 virtual void hideAll();
35 virtual void showAll();
36 virtual void updateShape();
37 virtual void deletePort(SUPERVGUI_Port* thePort);
39 void setEndNode(SUPERVGUI_EndControlNode* theEndNode);
40 SUPERVGUI_EndControlNode* getEndNode();
42 virtual QPoint getOutConnectPnt();
46 virtual void rename();
47 virtual void remove();
48 virtual void addInputPort();
49 virtual void addOutputPort();
54 SUPERVGUI_EndControlNode* myEndNode;
62 * End node of Switch and Loop
64 class SUPERVGUI_EndControlNode: public SUPERVGUI_GraphNode {
68 SUPERVGUI_EndControlNode(QWidget* theParent, SUPERVGUI_Main* theMain,
69 SUPERV_CNode theNode, SUPERVGUI_StartControlNode* theStart);
70 virtual ~SUPERVGUI_EndControlNode() {};
72 virtual void hideAll();
73 virtual void showAll();
74 virtual void updateShape();
76 virtual QPoint getInConnectPnt();
84 SUPERVGUI_StartControlNode* myStartNode;
89 class SUPERVGUI_SelectInlineDlg: public QDialog {
93 SUPERVGUI_SelectInlineDlg(SUPERVGUI_Main* theMain);
94 virtual ~SUPERVGUI_SelectInlineDlg() {};
96 QString getName() { return myCombo->currentText(); }
106 class SUPERVGUI_GotoNode: public SUPERVGUI_GraphNode {
110 SUPERVGUI_GotoNode(QWidget* theParent, SUPERVGUI_Main* theMain,
111 SUPERV_CNode theNode);
112 virtual ~SUPERVGUI_GotoNode() {};
114 virtual void hideAll();
115 virtual void showAll();
116 virtual void updateShape();
118 void setLinkedNode(char* theNodeName);