Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYEtatsWidget.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_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 TYElementWidget;
42 class QTableWidget;
43 class QTabWidget;
44 
49 class TYEtatsWidget : public QDialog
50 {
51  Q_OBJECT
52 
53 public:
57  TYEtatsWidget(TYCalcul* pElement, QWidget* _pParent /*=NULL*/);
58 
62  virtual ~TYEtatsWidget();
63 
64 public slots:
65  virtual void updateContent();
66  virtual void apply();
67 
71  virtual void contextMenuEvent(QContextMenuEvent* e);
72 
73 signals:
78  void modified();
79 
80 private:
83 
84  QTabWidget* _tabWidget;
85 
86  QTableWidget* _tableSource;
87  tabPtrElement _tabPtrSourcePonctuelle; // Permet de memoriser l'element associe a la ligne dans le tableau
88 
89  QTableWidget* _tableMachine;
90  tabPtrElement _tabPtrMachine; // Permet de memoriser l'element associe a la ligne dans le tableau
91 
92  QTableWidget* _tableBatiment;
93  tabPtrElement _tabPtrBatiment; // Permet de memoriser l'element associe a la ligne dans le tableau
94 
95  QTableWidget* _tableSourceLin;
96  tabPtrElement _tabPtrSourceLin; // Permet de memoriser l'element associe a la ligne dans le tableau
97 };
98 
99 #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:50
tabPtrElement _tabPtrMachine
Definition: TYEtatsWidget.h:90
virtual ~TYEtatsWidget()
tabPtrElement _tabPtrSourcePonctuelle
Definition: TYEtatsWidget.h:87
virtual void contextMenuEvent(QContextMenuEvent *e)
tabPtrElement _tabPtrSourceLin
Definition: TYEtatsWidget.h:96
tabPtrElement _tabPtrBatiment
Definition: TYEtatsWidget.h:93
TYCalcul * _pElement
Definition: TYEtatsWidget.h:81
TYEtatsWidget(TYCalcul *pElement, QWidget *_pParent)
virtual void apply()
QTableWidget * _tableSourceLin
Definition: TYEtatsWidget.h:95
QTableWidget * _tableBatiment
Definition: TYEtatsWidget.h:92
virtual void updateContent()
QTableWidget * _tableSource
Definition: TYEtatsWidget.h:86
QTabWidget * _tabWidget
Definition: TYEtatsWidget.h:84
TYElementWidget * _elmW
Definition: TYEtatsWidget.h:82
QTableWidget * _tableMachine
Definition: TYEtatsWidget.h:89