]> SALOME platform Git repositories - modules/visu.git/blob - src/VISUGUI/VisuGUI_InitMeshDlg.h
Salome HOME
bd32536d5904a7fce482e73116b323d995426f53
[modules/visu.git] / src / VISUGUI / VisuGUI_InitMeshDlg.h
1 //  File      : VisuGUI_InitMeshDlg.h
2 //  Created   : Mon May 27 10:23:17 2002
3 //  Author    : Nicolas REJNERI
4
5 //  Project   : SALOME
6 //  Module    : Visu
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #ifndef DIALOGBOX_INIT_MESH_H
11 #define DIALOGBOX_INIT_MESH_H
12
13 #include "SALOME_Selection.h"
14 #include "SALOME_TypeFilter.hxx"
15
16 // QT Includes
17 #include <qvariant.h>
18 #include <qdialog.h>
19
20 // IDL Headers
21 #include <SALOMEconfig.h>
22 #include CORBA_SERVER_HEADER(GEOM_Gen)
23 #include CORBA_SERVER_HEADER(GEOM_Shape)
24
25 class QVBoxLayout; 
26 class QHBoxLayout; 
27 class QGridLayout; 
28 class QButtonGroup;
29 class QGroupBox;
30 class QLabel;
31 class QLineEdit;
32 class QPushButton;
33 class QRadioButton;
34 class VisuGUI;
35
36
37 //=================================================================================
38 // class    : VisuGUI_InitMeshDlg
39 // purpose  :
40 //=================================================================================
41 class VisuGUI_InitMeshDlg : public QDialog
42
43     Q_OBJECT
44
45 public:
46     VisuGUI_InitMeshDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
47     ~VisuGUI_InitMeshDlg();
48
49 private:
50
51     void Init( SALOME_Selection* Sel ) ;
52     void closeEvent( QCloseEvent* e ) ;
53     void enterEvent ( QEvent * ) ;
54
55     VisuGUI*                     myVisuGUI ;
56     SALOME_Selection*             mySelection ;
57              
58     GEOM::GEOM_Shape_var                myGeomShape ;
59     int                           myConstructorId ; 
60     QLineEdit*                    myEditCurrentArgument; 
61
62     QString                       myNameMesh ;
63
64     Handle(SALOME_TypeFilter)     myGeomFilter;
65
66     QButtonGroup* GroupConstructors;
67     QRadioButton* Constructor1;
68     QGroupBox*    GroupButtons;
69     QPushButton*  buttonOk;
70     QPushButton*  buttonCancel;
71     QPushButton*  buttonApply;
72     QGroupBox*    GroupC1;
73     QLabel*       TextLabel_NameMesh ;
74     QLineEdit*    LineEdit_NameMesh ;
75     QLabel*       TextLabelC1A1;
76     QPushButton*  SelectButtonC1A1;
77     QLineEdit*    LineEditC1A1;
78
79 private slots:
80
81     void ConstructorsClicked(int constructorId);
82     void ClickOnOk();
83     void ClickOnCancel();
84     void ClickOnApply();
85     void SetEditCurrentArgument() ;
86     void SelectionIntoArgument() ;
87     void DeactivateActiveDialog() ;
88     void ActivateThisDialog() ;
89     void TextChangedInLineEdit(const QString& newText) ;
90
91 protected:
92     QGridLayout* VisuGUI_InitMeshDlgLayout;
93     QGridLayout* GroupConstructorsLayout;
94     QGridLayout* GroupButtonsLayout;
95     QGridLayout* GroupC1Layout;
96 };
97
98 #endif // DIALOGBOX_INIT_MESH_H