Code_TYMPAN  4.4.0
Industrial site acoustic simulation
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 
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;
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;
145  QCheckBox* _checkBoxRoot;
147  QGroupBox* _groupBox;
148  QTreeWidget* _listViewListSite;
149 
150  // Saisie de l'altitude de la courbe de niveau associee a l'emprise
153 
154  // Choix du SIG
156  QComboBox* _comboSIG;
157 
158  // Coordonees SIG
159  QLabel* _labelSIG_X;
160  QLineEdit* _lineEditSIG_X;
161  QLabel* _labelSIG_Y;
162  QLineEdit* _lineEditSIG_Y;
165 
166  QGridLayout* _sitenodeLayout;
167  QGridLayout* _groupBox_3Layout;
168  QGridLayout* _groupBoxLayout;
169 
171 };
172 
173 #endif // __TY_SITENODE_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 ensemble de sites
QComboBox * _comboSIG
QGroupBox * _groupBox
virtual void updateContent()
void updateEditAlti()
Active/desactive la boite de saisie de l'altitude de la courbe de niveau.
void updateSIGList()
Mise a jour de la liste des systemes de coordonnees SIG.
QGridLayout * _groupBox_3Layout
virtual void contextMenuEvent(QContextMenuEvent *e)
QCheckBox * _checkBoxUseTopoFile
QLineEdit * _lineEditAltiEmprise
QGroupBox * _groupBox_0
TYElementWidget * _elmW
QGridLayout * _groupBoxInfraLayout
QLineEdit * _lineEditSIG_X
QPushButton * _pushButtonTopoFile
QLineEdit * _lineEditSIG_Y
void setSIGCoord(int typeCoord)
Changement du systeme de coordonnees.
QLineEdit * _lineEditNomInfra
QCheckBox * _checkBoxUseEmprise
QPushButton * _pushButtonTopo
virtual void apply()
QGroupBox * _groupBoxTopo
QGridLayout * _groupBoxLayout
QTreeWidget * _listViewListSite
QGridLayout * _groupBox_0Layout
void editSite(QTreeWidgetItem *item)
QLineEdit * _lineEditTopoFile
QLineEdit * _lineEditNomTopo
QGroupBox * _groupBox_3
QGridLayout * _groupBoxTopoLayout
QCheckBox * _checkBoxRoot
QGroupBox * _groupBoxInfra
TYSiteNodeWidget(TYSiteNode *pElement, QWidget *_pParent=NULL)
void updateSIGData()
Mise a jour des widgets lies au SIG.
QGridLayout * _sitenodeLayout
QLabel * _labelAltiEmprise
QPushButton * _pushButtonInfra
TYLineEdit * _lineEditEchelle
QLineEdit * _lineEditSIG_OFFSET
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43