Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYEtageWidget.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 
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 QGroupBox;
41 class QPushButton;
42 class QButtonGroup;
43 class QTableWidget;
44 class QTabWidget;
46 class QCheckBox;
47 class QRadioButton;
48 
53 class TYEtageWidget : public TYWidget
54 {
55  Q_OBJECT
56 
58 
59  // Methodes
60 public:
64  TYEtageWidget(TYEtage* pElement, QWidget* _pParent = NULL);
68  virtual ~TYEtageWidget();
69 
70 public slots:
71  virtual void updateContent();
72  virtual void apply();
73 
77  void editSol();
81  void editPlafond();
82 
88  void editMur(const int& item);
89 
95  void editMachine(const int& item);
96 
102  void editSource(const int& item);
103 
105  void showReverb();
106 
108  void showTR();
109 
113  virtual void contextMenuEvent(QContextMenuEvent* e);
114 
118  void propagateRegime(int regime);
119 
120 private:
121  void clearTables();
122 
124  void updateFromMurs();
126  void applyToMurs();
127 
128  // Membres
129 protected:
130  QButtonGroup* _buttonGroupReverb;
131  QRadioButton* _pRadioButtonSabine;
132 
133  QGroupBox* _groupBoxDalles;
134  QGroupBox* _groupBoxSol;
135  QLineEdit* _lineEditNomSol;
136  QPushButton* _pushButtonSol;
137  QCheckBox* _checkBoxSol;
138  QGroupBox* _groupBoxPlafond;
140  QPushButton* _pushButtonPlafond;
141  QCheckBox* _checkBoxPlafond;
142 
143  // QWidget* _pMursWidget;
144  QGroupBox* _groupBoxListMur;
145  QTableWidget* _tableFaces;
146 
147  // Gestion des onglet pour les proprietes
148  QTabWidget* _tabWidget;
149 
150  // Gestion des etats des machines/sources
152 
153  QTabWidget* _tabWidgetSources;
154  QTableWidget* _tableMachine;
155  QTableWidget* _tableSource;
156 
157  QGridLayout* _etageLayout;
158  QGridLayout* _groupBoxDallesLayout;
159  QGridLayout* _groupBoxSolLayout;
163 
168 
170 };
171 
172 #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:54
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