Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYAcousticLineWidget.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_ACOUSTICLINE_WIDGET__
28 #define __TY_ACOUSTICLINE_WIDGET__
29 
30 #include "TYWidget.h"
31 
32 class TYAcousticLine;
33 class QLineEdit;
34 class QGridLayout;
35 class QLabel;
36 class QGroupBox;
37 class QPushButton;
38 class QComboBox;
39 class QCheckBox;
40 class TYSourceWidget;
41 class QButtonGroup;
42 class QRadioButton;
43 class TabPointsWidget;
44 class TYLineEdit;
45 
51 {
52  Q_OBJECT
53 
55 
56  // Methodes
57 public:
61  TYAcousticLineWidget(TYAcousticLine* pElement, QWidget* _pParent = NULL);
65  virtual ~TYAcousticLineWidget();
66 
70  void updateComboRegime();
71 
76 
77 public slots:
78  virtual void updateContent();
79  virtual void apply();
80 
84  void editSrcLin();
88  void createNewRegime();
89 
93  void deleteRegime();
94 
98  void changeRegime(int regime);
99 
104  void saveCurrentRegime();
105 
109  void renameRegime(const QString& nom);
110 
114  void showSpectre();
115 
120  void setSpectreToReadOnly();
121 
125  void editAtt();
126 
130  void useAttenuateur();
131 
132  // Membres
133 protected:
134  // AcousticInterface
135  QLabel* _labeUseAtt;
136  QCheckBox* _checkBoxUseAtt;
139 
140  QGroupBox* _groupBoxAtt;
141  QLineEdit* _lineEditNomAtt;
142  QPushButton* _pushButtonSpectreAtt;
143  QGridLayout* _groupBoxAttLayout;
144 
145  // Gestion du type de distribution de la puissance
146  QButtonGroup* _buttonGroupTypeDistrib;
147  QRadioButton* _pRadioButtonCalculee;
148  QRadioButton* _pRadioButtonImposee;
149 
150  QGroupBox* _groupBoxSpectre;
153 
154  QGroupBox* _groupBoxLine;
155  QLabel* _labelLargeur;
157  QGroupBox* _groupBoxSrcLin;
158  QLineEdit* _lineEditNomSrcLin;
159  QPushButton* _pushButtonSrcLin;
160  QGroupBox* _groupBoxListPt;
161 
162  QGridLayout* _acousticLineLayout;
163  QGridLayout* _groupBoxLineLayout;
164  QGridLayout* _groupBoxSrcLinLayout;
165  QGridLayout* _groupBoxListPtLayout;
166 
167  // Choix du regime
169  QPushButton* _pushButtonNewRegime;
170  QPushButton* _pushButtonRemRegime;
171 
172  // Choix de la densite de sources
173  QGroupBox* _groupBoxDensite;
176 
178 
180 };
181 
182 #endif // __TY_ACOUSTICLINE_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 une ligne acoustique
TabPointsWidget * _pTabPtsW
QButtonGroup * _buttonGroupTypeDistrib
QPushButton * _pushButtonSpectreAtt
QRadioButton * _pRadioButtonImposee
QGridLayout * _groupBoxDensiteLayout
QGridLayout * _groupBoxSrcLinLayout
QGridLayout * _acousticLineLayout
QGridLayout * _groupBoxListPtLayout
void renameRegime(const QString &nom)
QGridLayout * _groupBoxSpectreLayout
void setSpectreToReadOnly()
Set Spectre to read only when in calculated mode.
void saveCurrentRegime()
save current regime if changed
QPushButton * _pushButtonNewRegime
QRadioButton * _pRadioButtonCalculee
TYAcousticLineWidget(TYAcousticLine *pElement, QWidget *_pParent=NULL)
QPushButton * _pushButtonRemRegime
QPushButton * _pushButtonShowSpectre
QGridLayout * _groupBoxLineLayout
QGridLayout * _groupBoxAttLayout
classe de l'objet IHM pour une source
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43