Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
gui
widgets
TYPointWidget.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_POINT_WIDGET__
28
#define __TY_POINT_WIDGET__
29
30
#include "
TYWidget.h
"
31
#include <qlayout.h>
32
// Added by qt3to4:
33
#include <QGridLayout>
34
#include <QLabel>
35
36
class
TYPoint
;
37
class
TYLineEdit
;
38
class
QGridLayout;
39
class
QLabel;
40
class
QGroupBox;
41
class
TYElementWidget
;
42
class
TYColorInterfaceWidget
;
43
48
class
TYPointWidget
:
public
TYWidget
49
{
50
Q_OBJECT
51
52
TY_DECL_METIER_WIDGET
(
TYPoint
)
53
54
// Methodes
55
public
:
59
TYPointWidget
(
TYPoint
* pElement, QWidget* _pParent = NULL);
63
virtual
~TYPointWidget
();
64
71
void
setLayoutSpacing
(
int
margin,
int
spacing)
72
{
73
_pointLayout
->setContentsMargins(margin, margin, margin, margin);
74
_pointLayout
->setSpacing(spacing);
75
}
76
77
void
disableZ
();
78
void
enableZ
();
79
80
public
slots:
81
virtual
void
updateContent
();
82
virtual
void
apply
();
83
84
// Membres
85
protected
:
86
QGroupBox*
_groupBox
;
87
QLabel*
_labelX
;
88
QLabel*
_labelZ
;
89
QLabel*
_labelY
;
90
TYLineEdit
*
_lineEditX
;
91
TYLineEdit
*
_lineEditY
;
92
TYLineEdit
*
_lineEditZ
;
93
94
QGridLayout*
_pointLayout
;
95
QGridLayout*
_groupBoxLayout
;
96
97
// TYElementWidget * _elmW;
98
TYColorInterfaceWidget
*
_colorW
;
99
};
100
101
#endif
// __TY_POINT_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
TYColorInterfaceWidget
classe de l'objet IHM pour l'objet ColorInterface
Definition:
TYColorInterfaceWidget.h:46
TYElementWidget
classe de l'objet IHM pour un element
Definition:
TYElementWidget.h:46
TYLineEdit
Definition:
TYLineEdit.h:33
TYPointWidget
classe de l'objet IHM pour un point
Definition:
TYPointWidget.h:49
TYPointWidget::_lineEditZ
TYLineEdit * _lineEditZ
Definition:
TYPointWidget.h:92
TYPointWidget::disableZ
void disableZ()
Definition:
TYPointWidget.cpp:103
TYPointWidget::_groupBox
QGroupBox * _groupBox
Definition:
TYPointWidget.h:86
TYPointWidget::enableZ
void enableZ()
Definition:
TYPointWidget.cpp:108
TYPointWidget::setLayoutSpacing
void setLayoutSpacing(int margin, int spacing)
Definition:
TYPointWidget.h:71
TYPointWidget::apply
virtual void apply()
Definition:
TYPointWidget.cpp:91
TYPointWidget::_colorW
TYColorInterfaceWidget * _colorW
Definition:
TYPointWidget.h:98
TYPointWidget::_pointLayout
QGridLayout * _pointLayout
Definition:
TYPointWidget.h:94
TYPointWidget::_labelX
QLabel * _labelX
Definition:
TYPointWidget.h:87
TYPointWidget::_labelY
QLabel * _labelY
Definition:
TYPointWidget.h:89
TYPointWidget::~TYPointWidget
virtual ~TYPointWidget()
Definition:
TYPointWidget.cpp:79
TYPointWidget::TYPointWidget
TYPointWidget(TYPoint *pElement, QWidget *_pParent=NULL)
Definition:
TYPointWidget.cpp:34
TYPointWidget::_labelZ
QLabel * _labelZ
Definition:
TYPointWidget.h:88
TYPointWidget::_groupBoxLayout
QGridLayout * _groupBoxLayout
Definition:
TYPointWidget.h:95
TYPointWidget::updateContent
virtual void updateContent()
Definition:
TYPointWidget.cpp:81
TYPointWidget::_lineEditX
TYLineEdit * _lineEditX
Definition:
TYPointWidget.h:90
TYPointWidget::_lineEditY
TYLineEdit * _lineEditY
Definition:
TYPointWidget.h:91
TYPoint
Definition:
TYPoint.h:31
TYWidget
classe de l'objet IHM pour un objet metier de type TYElement
Definition:
TYWidget.h:43
Generated on Mon Nov 27 2023 07:56:32 for Code_TYMPAN by
1.9.1