Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
gui
widgets
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
43
class
TYVegetationWidget
:
public
TYWidget
44
{
45
Q_OBJECT
46
47
TY_DECL_METIER_WIDGET
(
TYVegetation
)
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
76
QComboBox*
_comboBoxSelectVegeName
;
77
78
QLabel*
_labelFoliageActive
;
79
QCheckBox*
_checkBoxFoliageActive
;
80
QLabel*
_labelHauteur
;
81
TYLineEdit
*
_lineEditHauteur
;
82
QGroupBox*
_groupBoxSpectreAtt
;
83
QLineEdit*
_lineEditNomSpectreAtt
;
84
QPushButton*
_pushButtonSpectreAtt
;
85
86
QGridLayout*
_vegetationLayout
;
87
QGridLayout*
_groupBoxLayout
;
88
QGridLayout*
_groupBoxSpectreAttLayout
;
89
90
TYElementWidget
*
_elmW
;
91
};
92
93
#endif
// __TY_VEGETATION_WIDGET__
TYWidget.h
outil IHM pour un objet metier de type TYElement (fichier header)
TY_DECL_METIER_WIDGET
#define TY_DECL_METIER_WIDGET(classname)
Definition:
TYWidget.h:31
TYElementWidget
classe de l'objet IHM pour un element
Definition:
TYElementWidget.h:46
TYLineEdit
Definition:
TYLineEdit.h:33
TYVegetationWidget
classe de l'objet IHM pour une vegetation
Definition:
TYVegetationWidget.h:44
TYVegetationWidget::_checkBoxFoliageActive
QCheckBox * _checkBoxFoliageActive
Definition:
TYVegetationWidget.h:79
TYVegetationWidget::updateComboVegetation
void updateComboVegetation()
Definition:
TYVegetationWidget.cpp:135
TYVegetationWidget::_groupBoxLayout
QGridLayout * _groupBoxLayout
Definition:
TYVegetationWidget.h:87
TYVegetationWidget::_comboBoxSelectVegeName
QComboBox * _comboBoxSelectVegeName
Definition:
TYVegetationWidget.h:76
TYVegetationWidget::editSpectre
void editSpectre()
Definition:
TYVegetationWidget.cpp:125
TYVegetationWidget::TYVegetationWidget
TYVegetationWidget(TYVegetation *pElement, QWidget *_pParent=NULL)
Definition:
TYVegetationWidget.cpp:36
TYVegetationWidget::_labelHauteur
QLabel * _labelHauteur
Definition:
TYVegetationWidget.h:80
TYVegetationWidget::_labelFoliageActive
QLabel * _labelFoliageActive
Definition:
TYVegetationWidget.h:78
TYVegetationWidget::_groupBox
QGroupBox * _groupBox
Definition:
TYVegetationWidget.h:74
TYVegetationWidget::_elmW
TYElementWidget * _elmW
Definition:
TYVegetationWidget.h:90
TYVegetationWidget::apply
virtual void apply()
Definition:
TYVegetationWidget.cpp:111
TYVegetationWidget::updateContent
virtual void updateContent()
Definition:
TYVegetationWidget.cpp:97
TYVegetationWidget::_lineEditHauteur
TYLineEdit * _lineEditHauteur
Definition:
TYVegetationWidget.h:81
TYVegetationWidget::_groupBoxSpectreAtt
QGroupBox * _groupBoxSpectreAtt
Definition:
TYVegetationWidget.h:82
TYVegetationWidget::~TYVegetationWidget
virtual ~TYVegetationWidget()
Definition:
TYVegetationWidget.cpp:95
TYVegetationWidget::_lineEditNomSpectreAtt
QLineEdit * _lineEditNomSpectreAtt
Definition:
TYVegetationWidget.h:83
TYVegetationWidget::_pushButtonSpectreAtt
QPushButton * _pushButtonSpectreAtt
Definition:
TYVegetationWidget.h:84
TYVegetationWidget::_groupBoxSpectreAttLayout
QGridLayout * _groupBoxSpectreAttLayout
Definition:
TYVegetationWidget.h:88
TYVegetationWidget::_vegetationLayout
QGridLayout * _vegetationLayout
Definition:
TYVegetationWidget.h:86
TYVegetation
Definition:
TYVegetation.h:31
TYWidget
classe de l'objet IHM pour un objet metier de type TYElement
Definition:
TYWidget.h:43
Generated on Thu Jan 29 2026 14:35:53 for Code_TYMPAN by
1.9.1