1 // SUPERV SUPERVGUI : GUI for Supervisor component
3 // Copyright (C) 2003 OPEN CASCADE
5 // File : SUPERVGUI_CanvasControlNodePrs.h
6 // Author : Natalia KOPNOVA
9 #ifndef SUPERVGUI_CanvasControlNodePrs_H
10 #define SUPERVGUI_CanvasControlNodePrs_H
12 #include "SUPERVGUI_Def.h"
13 #include "SUPERVGUI_CanvasNodePrs.h"
16 class SUPERVGUI_CanvasControlNodePrs : public SUPERVGUI_CanvasNodePrs
19 SUPERVGUI_CanvasControlNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasNode* theNode);
20 virtual ~SUPERVGUI_CanvasControlNodePrs() {}
22 virtual void hideAll();
23 virtual void showAll();
25 virtual QRect getStatusRect() const;
26 virtual QRect getBodyRect() const;
27 virtual QRect getGateRect() const;
30 class SUPERVGUI_CanvasStartNode;
31 class SUPERVGUI_CanvasStartNodePrs : public SUPERVGUI_CanvasControlNodePrs
34 SUPERVGUI_CanvasStartNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasStartNode* theNode);
35 virtual ~SUPERVGUI_CanvasStartNodePrs() {}
37 QPointArray areaPoints() const;
39 virtual void setState(SUPERV::GraphState theState);
42 virtual void drawFrame(QPainter& thePainter);
43 virtual void drawTitleShape(QPainter& thePainter);
44 virtual void drawStatusShape(QPainter& thePainter);
47 class SUPERVGUI_CanvasEndNode;
48 class SUPERVGUI_CanvasEndNodePrs : public SUPERVGUI_CanvasControlNodePrs
51 SUPERVGUI_CanvasEndNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasEndNode* theNode);
52 virtual ~SUPERVGUI_CanvasEndNodePrs() {}
54 QPointArray areaPoints() const;
56 virtual void setState(SUPERV::GraphState theState);
59 virtual void drawFrame(QPainter& thePainter);
60 virtual void drawTitleShape(QPainter& thePainter);
61 virtual void drawStatusShape(QPainter& thePainter);
64 class SUPERVGUI_CanvasGotoNode;
65 class SUPERVGUI_CanvasGotoNodePrs : public SUPERVGUI_CanvasControlNodePrs
68 SUPERVGUI_CanvasGotoNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasGotoNode* theNode);
69 virtual ~SUPERVGUI_CanvasGotoNodePrs() {}
71 QPointArray areaPoints() const;
74 virtual void drawFrame(QPainter& thePainter);
75 virtual void drawTitleShape(QPainter& thePainter);
76 virtual void drawStatusShape(QPainter& thePainter);
80 class SUPERVGUI_CanvasMacroNode;
81 class SUPERVGUI_CanvasMacroNodePrs : public SUPERVGUI_CanvasNodePrs
84 SUPERVGUI_CanvasMacroNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasMacroNode* theNode);
85 virtual ~SUPERVGUI_CanvasMacroNodePrs() {}
87 QPointArray areaPoints() const;
90 void drawFrame(QPainter& thePainter);