1 // SUPERV SUPERVGUI : GUI for Supervisor component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : SUPERVGUI_CanvasControlNodePrs.h
23 // Author : Natalia KOPNOVA
26 #ifndef SUPERVGUI_CanvasControlNodePrs_H
27 #define SUPERVGUI_CanvasControlNodePrs_H
29 #include "SUPERVGUI_Def.h"
30 #include "SUPERVGUI_CanvasNodePrs.h"
33 class SUPERVGUI_CanvasControlNodePrs : public SUPERVGUI_CanvasNodePrs
36 SUPERVGUI_CanvasControlNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasNode* theNode);
37 virtual ~SUPERVGUI_CanvasControlNodePrs() {}
39 virtual void hideAll();
40 virtual void showAll();
42 virtual QRect getStatusRect() const;
43 virtual QRect getBodyRect() const;
44 virtual QRect getGateRect() const;
47 class SUPERVGUI_CanvasStartNode;
48 class SUPERVGUI_CanvasStartNodePrs : public SUPERVGUI_CanvasControlNodePrs
51 SUPERVGUI_CanvasStartNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasStartNode* theNode);
52 virtual ~SUPERVGUI_CanvasStartNodePrs() {}
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_CanvasEndNode;
65 class SUPERVGUI_CanvasEndNodePrs : public SUPERVGUI_CanvasControlNodePrs
68 SUPERVGUI_CanvasEndNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasEndNode* theNode);
69 virtual ~SUPERVGUI_CanvasEndNodePrs() {}
71 QPointArray areaPoints() const;
73 virtual void setState(SUPERV::GraphState theState);
76 virtual void drawFrame(QPainter& thePainter);
77 virtual void drawTitleShape(QPainter& thePainter);
78 virtual void drawStatusShape(QPainter& thePainter);
81 class SUPERVGUI_CanvasGotoNode;
82 class SUPERVGUI_CanvasGotoNodePrs : public SUPERVGUI_CanvasControlNodePrs
85 SUPERVGUI_CanvasGotoNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasGotoNode* theNode);
86 virtual ~SUPERVGUI_CanvasGotoNodePrs() {}
88 QPointArray areaPoints() const;
91 virtual void drawFrame(QPainter& thePainter);
92 virtual void drawTitleShape(QPainter& thePainter);
93 virtual void drawStatusShape(QPainter& thePainter);
97 class SUPERVGUI_CanvasMacroNode;
98 class SUPERVGUI_CanvasMacroNodePrs : public SUPERVGUI_CanvasNodePrs
101 SUPERVGUI_CanvasMacroNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasMacroNode* theNode);
102 virtual ~SUPERVGUI_CanvasMacroNodePrs() {}
104 QPointArray areaPoints() const;
107 void drawFrame(QPainter& thePainter);