1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // SMESH SMESHGUI : GUI for SMESH component
21 // File : SMESHGUI_WhatIsDlg.h
22 // Author : Vladimir TURIN, Open CASCADE S.A.S.
24 #ifndef SMESHGUI_WHATISDLG_H
25 #define SMESHGUI_WHATISDLG_H
31 #include <SALOMEconfig.h>
32 #include CORBA_SERVER_HEADER(SMESH_Mesh)
43 class LightApp_SelectionMgr;
44 class SMESH_LogicalFilter;
46 //=================================================================================
47 // class : SMESHGUI_WhatIsDlg
49 //=================================================================================
50 class SMESHGUI_WhatIsDlg : public QDialog
55 SMESHGUI_WhatIsDlg( SMESHGUI* );
56 ~SMESHGUI_WhatIsDlg();
59 void Init( bool = true );
60 void closeEvent( QCloseEvent* );
61 void enterEvent( QEvent* ); /* mouse enter the QWidget */
62 void hideEvent( QHideEvent* ); /* ESC key */
63 void keyPressEvent( QKeyEvent* );
65 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
66 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
68 SVTK_Selector* mySelector;
71 SMESH::SMESH_Mesh_var myMesh;
73 SMESH_LogicalFilter* myMeshOrSubMeshOrGroupFilter;
75 QGroupBox* GroupSelections;
76 QRadioButton* RadioButtonNodes;
77 QRadioButton* RadioButtonElements;
78 QGroupBox* GroupButtons;
79 QPushButton* buttonOk;
80 QPushButton* buttonHelp;
81 QGroupBox* GroupArguments;
83 QLabel* TextLabelElements;
84 QLineEdit* LineEditElements;
90 QString myHelpFileName;
93 void SelectionsClicked( int );
97 void SelectionIntoArgument();
98 void DeactivateActiveDialog();
99 void ActivateThisDialog();
100 void onTextChange( const QString& );
103 #endif // SMESHGUI_WHATISDLG_H