Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYAltimetrieWidget.cpp
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 
25 #include "TYElementWidget.h"
26 // Added by qt3to4:
27 #include <QGridLayout>
28 
29 #include "TYAltimetrieWidget.h"
30 
31 #define TR(id) OLocalizator::getString("TYAltimetrieWidget", (id))
32 
33 TYAltimetrieWidget::TYAltimetrieWidget(TYAltimetrie* pElement, QWidget* _pParent /*=NULL*/)
34  : TYWidget(pElement, _pParent)
35 {
36 
37  _elmW = new TYElementWidget(pElement, this);
38 
39  resize(300, 220);
40  setWindowTitle(TR("id_caption"));
41  _altimetrieLayout = new QGridLayout();
42  setLayout(_altimetrieLayout);
43 
44  _altimetrieLayout->addWidget(_elmW, 0, 0);
45  updateContent();
46 }
47 
49 
51 {
53 }
54 
56 {
57  _elmW->apply();
58 
59  emit modified();
60 }
#define TR(id)
outil IHM pour une altimetrie (fichier header)
outil IHM pour un element (fichier header)
TYAltimetrieWidget(TYAltimetrie *pElement, QWidget *_pParent=NULL)
TYElementWidget * _elmW
QGridLayout * _altimetrieLayout
virtual void updateContent()
Assigne une altitude a chaque point de l'espace.
Definition: TYAltimetrie.h:35
classe de l'objet IHM pour un element
virtual void apply()
virtual void updateContent()
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43
void modified()