]> SALOME platform Git repositories - modules/superv.git/blob - src/SUPERVGUI/SUPERVGUI_Array.h
Salome HOME
e7f181992102d86abf52b6e3a8d347d61380b9da
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_Array.h
1 //  File      : SUPERVGUI_Array.h
2 //  Created   : 08 / 02 / 2002
3 //  Author    : Francis KLOSS
4 //  Project   : SALOME
5 //  Module    : SUPERVGUI
6 //  Copyright : CEA
7
8 #ifndef SUPERVGUI_Array_H
9 #define SUPERVGUI_Array_H
10
11 using namespace std;
12 #include "SUPERVGUI_Def.h"
13 #include <qpopupmenu.h>
14 #include "SUPERVGUI_Node.h"
15 #include "SUPERVGUI_View.h"
16 #include "SUPERVGUI_Label.h"
17
18 class SUPERVGUI_Main;
19
20
21 class SUPERVGUI_Array: public SUPERVGUI_View {
22   Q_OBJECT
23
24   public:
25     SUPERVGUI_Array(SUPERVGUI_Main* m);
26     virtual ~SUPERVGUI_Array();
27
28     void sync();
29     bool create();
30     void destroy();
31
32     SUPERVGUI_Node* addNode(SUPERV_CNode node);
33
34   private:
35     void contentsMousePressEvent(QMouseEvent* e);
36
37
38     int             nodeX;
39     int             nodeY;
40 };
41
42
43
44
45
46
47
48 class SUPERVGUI_Cell: public SUPERVGUI_Node {
49   Q_OBJECT
50
51   public:
52     SUPERVGUI_Cell(QWidget* parent, SUPERVGUI_Main* m, SUPERV_CNode n);
53     virtual ~SUPERVGUI_Cell();
54
55     void sync();
56     void hideAll() {};
57     void showAll() {};
58
59     void updateStudy();
60
61   public slots:
62     virtual void rename();
63
64   private:
65     SUPERVGUI_Label* myTitle;
66     SUPERVGUI_Node*  guiNode;
67     SUPERVGUI_Label* component;
68     //SUPERVGUI_Label* service;
69
70     int         myShowItem;
71 };
72
73 #endif