Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYChemineeSurfaceWidget.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 
33 #ifndef __TY_CHEMINEE_SURFACE_WIDGET__
34 #define __TY_CHEMINEE_SURFACE_WIDGET__
35 
36 #include "TYWidget.h"
37 #include <qlayout.h>
38 // Added by qt3to4:
39 #include <QGridLayout>
40 #include <QLabel>
41 
42 class TYChemineeSurface;
43 class TYLineEdit;
44 class QGridLayout;
45 class QLabel;
46 class QGroupBox;
48 
54 {
55  Q_OBJECT
56 
58 
59  // Methodes
60 public:
64  TYChemineeSurfaceWidget(TYChemineeSurface* pElement, QWidget* _pParent = NULL);
68  virtual ~TYChemineeSurfaceWidget();
69 
74  {
75  return _elmW;
76  }
77 
78  /*
79  * Permet de modifier les parametres du layout.
80  *
81  * @param margin La valeur de la marge.
82  * @param spacing La valeur de l'espacement.
83  */
84  /*
85  void setLayoutSpacing(int margin, int spacing) {
86  _pChemineeSurfaceLayout->setContentsMargins(margin, margin, margin, margin);
87  _pChemineeSurfaceLayout->setSpacing(spacing);
88  }
89  */
90 
91 public slots:
92  virtual void updateContent();
93  virtual void apply();
94 
98  // void editSource();
99 
100  // Membres
101 protected:
103  // QLineEdit * _pLineEditSrc;
104 
111 
113 };
114 
115 #endif // __TY_CHEMINEE_SURFACE_WIDGET__
outil IHM pour un objet metier de type TYElement (fichier header)
#define TY_DECL_METIER_WIDGET(classname)
Definition: TYWidget.h:31
classe d'un objet IHM pour un rectangle acoustique
classe de l'objet IHM pour une surface de cheminee
TYAcousticRectangleWidget * _elmW
TYChemineeSurfaceWidget(TYChemineeSurface *pElement, QWidget *_pParent=NULL)
TYAcousticRectangleWidget * getSurfaceWidget()
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43