Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYEtatsWidget.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_ETATS_WIDGET__
28 #define __TY_ETATS_WIDGET__
29 
30 #include "TYWidget.h"
31 #include <qdialog.h>
32 // Added by qt3to4:
33 #include <QGridLayout>
34 #include <QLabel>
35 
36 #include <vector>
37 using std::vector;
38 typedef vector<TYElement*> tabPtrElement;
39 
40 class TYCalcul;
41 class QLineEdit;
42 class QGridLayout;
43 class QLabel;
44 class QGroupBox;
45 class QPushButton;
46 class QCheckBox;
47 class QPoint;
48 class QTextEdit;
49 class QDateEdit;
50 class TYElementWidget;
51 class QTableWidget;
52 class QTabWidget;
53 class QRadioButton;
54 
59 class TYEtatsWidget : public QDialog
60 {
61  Q_OBJECT
62 
63 public:
67  TYEtatsWidget(TYCalcul* pElement, QWidget* _pParent /*=NULL*/);
68 
72  virtual ~TYEtatsWidget();
73 
74 public slots:
75  virtual void updateContent();
76  virtual void apply();
77 
81  virtual void contextMenuEvent(QContextMenuEvent* e);
82 
83 signals:
88  void modified();
89 
90 private:
93 
94  QTabWidget* _tabWidget;
95 
96  QTableWidget* _tableSource;
97  tabPtrElement _tabPtrSourcePonctuelle; // Permet de memoriser l'element associe a la ligne dans le tableau
98 
99  QTableWidget* _tableMachine;
100  tabPtrElement _tabPtrMachine; // Permet de memoriser l'element associe a la ligne dans le tableau
101 
102  QTableWidget* _tableBatiment;
103  tabPtrElement _tabPtrBatiment; // Permet de memoriser l'element associe a la ligne dans le tableau
104 
105  QTableWidget* _tableSourceLin;
106  tabPtrElement _tabPtrSourceLin; // Permet de memoriser l'element associe a la ligne dans le tableau
107 };
108 
109 #endif // __TY_ETATS_WIDGET__
vector< TYElement * > tabPtrElement
vector< TYElement * > tabPtrElement
Definition: TYEtatsWidget.h:38
outil IHM pour un objet metier de type TYElement (fichier header)
Calculation program.
Definition: TYCalcul.h:50
classe de l'objet IHM pour un element
classe de l'outil IHM pour les Etats
Definition: TYEtatsWidget.h:60
tabPtrElement _tabPtrMachine
virtual ~TYEtatsWidget()
tabPtrElement _tabPtrSourcePonctuelle
Definition: TYEtatsWidget.h:97
virtual void contextMenuEvent(QContextMenuEvent *e)
tabPtrElement _tabPtrSourceLin
tabPtrElement _tabPtrBatiment
TYCalcul * _pElement
Definition: TYEtatsWidget.h:91
TYEtatsWidget(TYCalcul *pElement, QWidget *_pParent)
virtual void apply()
QTableWidget * _tableSourceLin
QTableWidget * _tableBatiment
virtual void updateContent()
QTableWidget * _tableSource
Definition: TYEtatsWidget.h:96
QTabWidget * _tabWidget
Definition: TYEtatsWidget.h:94
TYElementWidget * _elmW
Definition: TYEtatsWidget.h:92
QTableWidget * _tableMachine
Definition: TYEtatsWidget.h:99