Version: 9.16.0
SMESHGUI_BuildCompoundDlg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
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.
10//
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.
15//
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
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23// SMESH SMESHGUI : GUI for SMESH component
24// File : SMESHGUI_BuildCompoundDlg.h
25// Author : Alexander KOVALEV, Open CASCADE S.A.S.
26//
27#ifndef SMESHGUI_BUILDCOMPOUNDDLG_H
28#define SMESHGUI_BUILDCOMPOUNDDLG_H
29
30// SMESH includes
31#include "SMESH_SMESHGUI.hxx"
32
33// Qt includes
34#include <QDialog>
35
36// IDL includes
37#include <SALOMEconfig.h>
38#include CORBA_SERVER_HEADER(SMESH_Gen)
39#include CORBA_SERVER_HEADER(SMESH_Mesh)
40
41class LightApp_SelectionMgr;
42class QButtonGroup;
43class QCheckBox;
44class QComboBox;
45class QGroupBox;
46class QLabel;
47class QLineEdit;
48class QPushButton;
49class QRadioButton;
50class SMESHGUI;
53
54//=================================================================================
55// class : SMESHGUI_BuildCompoundDlg
56// purpose :
57//=================================================================================
59{
60 Q_OBJECT
61
62public:
63
66
67public:
68 static QString GetDefaultName( const QString& );
69
70private:
71 void Init();
72 void enterEvent( QEvent* ); /* mouse enter the QWidget */
73 void keyPressEvent( QKeyEvent* );
74
75 bool isValid();
76
77 void setIsApplyAndClose( const bool theFlag );
78 bool isApplyAndClose() const;
79
80private:
81 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
82 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
83
84 SMESH::SMESH_Mesh_var myMeshToAppendTo;
85 SMESH::ListOfIDSources_var myMeshArray;
88
89 // Widgets
91 QRadioButton* Constructor1;
92
94 QPushButton* buttonOk;
95 QPushButton* buttonCancel;
96 QPushButton* buttonApply;
97 QPushButton* buttonHelp;
98
100 QButtonGroup* ResultButtonGroup;
101 QLineEdit* LineEditNewName;
104
107 QPushButton* SelectButton;
108 QLineEdit* LineEditMeshes;
111 QCheckBox* CheckBoxCommon;
112 QCheckBox* CheckBoxMerge;
115
116 QLineEdit* CurrentLineEdit;
117
119
121
122protected slots:
123 virtual void reject();
124
125private slots:
126 void ClickOnOk();
127 bool ClickOnApply();
128 void ClickOnHelp();
129 void SelectionIntoArgument();
130 void DeactivateActiveDialog();
131 void ActivateThisDialog();
132 void onSelectMerge( bool );
133 void onResultTypeChange( int );
134 void onSelectionButton();
135};
136
137#endif // SMESHGUI_BUILDCOMPOUNDDLG_H
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Definition: SMESHGUI_BuildCompoundDlg.h:59
QString myHelpFileName
Definition: SMESHGUI_BuildCompoundDlg.h:118
SUIT_SelectionFilter * myMeshFilter
Definition: SMESHGUI_BuildCompoundDlg.h:86
QLabel * TextLabelMeshes
Definition: SMESHGUI_BuildCompoundDlg.h:106
QGroupBox * GroupButtons
Definition: SMESHGUI_BuildCompoundDlg.h:93
QPushButton * buttonCancel
Definition: SMESHGUI_BuildCompoundDlg.h:95
QCheckBox * CheckBoxCommon
Definition: SMESHGUI_BuildCompoundDlg.h:111
QPushButton * SelectButton
Definition: SMESHGUI_BuildCompoundDlg.h:107
QLineEdit * LineEditMeshes
Definition: SMESHGUI_BuildCompoundDlg.h:108
QComboBox * ComboBoxUnion
Definition: SMESHGUI_BuildCompoundDlg.h:110
SUIT_SelectionFilter * myAppendToFilter
Definition: SMESHGUI_BuildCompoundDlg.h:87
QButtonGroup * ResultButtonGroup
Definition: SMESHGUI_BuildCompoundDlg.h:100
LightApp_SelectionMgr * mySelectionMgr
Definition: SMESHGUI_BuildCompoundDlg.h:82
QLineEdit * LineEditNewName
Definition: SMESHGUI_BuildCompoundDlg.h:101
SMESHGUI * mySMESHGUI
Definition: SMESHGUI_BuildCompoundDlg.h:81
QCheckBox * CheckBoxMerge
Definition: SMESHGUI_BuildCompoundDlg.h:112
QGroupBox * GroupResult
Definition: SMESHGUI_BuildCompoundDlg.h:99
QPushButton * buttonApply
Definition: SMESHGUI_BuildCompoundDlg.h:96
QLabel * TextLabelTol
Definition: SMESHGUI_BuildCompoundDlg.h:113
SMESH::SMESH_Mesh_var myMeshToAppendTo
Definition: SMESHGUI_BuildCompoundDlg.h:84
SMESHGUI_SpinBox * SpinBoxTol
Definition: SMESHGUI_BuildCompoundDlg.h:114
SMESH::ListOfIDSources_var myMeshArray
Definition: SMESHGUI_BuildCompoundDlg.h:85
QPushButton * buttonOk
Definition: SMESHGUI_BuildCompoundDlg.h:94
QPushButton * buttonHelp
Definition: SMESHGUI_BuildCompoundDlg.h:97
QLineEdit * CurrentLineEdit
Definition: SMESHGUI_BuildCompoundDlg.h:116
QLabel * TextLabelUnion
Definition: SMESHGUI_BuildCompoundDlg.h:109
QPushButton * SelectButtonAppendTo
Definition: SMESHGUI_BuildCompoundDlg.h:102
QRadioButton * Constructor1
Definition: SMESHGUI_BuildCompoundDlg.h:91
bool myIsApplyAndClose
Definition: SMESHGUI_BuildCompoundDlg.h:120
QGroupBox * GroupArgs
Definition: SMESHGUI_BuildCompoundDlg.h:105
QGroupBox * GroupConstructors
Definition: SMESHGUI_BuildCompoundDlg.h:90
QLineEdit * LineEditAppendTo
Definition: SMESHGUI_BuildCompoundDlg.h:103
Definition: SMESHGUI_SpinBox.h:48
Definition: SMESHGUI.h:84