Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYPointCalculWidget.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 
28 #ifndef __TY_POINT_CALCUL_WIDGET__
29 #define __TY_POINT_CALCUL_WIDGET__
30 
31 #include "TYWidget.h"
32 #include <qlayout.h>
33 // Added by qt3to4:
34 #include <QGridLayout>
35 
36 class QLineEdit;
37 class TYPointWidget;
38 class QButtonGroup;
39 class QRadioButton;
40 class QGroupBox;
41 class QComboBox;
42 class QLabel;
43 
44 class TYPointCalcul;
45 class TYCalcul;
46 class TYElementWidget;
47 
53 {
54  Q_OBJECT
55 
57 
58  // Methodes
59 public:
63  TYPointCalculWidget(TYPointCalcul* pElement, QWidget* _pParent = NULL);
67  virtual ~TYPointCalculWidget();
68 
75  void setLayoutSpacing(int margin, int spacing)
76  {
77  _pPointCalculLayout->setContentsMargins(margin, margin, margin, margin);
78  _pPointCalculLayout->setSpacing(spacing);
79  }
80 
81 public slots:
82  virtual void updateContent();
83  virtual void apply();
84 
88  void changeCalcul(int calcul);
89 
93  void editSpectre();
94 
98  // void showResultatTreeDialog();
99 
100  // Membres
101 protected:
103  QButtonGroup* _buttonGroupState;
104  QGroupBox* _groupBoxState;
105  QRadioButton* _pRadioButtonInactif;
106  QRadioButton* _pRadioButtonActif;
107 
110 
112 
114  QGridLayout* _pPointCalculLayout;
115 };
116 
117 #endif // __TY_POINT_CALCUL_WIDGET__
outil IHM pour un objet metier de type TYElement (fichier header)
#define TY_DECL_METIER_WIDGET(classname)
Definition: TYWidget.h:31
Calculation program.
Definition: TYCalcul.h:50
classe de l'objet IHM pour un element
classe de l'objet IHM pour un point de calcul
QGridLayout * _pPointCalculLayout
void setLayoutSpacing(int margin, int spacing)
void changeCalcul(int calcul)
QLabel * _labelSpectreCalcul
Choix du calcul associe au spectre.
QRadioButton * _pRadioButtonActif
TYElementWidget * _elmW
QRadioButton * _pRadioButtonInactif
virtual void updateContent()
QButtonGroup * _buttonGroupState
TYPointCalculWidget(TYPointCalcul *pElement, QWidget *_pParent=NULL)
Classe de definition d'un point de calcul.C'est une classe derivee a TYPoint avec en plus un spectrep...
Definition: TYPointCalcul.h:33
classe de l'objet IHM pour un point
Definition: TYPointWidget.h:49
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43