1 // SMESH SMESHGUI : GUI for SMESH component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SMESHGUI_RemoveElementsDlg.h
25 // Author : Nicolas REJNERI
29 #ifndef DIALOGBOX_REMOVE_ELEMENTS_H
30 #define DIALOGBOX_REMOVE_ELEMENTS_H
32 #include "LightApp_SelectionMgr.h"
51 class SVTK_ViewWindow;
54 #include <SALOMEconfig.h>
55 #include CORBA_SERVER_HEADER(SMESH_Mesh)
57 //=================================================================================
58 // class : SMESHGUI_RemoveElementsDlg
60 //=================================================================================
61 class SMESHGUI_RemoveElementsDlg : public QDialog
66 SMESHGUI_RemoveElementsDlg(SMESHGUI* theModule,
70 ~SMESHGUI_RemoveElementsDlg();
75 void closeEvent( QCloseEvent* e ) ;
76 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
77 void hideEvent ( QHideEvent * ); /* ESC key */
79 LightApp_SelectionMgr* mySelectionMgr;
80 SVTK_Selector* mySelector;
83 int myNbOkElements; /* to check when arguments is defined */
84 int myConstructorId; /* Current constructor id = radio button id */
85 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
88 SMESH::SMESH_Mesh_var myMesh;
91 QButtonGroup* GroupConstructors;
92 QRadioButton* Constructor1;
93 QGroupBox* GroupButtons;
94 QPushButton* buttonOk;
95 QPushButton* buttonCancel;
96 QPushButton* buttonApply;
97 QPushButton* buttonHelp;
99 QLabel* TextLabelC1A1;
100 QPushButton* SelectButtonC1A1;
101 QLineEdit* LineEditC1A1;
103 QString myHelpFileName;
107 void ConstructorsClicked(int constructorId);
109 void ClickOnCancel();
112 void SetEditCurrentArgument() ;
113 void SelectionIntoArgument() ;
114 void DeactivateActiveDialog() ;
115 void ActivateThisDialog() ;
116 void onTextChange(const QString&);
119 QGridLayout* SMESHGUI_RemoveElementsDlgLayout;
120 QGridLayout* GroupConstructorsLayout;
121 QGridLayout* GroupButtonsLayout;
122 QGridLayout* GroupC1Layout;
125 #endif // DIALOGBOX_REMOVE_ELEMENTS_H