1 // SUPERV SUPERVGUI : GUI for Supervisor component
3 // Copyright (C) 2003 OPEN CASCADE
5 // File : SUPERVGUI_Canvas.h
6 // Author : Natalia KOPNOVA
9 #ifndef SUPERVGUI_Canvas_H
10 #define SUPERVGUI_Canvas_H
13 #include "SUPERVGUI_Def.h"
17 class SUPERVGUI_CanvasNode;
18 class SUPERVGUI_CanvasPort;
19 class SUPERVGUI_CanvasLink;
21 class SUPERVGUI_Canvas: public QCanvas {
33 SUPERVGUI_Canvas(SUPERVGUI_Main* m);
34 virtual ~SUPERVGUI_Canvas();
38 void setAsFromStudy(bool theToStudy);
40 void addView(QCanvasView* theView);
43 void setControlView();
44 bool isControlView() { return myIsControlView; }
46 SUPERVGUI_CanvasNode* getNode(SUPERV::CNode_ptr theNode) const;
47 SUPERVGUI_CanvasPort* getPort(SUPERV::Port_ptr thePort) const;
48 SUPERVGUI_CanvasLink* getLink(SUPERV::Link_ptr theLink) const;
50 QString getPortName(SUPERV::Port_ptr thePort) const;
51 QString getLinkName(SUPERV::Link_ptr theLink) const;
54 void updateNodes(bool withPorts);
57 SUPERVGUI_Main* myMain;