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> <EDF-R&D> <FRANCE>
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation; either version 2 of the License, or
6
* (at your option) any later version.
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
* See the GNU General Public License for more details.
11
* You should have received a copy of the GNU General Public License along
12
* with this program; if not, write to the Free Software Foundation, Inc.,
13
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
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:134
TYVegetationWidget::_groupBoxLayout
QGridLayout * _groupBoxLayout
Definition:
TYVegetationWidget.h:87
TYVegetationWidget::_comboBoxSelectVegeName
QComboBox * _comboBoxSelectVegeName
Definition:
TYVegetationWidget.h:76
TYVegetationWidget::editSpectre
void editSpectre()
Definition:
TYVegetationWidget.cpp:124
TYVegetationWidget::TYVegetationWidget
TYVegetationWidget(TYVegetation *pElement, QWidget *_pParent=NULL)
Definition:
TYVegetationWidget.cpp:35
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:110
TYVegetationWidget::updateContent
virtual void updateContent()
Definition:
TYVegetationWidget.cpp:96
TYVegetationWidget::_lineEditHauteur
TYLineEdit * _lineEditHauteur
Definition:
TYVegetationWidget.h:81
TYVegetationWidget::_groupBoxSpectreAtt
QGroupBox * _groupBoxSpectreAtt
Definition:
TYVegetationWidget.h:82
TYVegetationWidget::~TYVegetationWidget
virtual ~TYVegetationWidget()
Definition:
TYVegetationWidget.cpp:94
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 Mon Nov 27 2023 07:56:32 for Code_TYMPAN by
1.9.1