Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
gui
widgets
TYAcousticRectangleNodeWidget.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
21
// Added by qt3to4:
22
#include <QGridLayout>
23
24
#include "
Tympan/models/business/OLocalizator.h
"
25
#include "
Tympan/models/business/geoacoustic/TYAcousticRectangleNode.h
"
26
#include "
Tympan/gui/widgets/TYAcousticSurfaceNodeWidget.h
"
27
#include "
TYAcousticRectangleNodeWidget.h
"
28
29
#define TR(id) OLocalizator::getString("TYAcousticRectangleNodeWidget"
, (id))
30
31
TYAcousticRectangleNodeWidget::TYAcousticRectangleNodeWidget
(
TYAcousticRectangleNode
* pElement,
32
QWidget* _pParent
/*=NULL*/
)
33
:
TYWidget
(pElement, _pParent)
34
{
35
_elmW
=
new
TYAcousticSurfaceNodeWidget
(pElement,
this
);
36
37
resize(300, 680);
38
setWindowTitle(
TR
(
"id_caption"
));
39
_acousticRectangleNodeLayout
=
new
QGridLayout();
40
setLayout(
_acousticRectangleNodeLayout
);
41
42
_acousticRectangleNodeLayout
->addWidget(
_elmW
, 0, 0);
43
}
44
45
TYAcousticRectangleNodeWidget::~TYAcousticRectangleNodeWidget
() {}
46
47
void
TYAcousticRectangleNodeWidget::updateContent
()
48
{
49
_elmW
->
updateContent
();
50
}
51
52
void
TYAcousticRectangleNodeWidget::apply
()
53
{
54
_elmW
->
apply
();
55
56
emit
modified
();
57
}
OLocalizator.h
TR
#define TR(id)
Definition:
TYAcousticRectangleNodeWidget.cpp:29
TYAcousticRectangleNodeWidget.h
outil IHM pour un ensemble de rectangles acoustiques (fichier header)
TYAcousticRectangleNode.h
TYAcousticSurfaceNodeWidget.h
outil IHM pour un ensemble de surfaces acoustiques (fichier header)
TYAcousticRectangleNodeWidget::_acousticRectangleNodeLayout
QGridLayout * _acousticRectangleNodeLayout
Definition:
TYAcousticRectangleNodeWidget.h:80
TYAcousticRectangleNodeWidget::apply
virtual void apply()
Definition:
TYAcousticRectangleNodeWidget.cpp:52
TYAcousticRectangleNodeWidget::updateContent
virtual void updateContent()
Definition:
TYAcousticRectangleNodeWidget.cpp:47
TYAcousticRectangleNodeWidget::_elmW
TYAcousticSurfaceNodeWidget * _elmW
Definition:
TYAcousticRectangleNodeWidget.h:79
TYAcousticRectangleNodeWidget::TYAcousticRectangleNodeWidget
TYAcousticRectangleNodeWidget(TYAcousticRectangleNode *pElement, QWidget *_pParent=NULL)
Definition:
TYAcousticRectangleNodeWidget.cpp:31
TYAcousticRectangleNodeWidget::~TYAcousticRectangleNodeWidget
virtual ~TYAcousticRectangleNodeWidget()
Definition:
TYAcousticRectangleNodeWidget.cpp:45
TYAcousticRectangleNode
Definition:
TYAcousticRectangleNode.h:31
TYAcousticSurfaceNodeWidget
classe de l'objet IHM pour ensemble de surfaces acoustiques
Definition:
TYAcousticSurfaceNodeWidget.h:49
TYAcousticSurfaceNodeWidget::updateContent
virtual void updateContent()
Definition:
TYAcousticSurfaceNodeWidget.cpp:101
TYAcousticSurfaceNodeWidget::apply
virtual void apply()
Definition:
TYAcousticSurfaceNodeWidget.cpp:125
TYWidget
classe de l'objet IHM pour un objet metier de type TYElement
Definition:
TYWidget.h:43
TYWidget::modified
void modified()
Generated on Wed May 13 2026 12:41:18 for Code_TYMPAN by
1.9.1