Salome HOME
NRI : Merge from V1_2.
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_ComputeNode.h
1 //  SUPERV SUPERVGUI : GUI for Supervisor component
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : SUPERVGUI_ComputeNode.h
8 //  Author : Vitaly SMETANNIKOV
9 //  Module : SUPERV
10
11 #ifndef SUPERVGUI_ComputeNode_H
12 #define SUPERVGUI_ComputeNode_H
13
14 #include "SUPERVGUI_GraphNode.h"
15
16
17 class SUPERVGUI_ComputeNode: public SUPERVGUI_GraphNode {
18   Q_OBJECT
19     
20  public:
21   SUPERVGUI_ComputeNode(QWidget* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode);
22   virtual ~SUPERVGUI_ComputeNode();
23  
24   void sync();
25   void hideAll();
26   void showAll();
27   SUPERVGUI_Label* getCommLabel() { return myComment; }
28   SUPERVGUI_Label* getTitleLabel() { return myTitle; }
29   virtual void updateShape();
30
31  public slots:
32   void switchService();
33   void switchPorts();
34   virtual void rename();
35
36
37  private:
38   QPopupMenu* myShowPopup;
39   int         myServiceItem;
40   int         myPortsItem;
41
42   //int         myPIcount;
43   //int         myPOcount;
44
45   SUPERVGUI_Label* myComment;
46   QVBox*           myServiceBox;
47   //QFrame*          myPortsBox;
48   //QGridLayout*     myPortLayout;
49 };
50
51 #endif