Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
gui
widgets
TYSiteNodeWidget.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
27
#ifndef __TY_SITENODE_WIDGET__
28
#define __TY_SITENODE_WIDGET__
29
30
#include "
TYWidget.h
"
31
// Added by qt3to4:
32
#include <QGridLayout>
33
#include <QLabel>
34
35
class
TYSiteNode
;
36
class
TYElementWidget
;
37
class
TYLineEdit
;
38
class
QLineEdit;
39
class
QGridLayout;
40
class
QLabel;
41
class
QTreeWidget;
42
class
QTreeWidgetItem;
43
class
QGroupBox;
44
class
QPushButton;
45
class
QCheckBox;
46
class
QComboBox;
47
52
class
TYSiteNodeWidget
:
public
TYWidget
53
{
54
Q_OBJECT
55
56
TY_DECL_METIER_WIDGET
(
TYSiteNode
)
57
58
// Methodes
59
public
:
63
TYSiteNodeWidget
(
TYSiteNode
* pElement, QWidget* _pParent = NULL);
67
virtual
~TYSiteNodeWidget
();
68
69
public
slots:
70
virtual
void
updateContent
();
71
virtual
void
apply
();
72
73
// Code de TYSiteWidget
77
void
editTopo
();
81
void
editInfra
();
82
86
void
changeStateTopoFile
();
87
91
void
chooseTopoFile
();
92
93
// Code de TYSiteNodeWidget
99
void
editSite
(QTreeWidgetItem* item);
100
104
virtual
void
contextMenuEvent
(QContextMenuEvent* e);
105
107
void
updateEditAlti
();
108
110
void
setSIGCoord
(
int
typeCoord);
111
112
protected
:
114
void
updateSIGList
();
115
116
private
:
118
void
updateSIGData
();
119
120
// Membres
121
protected
:
122
// Elements de feu TYSiteWidget
123
QGroupBox*
_groupBox_0
;
124
QLabel*
_labelEchelle
;
125
TYLineEdit
*
_lineEditEchelle
;
126
QCheckBox*
_checkBoxUseTopoFile
;
127
QLineEdit*
_lineEditTopoFile
;
128
QLabel*
_labelTopoFile
;
129
QGroupBox*
_groupBoxInfra
;
130
QPushButton*
_pushButtonInfra
;
131
QLineEdit*
_lineEditNomInfra
;
132
QGroupBox*
_groupBoxTopo
;
133
QLineEdit*
_lineEditNomTopo
;
134
QPushButton*
_pushButtonTopo
;
135
QPushButton*
_pushButtonTopoFile
;
136
137
QGridLayout*
_groupBox_0Layout
;
138
QGridLayout*
_groupBoxInfraLayout
;
139
QGridLayout*
_groupBoxTopoLayout
;
140
141
// Element de TYSiteNodeWidget
142
QGroupBox*
_groupBox_3
;
143
QLabel*
_labelRoot
;
144
QLabel*
_labelUseEmprise
;
145
QCheckBox*
_checkBoxRoot
;
146
QCheckBox*
_checkBoxUseEmprise
;
147
QGroupBox*
_groupBox
;
148
QTreeWidget*
_listViewListSite
;
149
150
// Saisie de l'altitude de la courbe de niveau associee a l'emprise
151
QLineEdit*
_lineEditAltiEmprise
;
152
QLabel*
_labelAltiEmprise
;
153
154
// Choix du SIG
155
QLabel*
_labelModeCoord
;
156
QComboBox*
_comboSIG
;
157
158
// Coordonees SIG
159
QLabel*
_labelSIG_X
;
160
QLineEdit*
_lineEditSIG_X
;
161
QLabel*
_labelSIG_Y
;
162
QLineEdit*
_lineEditSIG_Y
;
163
QLabel*
_labelSIG_OFFSET
;
164
QLineEdit*
_lineEditSIG_OFFSET
;
165
166
QGridLayout*
_sitenodeLayout
;
167
QGridLayout*
_groupBox_3Layout
;
168
QGridLayout*
_groupBoxLayout
;
169
170
TYElementWidget
*
_elmW
;
171
};
172
173
#endif
// __TY_SITENODE_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
TYSiteNodeWidget
classe de l'objet IHM pour un ensemble de sites
Definition:
TYSiteNodeWidget.h:53
TYSiteNodeWidget::_labelSIG_Y
QLabel * _labelSIG_Y
Definition:
TYSiteNodeWidget.h:161
TYSiteNodeWidget::editInfra
void editInfra()
Definition:
TYSiteNodeWidget.cpp:435
TYSiteNodeWidget::_comboSIG
QComboBox * _comboSIG
Definition:
TYSiteNodeWidget.h:156
TYSiteNodeWidget::_groupBox
QGroupBox * _groupBox
Definition:
TYSiteNodeWidget.h:147
TYSiteNodeWidget::updateContent
virtual void updateContent()
Definition:
TYSiteNodeWidget.cpp:228
TYSiteNodeWidget::changeStateTopoFile
void changeStateTopoFile()
Definition:
TYSiteNodeWidget.cpp:410
TYSiteNodeWidget::_labelTopoFile
QLabel * _labelTopoFile
Definition:
TYSiteNodeWidget.h:128
TYSiteNodeWidget::updateEditAlti
void updateEditAlti()
Active/desactive la boite de saisie de l'altitude de la courbe de niveau.
Definition:
TYSiteNodeWidget.cpp:341
TYSiteNodeWidget::updateSIGList
void updateSIGList()
Mise a jour de la liste des systemes de coordonnees SIG.
Definition:
TYSiteNodeWidget.cpp:355
TYSiteNodeWidget::_groupBox_3Layout
QGridLayout * _groupBox_3Layout
Definition:
TYSiteNodeWidget.h:167
TYSiteNodeWidget::contextMenuEvent
virtual void contextMenuEvent(QContextMenuEvent *e)
Definition:
TYSiteNodeWidget.cpp:320
TYSiteNodeWidget::_checkBoxUseTopoFile
QCheckBox * _checkBoxUseTopoFile
Definition:
TYSiteNodeWidget.h:126
TYSiteNodeWidget::_lineEditAltiEmprise
QLineEdit * _lineEditAltiEmprise
Definition:
TYSiteNodeWidget.h:151
TYSiteNodeWidget::~TYSiteNodeWidget
virtual ~TYSiteNodeWidget()
Definition:
TYSiteNodeWidget.cpp:226
TYSiteNodeWidget::_groupBox_0
QGroupBox * _groupBox_0
Definition:
TYSiteNodeWidget.h:123
TYSiteNodeWidget::chooseTopoFile
void chooseTopoFile()
Definition:
TYSiteNodeWidget.cpp:424
TYSiteNodeWidget::_elmW
TYElementWidget * _elmW
Definition:
TYSiteNodeWidget.h:170
TYSiteNodeWidget::_groupBoxInfraLayout
QGridLayout * _groupBoxInfraLayout
Definition:
TYSiteNodeWidget.h:138
TYSiteNodeWidget::_lineEditSIG_X
QLineEdit * _lineEditSIG_X
Definition:
TYSiteNodeWidget.h:160
TYSiteNodeWidget::_pushButtonTopoFile
QPushButton * _pushButtonTopoFile
Definition:
TYSiteNodeWidget.h:135
TYSiteNodeWidget::_lineEditSIG_Y
QLineEdit * _lineEditSIG_Y
Definition:
TYSiteNodeWidget.h:162
TYSiteNodeWidget::setSIGCoord
void setSIGCoord(int typeCoord)
Changement du systeme de coordonnees.
Definition:
TYSiteNodeWidget.cpp:403
TYSiteNodeWidget::_lineEditNomInfra
QLineEdit * _lineEditNomInfra
Definition:
TYSiteNodeWidget.h:131
TYSiteNodeWidget::_labelModeCoord
QLabel * _labelModeCoord
Definition:
TYSiteNodeWidget.h:155
TYSiteNodeWidget::_labelRoot
QLabel * _labelRoot
Definition:
TYSiteNodeWidget.h:143
TYSiteNodeWidget::_checkBoxUseEmprise
QCheckBox * _checkBoxUseEmprise
Definition:
TYSiteNodeWidget.h:146
TYSiteNodeWidget::_pushButtonTopo
QPushButton * _pushButtonTopo
Definition:
TYSiteNodeWidget.h:134
TYSiteNodeWidget::apply
virtual void apply()
Definition:
TYSiteNodeWidget.cpp:267
TYSiteNodeWidget::_groupBoxTopo
QGroupBox * _groupBoxTopo
Definition:
TYSiteNodeWidget.h:132
TYSiteNodeWidget::_groupBoxLayout
QGridLayout * _groupBoxLayout
Definition:
TYSiteNodeWidget.h:168
TYSiteNodeWidget::_listViewListSite
QTreeWidget * _listViewListSite
Definition:
TYSiteNodeWidget.h:148
TYSiteNodeWidget::_labelUseEmprise
QLabel * _labelUseEmprise
Definition:
TYSiteNodeWidget.h:144
TYSiteNodeWidget::_labelSIG_OFFSET
QLabel * _labelSIG_OFFSET
Definition:
TYSiteNodeWidget.h:163
TYSiteNodeWidget::_groupBox_0Layout
QGridLayout * _groupBox_0Layout
Definition:
TYSiteNodeWidget.h:137
TYSiteNodeWidget::editSite
void editSite(QTreeWidgetItem *item)
Definition:
TYSiteNodeWidget.cpp:304
TYSiteNodeWidget::_lineEditTopoFile
QLineEdit * _lineEditTopoFile
Definition:
TYSiteNodeWidget.h:127
TYSiteNodeWidget::_lineEditNomTopo
QLineEdit * _lineEditNomTopo
Definition:
TYSiteNodeWidget.h:133
TYSiteNodeWidget::editTopo
void editTopo()
Definition:
TYSiteNodeWidget.cpp:445
TYSiteNodeWidget::_groupBox_3
QGroupBox * _groupBox_3
Definition:
TYSiteNodeWidget.h:142
TYSiteNodeWidget::_groupBoxTopoLayout
QGridLayout * _groupBoxTopoLayout
Definition:
TYSiteNodeWidget.h:139
TYSiteNodeWidget::_checkBoxRoot
QCheckBox * _checkBoxRoot
Definition:
TYSiteNodeWidget.h:145
TYSiteNodeWidget::_groupBoxInfra
QGroupBox * _groupBoxInfra
Definition:
TYSiteNodeWidget.h:129
TYSiteNodeWidget::TYSiteNodeWidget
TYSiteNodeWidget(TYSiteNode *pElement, QWidget *_pParent=NULL)
Definition:
TYSiteNodeWidget.cpp:41
TYSiteNodeWidget::updateSIGData
void updateSIGData()
Mise a jour des widgets lies au SIG.
Definition:
TYSiteNodeWidget.cpp:367
TYSiteNodeWidget::_sitenodeLayout
QGridLayout * _sitenodeLayout
Definition:
TYSiteNodeWidget.h:166
TYSiteNodeWidget::_labelEchelle
QLabel * _labelEchelle
Definition:
TYSiteNodeWidget.h:124
TYSiteNodeWidget::_labelAltiEmprise
QLabel * _labelAltiEmprise
Definition:
TYSiteNodeWidget.h:152
TYSiteNodeWidget::_pushButtonInfra
QPushButton * _pushButtonInfra
Definition:
TYSiteNodeWidget.h:130
TYSiteNodeWidget::_labelSIG_X
QLabel * _labelSIG_X
Definition:
TYSiteNodeWidget.h:159
TYSiteNodeWidget::_lineEditEchelle
TYLineEdit * _lineEditEchelle
Definition:
TYSiteNodeWidget.h:125
TYSiteNodeWidget::_lineEditSIG_OFFSET
QLineEdit * _lineEditSIG_OFFSET
Definition:
TYSiteNodeWidget.h:164
TYSiteNode
Definition:
TYSiteNode.h:43
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