Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_NodesDlg.h
1 //  File      : SMESHGUI_NodesDlg.h
2 //  Created   : Tue May 14 21:36:44 2002
3 //  Author    : Nicolas REJNERI
4
5 //  Project   : SALOME
6 //  Module    : SMESH
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #ifndef DIALOGBOX_NODES_H
11 #define DIALOGBOX_NODES_H
12
13 #include "SALOME_Selection.h"
14
15 #include <qvariant.h>
16 #include <qdialog.h>
17
18 class QVBoxLayout; 
19 class QHBoxLayout; 
20 class QGridLayout; 
21 class QButtonGroup;
22 class QFrame;
23 class QGroupBox;
24 class QLabel;
25 class QLineEdit;
26 class QPushButton;
27 class QRadioButton;
28 class SMESHGUI;
29 class SMESHGUI_SpinBox;
30
31 // IDL Headers
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(SMESH_Mesh)
34
35 //=================================================================================
36 // class    : SMESHGUI_NodesDlg
37 // purpose  :
38 //=================================================================================
39 class SMESHGUI_NodesDlg : public QDialog
40
41     Q_OBJECT
42
43 public:
44     SMESHGUI_NodesDlg( QWidget* parent = 0, const char* name = 0,
45                        SALOME_Selection* Sel = 0,
46                        bool modal = FALSE,
47                        WFlags fl = 0 );
48
49     ~SMESHGUI_NodesDlg();
50     
51 private :
52
53     SALOME_Selection* mySelection ;
54     SMESHGUI*         myMeshGUI ;
55
56     SMESH::SMESH_Mesh_var myMesh;
57
58     void Init(SALOME_Selection* Sel) ;
59     void enterEvent(QEvent* e);
60     void closeEvent(QCloseEvent* e) ;
61
62     QButtonGroup* GroupConstructors;
63     QRadioButton* Constructor1;
64     QGroupBox* GroupCoordinates;
65     SMESHGUI_SpinBox* SpinBox_X;
66     SMESHGUI_SpinBox* SpinBox_Y;
67     SMESHGUI_SpinBox* SpinBox_Z;
68
69     QLabel* TextLabel_X;
70     QLabel* TextLabel_Y;
71     QLabel* TextLabel_Z;
72
73     QGroupBox* GroupButtons;
74     QPushButton* buttonApply;
75     QPushButton* buttonOk;
76     QPushButton* buttonCancel;
77
78 private slots:
79
80     void ClickOnOk();
81     void ClickOnCancel();
82     void ClickOnApply();
83     void DeactivateActiveDialog() ;
84     void ActivateThisDialog() ;
85     void SelectionIntoArgument() ;
86     void ValueChangedInSpinBox( double newValue ) ;
87
88 protected:
89     QGridLayout* SMESHGUI_NodesDlgLayout;    
90     QGridLayout* GroupConstructorsLayout;
91     QGridLayout* GroupCoordinatesLayout;
92     QGridLayout* GroupButtonsLayout;
93 };
94
95 #endif // DIALOGBOX_NODES_H
96