Version: 9.16.0
StdMeshersGUI_BlockRenumberCreator.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// File : StdMeshersGUI_BlockRenumberCreator.h
24// Author : Open CASCADE S.A.S.
25//
26#ifndef STDMESHERSGUI_BlockRenumberCreator_H
27#define STDMESHERSGUI_BlockRenumberCreator_H
28
32
33#include <SALOMEconfig.h>
34#include CORBA_SERVER_HEADER(GEOM_Gen)
35//#include CORBA_SERVER_HEADER(SMESH_Hypothesis)
36
37class QButtonGroup;
38class QLineEdit;
39class QString;
40class QTreeWidget;
41class QTreeWidgetItem;
42
44{
45 Q_OBJECT
46
47public:
48 StdMeshersGUI_BlockRenumberCreator( const QString& aHypType );
50
51 virtual bool checkParams( QString& ) const override;
52 virtual QString helpPage() const override;
53 virtual QString hypTypeName( const QString& ) const override;
54
55protected:
56 virtual QFrame* buildFrame() override;
57 virtual void retrieveParams() const override;
58 virtual QString storeParams() const override;
59
60private slots:
61 void onSelectionChange();
62 void onTreeSelectionChange();
63 void updateButtons();
64 void onSelectBtnClick();
65 void onAddBtnClick();
66 void onModifBtnClick();
67 void onRemoveBtnClick();
68
69private:
70
71 void setBlockToTree( QTreeWidgetItem* item = 0 );
72
73 QLineEdit* myName;
75
76 QPushButton* myShapeSelectBut[3];
77 QButtonGroup* myButGroup;
78 QLineEdit* myLineEdit[3];
79
80 QPushButton* myAddBut;
81 QPushButton* myModifBut;
82 QPushButton* myRemoveBut;
83
84 GEOM::GEOM_Object_var myGO[3];
85
87};
88
89#endif // STDMESHERSGUI_BlockRenumberCreator_H
#define STDMESHERSGUI_EXPORT
Definition: SMESH_StdMeshersGUI.hxx:36
virtual QString helpPage() const
Definition: SMESHGUI_Hypotheses.cxx:591
Class : SMESH_NumberFilter Description : Filter for geom or smesh objects.
Definition: SMESH_NumberFilter.hxx:57
Definition: StdMeshersGUI_BlockRenumberCreator.h:44
QLineEdit * myName
Definition: StdMeshersGUI_BlockRenumberCreator.h:73
QTreeWidget * myBlockTree
Definition: StdMeshersGUI_BlockRenumberCreator.h:74
SMESH_NumberFilter mySolidFilter
Definition: StdMeshersGUI_BlockRenumberCreator.h:86
QButtonGroup * myButGroup
Definition: StdMeshersGUI_BlockRenumberCreator.h:77
QPushButton * myAddBut
Definition: StdMeshersGUI_BlockRenumberCreator.h:80
QPushButton * myRemoveBut
Definition: StdMeshersGUI_BlockRenumberCreator.h:82
QPushButton * myModifBut
Definition: StdMeshersGUI_BlockRenumberCreator.h:81
Class for creation of standard hypotheses.
Definition: StdMeshersGUI_StdHypothesisCreator.h:38
virtual void retrieveParams() const
Initialise parameter values in controls.
Definition: StdMeshersGUI_StdHypothesisCreator.cxx:159
virtual QFrame * buildFrame()
Builds dlg layout.
Definition: StdMeshersGUI_StdHypothesisCreator.cxx:148
virtual QString hypTypeName(const QString &) const
String to insert in "SMESH_%1_HYPOTHESIS" to get hypothesis type name from message resource file.
Definition: StdMeshersGUI_StdHypothesisCreator.cxx:1528
virtual QString storeParams() const
Store params from GUI controls to a hypothesis.
Definition: StdMeshersGUI_StdHypothesisCreator.cxx:506
virtual bool checkParams(QString &) const
Check parameter values before accept()
Definition: StdMeshersGUI_StdHypothesisCreator.cxx:429