Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYMaillageWidget.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
14  */
15 
27 #ifndef __TY_MAILLAGE_WIDGET__
28 #define __TY_MAILLAGE_WIDGET__
29 
30 #include "TYWidget.h"
31 
32 #include <vector>
33 // Added by qt3to4:
34 #include <QGridLayout>
35 #include <QLabel>
36 
37 class TYMaillage;
38 class TYLineEdit;
39 class QLineEdit;
40 class QGridLayout;
41 class QGroupBox;
42 class QPushButton;
43 class QButtonGroup;
44 class QComboBox;
45 class QRadioButton;
46 class TYElementWidget;
48 
53 class TYMaillageWidget : public TYWidget
54 {
55  Q_OBJECT
56 
58 
59  // Methodes
60 public:
64  TYMaillageWidget(TYMaillage* pElement, QWidget* _pParent = NULL);
68  virtual ~TYMaillageWidget();
69 
70 public slots:
71  virtual void updateContent();
72  virtual void apply();
73 
77  void updatePalette();
78 
83  void updateNbPoints(unsigned int nbPts);
84 
89  void updateValMinMax();
90 
94  void dataTypeChanged(int selected);
95 
99  void setFrequency(int freq);
100 
104  void editPalette();
105 
106 protected:
107  void updateFreqList();
108 
109  // Membres
110 protected:
112  QGroupBox* _groupBox;
113  QLineEdit* _lineEditNbPoints;
116  QGridLayout* _maillageLayout;
117  QGridLayout* _groupBoxLayout;
118  QButtonGroup* _buttonGroupDataType;
119  QRadioButton* _pRadioButtondBA;
120  QRadioButton* _pRadioButtondBLin;
121  QRadioButton* _pRadioButtonDataFreq;
122 
123  QComboBox* _comboBoxFreq;
124 
125  // Palette
129 
131 
132  float _dataFreq;
133 };
134 
135 #endif // __TY_MAILLAGE_WIDGET__
outil IHM pour un objet metier de type TYElement (fichier header)
#define TY_DECL_METIER_WIDGET(classname)
Definition: TYWidget.h:31
classe de l'objet IHM pour un element
classe de l'objet IHM pour un maillage
virtual void updateContent()
QRadioButton * _pRadioButtonDataFreq
void dataTypeChanged(int selected)
QRadioButton * _pRadioButtondBA
void setFrequency(int freq)
QGridLayout * _groupBoxLayout
void updateNbPoints(unsigned int nbPts)
TYMaillageWidget(TYMaillage *pElement, QWidget *_pParent=NULL)
QRadioButton * _pRadioButtondBLin
TYLineEdit * _lineEditDataValMin
TYLineEdit * _lineEditHauteur
QGroupBox * _groupBox
TYLabeledLookupTableWidget * _lookupTableWidget
QLineEdit * _lineEditPaletteName
TYElementWidget * _elmW
QComboBox * _comboBoxFreq
QGridLayout * _maillageLayout
QButtonGroup * _buttonGroupDataType
QPushButton * _pushButtonEditPalette
QLineEdit * _lineEditNbPoints
virtual void apply()
TYLineEdit * _lineEditDataValMax
Classe de definition d'un maillage.
Definition: TYMaillage.h:51
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43