1 // Copyright (C) 2007-2022 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
25 #ifndef SMESHGUI_ADD0DELEMSONALLNODESDLG_H
26 #define SMESHGUI_ADD0DELEMSONALLNODESDLG_H
28 #include "SMESH_SMESHGUI.hxx"
30 #include "SMESHGUI_SelectionOp.h"
31 #include "SMESHGUI_Dialog.h"
32 #include "SMESHGUI_IdValidator.h"
40 class SMESHGUI_Add0DElemsOnAllNodesOp;
41 class SMESHGUI_FilterDlg;
43 //---------------------------------------------------------------------------------
45 * \brief Dialog creating 0D elements on all nodes of given elements
47 class SMESHGUI_EXPORT SMESHGUI_Add0DElemsOnAllNodesDlg : public SMESHGUI_Dialog
52 SMESHGUI_Add0DElemsOnAllNodesDlg();
54 int getSelectionType() const;
59 void selTypeChanged( int selType );
64 void onGroupChecked ( bool on );
65 void onSelTypeChange( int selType );
69 friend class SMESHGUI_Add0DElemsOnAllNodesOp;
71 QButtonGroup* mySelTypeBtnGrp;
72 QPushButton* myFilterBtn;
73 QGroupBox* myGroupBox;
75 QComboBox* myGroupListCmBox;
76 QCheckBox* myDuplicateElemsChkBox;
78 SMESHGUI_IdValidator myIDValidator;
81 //---------------------------------------------------------------------------------
83 * \brief Operation creating 0D elements on all nodes of given elements
85 class SMESHGUI_EXPORT SMESHGUI_Add0DElemsOnAllNodesOp : public SMESHGUI_SelectionOp
90 SMESHGUI_Add0DElemsOnAllNodesOp();
91 ~SMESHGUI_Add0DElemsOnAllNodesOp();
93 virtual LightApp_Dialog* dlg() const { return myDlg; }
96 virtual void startOperation();
97 virtual void selectionDone();
98 virtual SUIT_SelectionFilter* createFilter( const int ) const;
101 virtual bool onApply();
102 void onSelTypeChange(int);
104 virtual void onTextChanged( int, const QStringList& );
105 void updateButtons();
108 SMESHGUI_Add0DElemsOnAllNodesDlg* myDlg;
109 SMESHGUI_FilterDlg* myFilterDlg;
110 Handle(SALOME_InteractiveObject) myIO;