Salome HOME
Update Help for VISU module.
[modules/visu.git] / src / VISUGUI / VisuGUI_Selection.h
1 //  VISU VISUGUI : GUI of VISU component
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 //  This library is free software; you can redistribute it and/or 
7 //  modify it under the terms of the GNU Lesser General Public 
8 //  License as published by the Free Software Foundation; either 
9 //  version 2.1 of the License. 
10 // 
11 //  This library is distributed in the hope that it will be useful, 
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 //  Lesser General Public License for more details. 
15 // 
16 //  You should have received a copy of the GNU Lesser General Public 
17 //  License along with this library; if not, write to the Free Software 
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : VisuGUI_Selection.h
25 //  Author : Laurent CORNABE & Hubert ROLLAND 
26 //  Module : VISU
27 //  $Header$
28
29 #ifndef VisuGUI_Selection_HeaderFile
30 #define VisuGUI_Selection_HeaderFile
31
32 #include <qdialog.h>
33
34 class QLabel;
35 class QWidgetStack;
36 class QVBox;
37 class QLineEdit;
38 class QTable;
39 class LightApp_SelectionMgr;
40 class SalomeApp_Application;
41
42 class VisuGUI_SelectionDlg: public QDialog {
43   Q_OBJECT
44
45 public:
46   VisuGUI_SelectionDlg (QWidget*);
47   virtual ~VisuGUI_SelectionDlg ();
48
49 protected:
50   void closeEvent (QCloseEvent* theEvent);
51
52 private slots:
53   void onSelectionChange (int theId);
54   void onSelectionEvent ();
55   void onPointIdEdit (const QString& theText);
56   void onCellIdEdit (const QString& theText);
57
58  private:
59   void clearFields ();
60
61   QLabel* myMeshName;
62   QLabel* myFieldName;
63
64   QWidgetStack* myWidgetStack;
65   QVBox* myPointsPane;
66   QWidget* myCellsPane;
67   QLabel* myXValLbl;
68   QLabel* myYValLbl;
69   QLabel* myZValLbl;
70
71   QLineEdit* myIDValLbl;
72   QLabel* myScalarValLbl;
73   QLabel* myVectorValLbl;
74
75   QTable* myListPoints;
76   QLineEdit* myCellIDValLbl;
77   QLabel* myCellScalarValLbl;
78   QLabel* myCellVectorValLbl;
79
80   QVBox* myActorsPane;
81   QLabel* myXPosLbl;
82   QLabel* myYPosLbl;
83   QLabel* myZPosLbl;
84   QLabel* myDXLbl;
85   QLabel* myDYLbl;
86   QLabel* myDZLbl;
87
88   LightApp_SelectionMgr* mySelectionMgr;
89   bool myFl;
90 };
91
92 #endif