Version: 9.16.0
SMESHGUI_Add0DElemsOnAllNodesDlg.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
25#ifndef SMESHGUI_ADD0DELEMSONALLNODESDLG_H
26#define SMESHGUI_ADD0DELEMSONALLNODESDLG_H
27
28#include "SMESH_SMESHGUI.hxx"
29
31#include "SMESHGUI_Dialog.h"
33
34class QButtonGroup;
35class QCheckBox;
36class QComboBox;
37class QGroupBox;
38class QLabel;
39class QPushButton;
42
43//---------------------------------------------------------------------------------
48{
49 Q_OBJECT
50
51 public:
53
54 int getSelectionType() const;
55 bool isValid();
56
57signals:
58
59 void selTypeChanged( int selType );
60
61
62 private slots:
63
64 void onGroupChecked ( bool on );
65 void onSelTypeChange( int selType );
66
67 private:
68
70
71 QButtonGroup* mySelTypeBtnGrp;
72 QPushButton* myFilterBtn;
77
79};
80
81//---------------------------------------------------------------------------------
86{
87 Q_OBJECT
88
89 public:
92
93 virtual LightApp_Dialog* dlg() const { return myDlg; }
94
95 protected:
96 virtual void startOperation();
97 virtual void selectionDone();
98 virtual SUIT_SelectionFilter* createFilter( const int ) const;
99
100 protected slots:
101 virtual bool onApply();
102 void onSelTypeChange(int);
103 void onSetFilter();
104 virtual void onTextChanged( int, const QStringList& );
105 void updateButtons();
106
107 private:
110 Handle(SALOME_InteractiveObject) myIO;
111};
112
113#endif
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Dialog creating 0D elements on all nodes of given elements.
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:48
QLabel * myGroupLabel
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:74
QGroupBox * myGroupBox
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:73
QPushButton * myFilterBtn
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:72
void selTypeChanged(int selType)
QButtonGroup * mySelTypeBtnGrp
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:71
QCheckBox * myDuplicateElemsChkBox
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:76
QComboBox * myGroupListCmBox
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:75
SMESHGUI_IdValidator myIDValidator
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:78
Operation creating 0D elements on all nodes of given elements.
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:86
SMESHGUI_Add0DElemsOnAllNodesDlg * myDlg
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:108
SMESHGUI_FilterDlg * myFilterDlg
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:109
virtual LightApp_Dialog * dlg() const
Definition: SMESHGUI_Add0DElemsOnAllNodesDlg.h:93
Handle(SALOME_InteractiveObject) myIO
Definition: SMESHGUI_Dialog.h:44
Class : SMESHGUI_FilterDlg Description : Dialog to specify filters for VTK viewer.
Definition: SMESHGUI_FilterDlg.h:217
Definition: SMESHGUI_IdValidator.h:39
Definition: SMESHGUI_SelectionOp.h:58