]> SALOME platform Git repositories - modules/superv.git/blob - src/SUPERVGUI/SUPERVGUI_CanvasArray.h
Salome HOME
823c95b93d761e6be24ea88b710bf9fd33041f0f
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_CanvasArray.h
1 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
3 // 
4 //  This library is free software; you can redistribute it and/or 
5 //  modify it under the terms of the GNU Lesser General Public 
6 //  License as published by the Free Software Foundation; either 
7 //  version 2.1 of the License. 
8 // 
9 //  This library is distributed in the hope that it will be useful, 
10 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 //  Lesser General Public License for more details. 
13 // 
14 //  You should have received a copy of the GNU Lesser General Public 
15 //  License along with this library; if not, write to the Free Software 
16 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
17 // 
18 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 //  SUPERV SUPERVGUI : GUI for Supervisor component
21 //
22 //  File   : SUPERVGUI_CanvasArray.h
23 //  Author : 
24 //  Module : SUPERV
25
26 #ifndef SUPERVGUI_CanvasArray_H
27 #define SUPERVGUI_CanvasArray_H
28
29 #include "SUPERVGUI_Def.h"
30 #include "SUPERVGUI_CanvasControlNode.h"
31
32 #include <qpopupmenu.h>
33 #include <qcanvas.h>
34
35 class SUIT_ResourceMgr;
36 class SUPERVGUI_Main;
37
38 class SUPERVGUI_CanvasArray: public QCanvas {
39   Q_OBJECT
40     
41   public:
42     SUPERVGUI_CanvasArray(SUPERVGUI_Main* m, SUIT_ResourceMgr* );
43     virtual ~SUPERVGUI_CanvasArray();
44
45     void sync();
46     bool create();
47     void destroy();
48
49     SUPERVGUI_CanvasCellNode* getCellNode(SUPERV::CNode_ptr theNode) const;
50
51     SUPERVGUI_CanvasCellNode* addNode(SUPERV_CNode node);
52
53   private:
54     
55     SUPERVGUI_Main* myMain;
56     SUIT_ResourceMgr*  myMgr;
57
58     int             nodeX;
59     int             nodeY;
60
61 };
62
63 #endif