Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_CanvasControlNodePrs.h
1 //  SUPERV SUPERVGUI : GUI for Supervisor component
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
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. 
10 // 
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. 
15 // 
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 
19 // 
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  File   : SUPERVGUI_CanvasControlNodePrs.h
23 //  Author : Natalia KOPNOVA
24 //  Module : SUPERV
25
26 #ifndef SUPERVGUI_CanvasControlNodePrs_H
27 #define SUPERVGUI_CanvasControlNodePrs_H
28
29 #include "SUPERVGUI_Def.h"
30 #include "SUPERVGUI_CanvasNodePrs.h"
31
32
33 class SUPERVGUI_CanvasControlNodePrs : public SUPERVGUI_CanvasNodePrs 
34 {
35   public:
36     SUPERVGUI_CanvasControlNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasNode* theNode);
37     virtual ~SUPERVGUI_CanvasControlNodePrs() {}
38
39     virtual void hideAll();
40     virtual void showAll();
41
42     virtual QRect getStatusRect() const;
43     virtual QRect getBodyRect() const;
44     virtual QRect getGateRect() const;
45 };
46
47 class SUPERVGUI_CanvasStartNode;
48 class SUPERVGUI_CanvasStartNodePrs : public SUPERVGUI_CanvasControlNodePrs 
49 {
50   public:
51     SUPERVGUI_CanvasStartNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasStartNode* theNode);
52     virtual ~SUPERVGUI_CanvasStartNodePrs() {}
53     
54     QPointArray areaPoints() const;
55
56     virtual void setState(SUPERV::GraphState theState);
57
58   protected:
59     virtual void drawFrame(QPainter& thePainter);
60     virtual void drawTitleShape(QPainter& thePainter);
61     virtual void drawStatusShape(QPainter& thePainter);
62 };
63
64 class SUPERVGUI_CanvasEndNode;
65 class SUPERVGUI_CanvasEndNodePrs : public SUPERVGUI_CanvasControlNodePrs 
66 {
67   public:
68     SUPERVGUI_CanvasEndNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasEndNode* theNode);
69     virtual ~SUPERVGUI_CanvasEndNodePrs() {}
70     
71     QPointArray areaPoints() const;
72
73     virtual void setState(SUPERV::GraphState theState);
74
75   protected:
76     virtual void drawFrame(QPainter& thePainter);
77     virtual void drawTitleShape(QPainter& thePainter);
78     virtual void drawStatusShape(QPainter& thePainter);
79 };
80
81 class SUPERVGUI_CanvasGotoNode;
82 class SUPERVGUI_CanvasGotoNodePrs : public SUPERVGUI_CanvasControlNodePrs 
83 {
84   public:
85     SUPERVGUI_CanvasGotoNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasGotoNode* theNode);
86     virtual ~SUPERVGUI_CanvasGotoNodePrs() {}
87     
88     QPointArray areaPoints() const;
89
90   protected:
91     virtual void drawFrame(QPainter& thePainter);
92     virtual void drawTitleShape(QPainter& thePainter);
93     virtual void drawStatusShape(QPainter& thePainter);
94 };
95
96
97 class SUPERVGUI_CanvasMacroNode;
98 class SUPERVGUI_CanvasMacroNodePrs : public SUPERVGUI_CanvasNodePrs 
99 {
100   public:
101     SUPERVGUI_CanvasMacroNodePrs( SUIT_ResourceMgr*, QCanvas* theCanvas, SUPERVGUI_CanvasMacroNode* theNode);
102     virtual ~SUPERVGUI_CanvasMacroNodePrs() {}
103     
104     QPointArray areaPoints() const;
105
106   protected:
107     void drawFrame(QPainter& thePainter);
108
109 };
110
111 #endif