+++ /dev/null
-// SUPERV SUPERVGUI : GUI for Supervisor component
-//
-// Copyright (C) 2003 CEA/DEN, EDF R&D
-//
-//
-//
-// File : SUPERVGUI_ControlNode.h
-// Author : Vitaly SMETANNIKOV
-// Module : SUPERV
-
-#ifndef SUPERVGUI_ControlNode_H
-#define SUPERVGUI_ControlNode_H
-
-#include "SUPERVGUI_GraphNode.h"
-#include <qlayout.h>
-#include <qdialog.h>
-#include <qcombobox.h>
-
-
-class SUPERVGUI_EndControlNode;
-
-
-/**
- * Start node of Switch and Loop
- */
-class SUPERVGUI_StartControlNode: public SUPERVGUI_GraphNode {
- Q_OBJECT
-
- public:
- SUPERVGUI_StartControlNode(QWidget* theParent, SUPERVGUI_Main* theMain,
- SUPERV_CNode theNode);
- virtual ~SUPERVGUI_StartControlNode() {};
-
- virtual void hideAll();
- virtual void showAll();
- virtual void updateShape();
- virtual void deletePort(SUPERVGUI_Port* thePort);
-
- void setEndNode(SUPERVGUI_EndControlNode* theEndNode);
- SUPERVGUI_EndControlNode* getEndNode();
-
- virtual QPoint getOutConnectPnt();
-
- public slots:
- void switchPorts();
- virtual void rename();
- virtual void remove();
- virtual void addInputPort();
- virtual void addOutputPort();
-
- private:
- void setShape();
-
- SUPERVGUI_EndControlNode* myEndNode;
- int myPortsItem;
-};
-
-
-
-
-/**
- * End node of Switch and Loop
- */
-class SUPERVGUI_EndControlNode: public SUPERVGUI_GraphNode {
- Q_OBJECT
-
- public:
- SUPERVGUI_EndControlNode(QWidget* theParent, SUPERVGUI_Main* theMain,
- SUPERV_CNode theNode, SUPERVGUI_StartControlNode* theStart);
- virtual ~SUPERVGUI_EndControlNode() {};
-
- virtual void hideAll();
- virtual void showAll();
- virtual void updateShape();
-
- virtual QPoint getInConnectPnt();
-
- public slots:
- void switchPorts();
-
- private:
- void setShape();
-
- SUPERVGUI_StartControlNode* myStartNode;
- int myPortsItem;
-};
-
-
-class SUPERVGUI_SelectInlineDlg: public QDialog {
- Q_OBJECT
-
- public:
- SUPERVGUI_SelectInlineDlg(SUPERVGUI_Main* theMain);
- virtual ~SUPERVGUI_SelectInlineDlg() {};
-
- QString getName() { return myCombo->currentText(); }
-
- private:
- QComboBox* myCombo;
-};
-
-
-/**
- * GOTO node
- */
-class SUPERVGUI_GotoNode: public SUPERVGUI_GraphNode {
- Q_OBJECT
-
- public:
- SUPERVGUI_GotoNode(QWidget* theParent, SUPERVGUI_Main* theMain,
- SUPERV_CNode theNode);
- virtual ~SUPERVGUI_GotoNode() {};
-
- virtual void hideAll();
- virtual void showAll();
- virtual void updateShape();
-
- void setLinkedNode(char* theNodeName);
-
- public slots:
- void linkToNode();
-
- private:
- void setShape();
-
-
-};
-
-
-#endif