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_MergeNodesDlg.h
25 // Author : Michael ZORIN
29 #ifndef DIALOGBOX_MERGENODES_H
30 #define DIALOGBOX_MERGENODES_H
32 #include "LightApp_SelectionMgr.h"
33 //#include "SMESH_TypeFilter.hxx"
34 #include "SUIT_SelectionFilter.h"
51 class SMESHGUI_SpinBox;
53 class SVTK_ViewWindow;
58 #include <SALOMEconfig.h>
59 #include CORBA_SERVER_HEADER(SMESH_Mesh)
62 //=================================================================================
63 // class : SMESHGUI_MergeNodesDlg
65 //=================================================================================
66 class SMESHGUI_MergeNodesDlg : public QDialog
71 SMESHGUI_MergeNodesDlg( SMESHGUI*,
75 ~SMESHGUI_MergeNodesDlg();
79 void closeEvent( QCloseEvent* e );
80 void enterEvent ( QEvent * ); /* mouse enter the QWidget */
81 void hideEvent ( QHideEvent * ); /* ESC key */
82 void onEditNodesGroup();
84 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
85 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
86 SVTK_Selector* mySelector;
88 QWidget* myEditCurrentArgument;
90 SMESH::SMESH_Mesh_var myMesh;
92 //Handle(SMESH_TypeFilter) myMeshOrSubMeshFilter;
93 SUIT_SelectionFilter* myMeshOrSubMeshFilter;
95 QButtonGroup* GroupConstructors;
96 QRadioButton* RadioButton1;
97 QGroupBox* GroupButtons;
98 QPushButton* buttonOk;
99 QPushButton* buttonCancel;
100 QPushButton* buttonApply;
101 QPushButton* buttonHelp;
102 QGroupBox* GroupMesh;
103 QGroupBox* GroupCoincident;
104 QGroupBox* GroupEdit;
105 QLabel* TextLabelName;
106 QLabel* TextLabelTolerance;
107 QLineEdit* LineEditMesh;
108 QPushButton* SelectMeshButton;
109 QPushButton* DetectButton;
110 QPushButton* AddButton;
111 QPushButton* RemoveButton;
112 QCheckBox* SelectAllCB;
113 QListView* ListCoincident;
115 SMESHGUI_SpinBox* SpinBoxTolerance;
117 QString myHelpFileName;
122 void ClickOnCancel();
125 void updateControls();
127 void onSelectNodesGroup();
128 void onSelectAll(bool isToggled);
129 void onSelectNodesFromGroup();
132 void SetEditCurrentArgument();
133 void SelectionIntoArgument() ;
134 void DeactivateActiveDialog() ;
135 void ActivateThisDialog() ;
138 QGridLayout* SMESHGUI_MergeNodesDlgLayout;
139 QGridLayout* GroupConstructorsLayout;
140 QGridLayout* GroupButtonsLayout;
141 QGridLayout* GroupMeshLayout;
142 QGridLayout* GroupCoincidentLayout;
143 QGridLayout* GroupEditLayout;
146 #endif // DIALOGBOX_MERGENODES_H