Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
gui
widgets
TYAcousticRectangleNodeWidget.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_ACOUSTICRECTANGLENODE_WIDGET__
28
#define __TY_ACOUSTICRECTANGLENODE_WIDGET__
29
30
#include "
TYWidget.h
"
31
#include <qlayout.h>
32
// Added by qt3to4:
33
#include <QGridLayout>
34
#include <QLabel>
35
36
class
TYAcousticRectangleNode
;
37
class
TYAcousticSurfaceNodeWidget
;
38
class
QGridLayout;
39
44
class
TYAcousticRectangleNodeWidget
:
public
TYWidget
45
{
46
Q_OBJECT
47
48
TY_DECL_METIER_WIDGET
(
TYAcousticRectangleNode
)
49
50
// Methodes
51
public
:
55
TYAcousticRectangleNodeWidget
(
TYAcousticRectangleNode
* pElement, QWidget* _pParent = NULL);
59
virtual
~TYAcousticRectangleNodeWidget
();
60
67
void
setLayoutSpacing
(
int
margin,
int
spacing)
68
{
69
_acousticRectangleNodeLayout
->setContentsMargins(margin, margin, margin, margin);
70
_acousticRectangleNodeLayout
->setSpacing(spacing);
71
}
72
73
public
slots:
74
virtual
void
updateContent
();
75
virtual
void
apply
();
76
77
// Membres
78
protected
:
79
TYAcousticSurfaceNodeWidget
*
_elmW
;
80
QGridLayout*
_acousticRectangleNodeLayout
;
81
};
82
83
#endif
// __TY_ACOUSTICRECTANGLENODE_WIDGET__
TYWidget.h
outil IHM pour un objet metier de type TYElement (fichier header)
TY_DECL_METIER_WIDGET
#define TY_DECL_METIER_WIDGET(classname)
Definition:
TYWidget.h:31
TYAcousticRectangleNodeWidget
Classe de l'objet IHM pour un ensemble de rectangles acoustiques.
Definition:
TYAcousticRectangleNodeWidget.h:45
TYAcousticRectangleNodeWidget::_acousticRectangleNodeLayout
QGridLayout * _acousticRectangleNodeLayout
Definition:
TYAcousticRectangleNodeWidget.h:80
TYAcousticRectangleNodeWidget::apply
virtual void apply()
Definition:
TYAcousticRectangleNodeWidget.cpp:52
TYAcousticRectangleNodeWidget::setLayoutSpacing
void setLayoutSpacing(int margin, int spacing)
Definition:
TYAcousticRectangleNodeWidget.h:67
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
TYWidget
classe de l'objet IHM pour un objet metier de type TYElement
Definition:
TYWidget.h:43
Generated on Thu Jan 29 2026 14:35:53 for Code_TYMPAN by
1.9.1