Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
gui
widgets
TYCourbeWidget.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_COURBE_WIDGET__
28
#define __TY_COURBE_WIDGET__
29
30
#include "
TYCourbeWidget.h
"
31
#include <QWidget>
32
33
class
TYSpectreWidget
;
34
39
class
TYCourbeWidget
:
public
QWidget
40
{
41
Q_OBJECT
42
43
// Methodes
44
public
:
48
TYCourbeWidget
(
TYSpectreWidget
* pSpectreWidget,
bool
dbType, QWidget* _pParent = NULL);
49
53
virtual
~TYCourbeWidget
();
54
58
void
setDbType
(
bool
dbType)
59
{
60
_dbType
= dbType;
61
};
62
66
void
print
();
67
68
protected
:
72
virtual
void
paintEvent
(QPaintEvent* event);
73
77
void
paintInto
(QPainter* painter,
int
w,
int
h);
78
79
private
:
80
TYSpectreWidget
*
_pSpectreWidget
;
81
bool
_dbType
;
82
};
83
84
#endif
// __TY_COURBE_WIDGET__
TYCourbeWidget.h
outil IHM pour une courbe (fichier header)
TYCourbeWidget
classe de l'objet IHM pour une courbe
Definition:
TYCourbeWidget.h:40
TYCourbeWidget::print
void print()
Definition:
TYCourbeWidget.cpp:48
TYCourbeWidget::_pSpectreWidget
TYSpectreWidget * _pSpectreWidget
Definition:
TYCourbeWidget.h:80
TYCourbeWidget::paintInto
void paintInto(QPainter *painter, int w, int h)
Definition:
TYCourbeWidget.cpp:108
TYCourbeWidget::~TYCourbeWidget
virtual ~TYCourbeWidget()
Definition:
TYCourbeWidget.cpp:46
TYCourbeWidget::paintEvent
virtual void paintEvent(QPaintEvent *event)
Definition:
TYCourbeWidget.cpp:96
TYCourbeWidget::_dbType
bool _dbType
Definition:
TYCourbeWidget.h:81
TYCourbeWidget::TYCourbeWidget
TYCourbeWidget(TYSpectreWidget *pSpectreWidget, bool dbType, QWidget *_pParent=NULL)
Definition:
TYCourbeWidget.cpp:39
TYCourbeWidget::setDbType
void setDbType(bool dbType)
Definition:
TYCourbeWidget.h:58
TYSpectreWidget
classe de l'objet IHM pour un spectre
Definition:
TYSpectreWidget.h:57
Generated on Mon Nov 27 2023 07:56:32 for Code_TYMPAN by
1.9.1