1 // Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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, or (at your option) any later version.
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.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // SMESH SMESHGUI : GUI for SMESH component
24 // File : SMESHGUI_BuildCompoundDlg.h
25 // Author : Alexander KOVALEV, Open CASCADE S.A.S.
27 #ifndef SMESHGUI_BUILDCOMPOUNDDLG_H
28 #define SMESHGUI_BUILDCOMPOUNDDLG_H
31 #include "SMESH_SMESHGUI.hxx"
37 #include <SALOMEconfig.h>
38 #include CORBA_SERVER_HEADER(SMESH_Gen)
39 #include CORBA_SERVER_HEADER(SMESH_Mesh)
41 class LightApp_SelectionMgr;
51 class SMESHGUI_SpinBox;
52 class SUIT_SelectionFilter;
54 //=================================================================================
55 // class : SMESHGUI_BuildCompoundDlg
57 //=================================================================================
58 class SMESHGUI_EXPORT SMESHGUI_BuildCompoundDlg : public QDialog
64 SMESHGUI_BuildCompoundDlg( SMESHGUI* );
65 ~SMESHGUI_BuildCompoundDlg();
68 static QString GetDefaultName( const QString& );
72 void enterEvent( QEvent* ); /* mouse enter the QWidget */
73 void keyPressEvent( QKeyEvent* );
77 void setIsApplyAndClose( const bool theFlag );
78 bool isApplyAndClose() const;
81 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
82 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
84 SMESH::SMESH_Mesh_var myMeshToAppendTo;
85 SMESH::ListOfIDSources_var myMeshArray;
86 SUIT_SelectionFilter* myMeshFilter;
87 SUIT_SelectionFilter* myAppendToFilter;
90 QGroupBox* GroupConstructors;
91 QRadioButton* Constructor1;
93 QGroupBox* GroupButtons;
94 QPushButton* buttonOk;
95 QPushButton* buttonCancel;
96 QPushButton* buttonApply;
97 QPushButton* buttonHelp;
99 QGroupBox* GroupResult;
100 QButtonGroup* ResultButtonGroup;
101 QLineEdit* LineEditNewName;
102 QPushButton* SelectButtonAppendTo;
103 QLineEdit* LineEditAppendTo;
105 QGroupBox* GroupArgs;
106 QLabel* TextLabelMeshes;
107 QPushButton* SelectButton;
108 QLineEdit* LineEditMeshes;
109 QLabel* TextLabelUnion;
110 QComboBox* ComboBoxUnion;
111 QCheckBox* CheckBoxCommon;
112 QCheckBox* CheckBoxMerge;
113 QLabel* TextLabelTol;
114 SMESHGUI_SpinBox* SpinBoxTol;
116 QLineEdit* CurrentLineEdit;
118 QString myHelpFileName;
120 bool myIsApplyAndClose;
123 virtual void reject();
129 void SelectionIntoArgument();
130 void DeactivateActiveDialog();
131 void ActivateThisDialog();
132 void onSelectMerge( bool );
133 void onResultTypeChange( int );
134 void onSelectionButton();
137 #endif // SMESHGUI_BUILDCOMPOUNDDLG_H