1 // SUPERV SUPERVGUI : GUI for Supervisor component
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : SUPERVGUI_GraphNode.h
8 // Author : Vitaly SMETANNIKOV
11 #ifndef SUPERVGUI_GraphNode_H
12 #define SUPERVGUI_GraphNode_H
14 #include "SUPERVGUI_Node.h"
18 class SUPERVGUI_GraphNode: public SUPERVGUI_Node {
22 SUPERVGUI_GraphNode(QWidget* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode);
23 virtual ~SUPERVGUI_GraphNode();
25 virtual void hideAll() {};
26 virtual void showAll() {};
28 virtual void deleteLinks();
31 virtual void updateLinksPrs(bool toCheckExisting = false);
32 virtual void setNodeName(QString aName);
34 virtual void deletePort(SUPERVGUI_Port* thePort);
36 virtual QPoint getInConnectPnt();
37 virtual QPoint getOutConnectPnt();
39 virtual void updateShape() {};
40 virtual void updatePorts();
49 void mouseTitlePress(QMouseEvent* e);
50 void mouseTitleMove(QMouseEvent* e);
51 void mouseTitleRelease(QMouseEvent* e);
53 virtual void addInputPort();
54 virtual void addOutputPort();
56 // virtual void addInputPortES();
57 // virtual void addOutputPortES();
60 SUPERVGUI_Label* myTitle;
64 QGridLayout* myPortLayout;
67 QGridLayout* myGatesLayout;
70 QGridLayout* myStreamLayout;