Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYEtageWidget.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_ETAGE_WIDGET__
28 #define __TY_ETAGE_WIDGET__
29 
30 #include "TYWidget.h"
31 // Added by qt3to4:
32 #include <QGridLayout>
33 #include <QLabel>
34 
35 class TYEtage;
36 class TYLineEdit;
37 class QLineEdit;
38 class QGridLayout;
39 class QLabel;
40 class QTreeWidget;
41 class QGroupBox;
42 class QPushButton;
43 class QTreeWidgetItem;
44 class QButtonGroup;
45 class QTableWidget;
46 class QTabWidget;
48 class QCheckBox;
49 class QRadioButton;
50 
55 class TYEtageWidget : public TYWidget
56 {
57  Q_OBJECT
58 
60 
61  // Methodes
62 public:
66  TYEtageWidget(TYEtage* pElement, QWidget* _pParent = NULL);
70  virtual ~TYEtageWidget();
71 
72 public slots:
73  virtual void updateContent();
74  virtual void apply();
75 
79  void editSol();
83  void editPlafond();
84 
90  void editMur(const int& item);
91 
97  void editMachine(const int& item);
98 
104  void editSource(const int& item);
105 
107  void showReverb();
108 
110  void showTR();
111 
115  virtual void contextMenuEvent(QContextMenuEvent* e);
116 
120  void propagateRegime(int regime);
121 
122 private:
123  void clearTables();
124 
126  void updateFromMurs();
128  void applyToMurs();
129 
130  // Membres
131 protected:
132  QButtonGroup* _buttonGroupReverb;
133  QRadioButton* _pRadioButtonSabine;
134 
135  QGroupBox* _groupBoxDalles;
136  QGroupBox* _groupBoxSol;
137  QLineEdit* _lineEditNomSol;
138  QPushButton* _pushButtonSol;
139  QCheckBox* _checkBoxSol;
140  QGroupBox* _groupBoxPlafond;
142  QPushButton* _pushButtonPlafond;
143  QCheckBox* _checkBoxPlafond;
144 
145  // QWidget* _pMursWidget;
146  QGroupBox* _groupBoxListMur;
147  QTableWidget* _tableFaces;
148 
149  // Gestion des onglet pour les proprietes
150  QTabWidget* _tabWidget;
151 
152  // Gestion des etats des machines/sources
154 
155  QTabWidget* _tabWidgetSources;
156  QTableWidget* _tableMachine;
157  QTableWidget* _tableSource;
158 
159  QGridLayout* _etageLayout;
160  QGridLayout* _groupBoxDallesLayout;
161  QGridLayout* _groupBoxSolLayout;
165 
170 
172 };
173 
174 #endif // __TY_ETAGE_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 volume acoustique
classe de l'objet IHM pour un etage
Definition: TYEtageWidget.h:56
QButtonGroup * _buttonGroupReverb
QCheckBox * _checkBoxPlafond
void showTR()
Affichage du temps de reverberation.
virtual void updateContent()
void editSource(const int &item)
void editMur(const int &item)
QTableWidget * _tableMachine
QGroupBox * _groupBoxPlafond
virtual void contextMenuEvent(QContextMenuEvent *e)
QLineEdit * _lineEditNomSol
QGroupBox * _groupBoxListMachine
void editMachine(const int &item)
void showReverb()
Affichage du champ reverbere.
QGridLayout * _etageLayout
TYEtageWidget(TYEtage *pElement, QWidget *_pParent=NULL)
QTabWidget * _tabWidget
QTabWidget * _tabWidgetSources
QTableWidget * _tableFaces
TYLineEdit * _dimensionsHauteurLineEdit
QGridLayout * _groupBoxListMachineLayout
QGridLayout * _groupBoxPlafondLayout
virtual void apply()
TYAcousticVolumeWidget * _elmW
QLineEdit * _lineEditNomPlafond
QGroupBox * _groupBoxListMur
QPushButton * _pushButtonSol
QGridLayout * _groupBoxDallesLayout
QGridLayout * _groupBoxListMurLayout
QGroupBox * _groupBoxDimensions
QLabel * _dimensionsHauteurLabel
virtual ~TYEtageWidget()
QTableWidget * _tableSource
QGroupBox * _groupBoxSol
QCheckBox * _checkBoxSol
void propagateRegime(int regime)
QGridLayout * _groupBoxSolLayout
QPushButton * _pushButtonPlafond
QGroupBox * _groupBoxDalles
QGridLayout * _groupBoxDimensionsLayout
QRadioButton * _pRadioButtonSabine
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43