1 // SUPERV SUPERVGUI : GUI for Supervisor component
3 // Copyright (C) 2003 OPEN CASCADE
5 // File : SUPERVGUI_CanvasCellNodePrs.h
9 #ifndef SUPERVGUI_CanvasCellNodePrs_H
10 #define SUPERVGUI_CanvasCellNodePrs_H
13 #include "SUPERVGUI_Def.h"
14 #include "SUPERVGUI_CanvasNodePrs.h"
15 #include "SUPERVGUI_CanvasControlNode.h"
17 class SUPERVGUI_CanvasCellNodePrs: public SUPERVGUI_CanvasNodePrs {
20 SUPERVGUI_CanvasCellNodePrs(QCanvas* theCanvas, SUPERVGUI_CanvasCellNode* theNode);
21 virtual ~SUPERVGUI_CanvasCellNodePrs();
23 virtual void moveBy(double dx, double dy);
25 virtual QRect getTitleRect() const;
26 virtual QRect getLabelRect() const;
27 virtual QRect getStatusRect() const;
29 int getTitleWidth() const;
30 int getLabelWidth() const;
31 int getStatusWidth() const;
33 virtual int width() const;
34 virtual int height() const;
36 virtual void setState(SUPERV::GraphState theState);
39 virtual void drawShape(QPainter& thePainter);
41 virtual void drawTitle(QPainter& thePainter);
42 virtual void drawLabel(QPainter& thePainter);
43 virtual void drawStatus(QPainter& thePainter);