Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYVegetationWidget.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 
23 #ifndef __TY_VEGETATION_WIDGET__
24 #define __TY_VEGETATION_WIDGET__
25 
26 #include "TYWidget.h"
27 
28 class TYVegetation;
29 class TYLineEdit;
30 class QLineEdit;
31 class QGridLayout;
32 class QLabel;
33 class QPushButton;
34 class QGroupBox;
35 class QCheckBox;
36 class QComboBox;
37 class TYElementWidget;
38 
44 {
45  Q_OBJECT
46 
48 
49  // Methodes
50 public:
54  TYVegetationWidget(TYVegetation* pElement, QWidget* _pParent = NULL);
58  virtual ~TYVegetationWidget();
59 
60 public slots:
61  virtual void updateContent();
62  virtual void apply();
63 
67  void editSpectre();
68 
69 private:
70  void updateComboVegetation();
71 
72  // Membres
73 protected:
74  QGroupBox* _groupBox;
75 
77 
80  QLabel* _labelHauteur;
82  QGroupBox* _groupBoxSpectreAtt;
84  QPushButton* _pushButtonSpectreAtt;
85 
86  QGridLayout* _vegetationLayout;
87  QGridLayout* _groupBoxLayout;
89 
91 };
92 
93 #endif // __TY_VEGETATION_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 une vegetation
QCheckBox * _checkBoxFoliageActive
QGridLayout * _groupBoxLayout
QComboBox * _comboBoxSelectVegeName
TYVegetationWidget(TYVegetation *pElement, QWidget *_pParent=NULL)
TYElementWidget * _elmW
virtual void updateContent()
TYLineEdit * _lineEditHauteur
QGroupBox * _groupBoxSpectreAtt
QLineEdit * _lineEditNomSpectreAtt
QPushButton * _pushButtonSpectreAtt
QGridLayout * _groupBoxSpectreAttLayout
QGridLayout * _vegetationLayout
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43