Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
gui
widgets
TYHistoWidget.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_HISTO_WIDGET__
28
#define __TY_HISTO_WIDGET__
29
30
#include "
TYHistoWidget.h
"
31
#include <QWidget>
32
33
class
TYSpectreWidget
;
34
39
class
TYHistoWidget
:
public
QWidget
40
{
41
Q_OBJECT
42
43
// Methodes
44
public
:
48
TYHistoWidget
(
TYSpectreWidget
* pSpectreWidget,
bool
dbType, QWidget* _pParent = NULL);
49
53
virtual
~TYHistoWidget
();
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_HISTO_WIDGET__
TYHistoWidget.h
outil IHM pour un histogramme (fichier header)
TYHistoWidget
classe de l'outil IHM pour un histogramme
Definition:
TYHistoWidget.h:40
TYHistoWidget::_pSpectreWidget
TYSpectreWidget * _pSpectreWidget
Definition:
TYHistoWidget.h:80
TYHistoWidget::paintInto
void paintInto(QPainter *painter, int w, int h)
Definition:
TYHistoWidget.cpp:106
TYHistoWidget::TYHistoWidget
TYHistoWidget(TYSpectreWidget *pSpectreWidget, bool dbType, QWidget *_pParent=NULL)
Definition:
TYHistoWidget.cpp:38
TYHistoWidget::_dbType
bool _dbType
Definition:
TYHistoWidget.h:81
TYHistoWidget::print
void print()
Definition:
TYHistoWidget.cpp:47
TYHistoWidget::setDbType
void setDbType(bool dbType)
Definition:
TYHistoWidget.h:58
TYHistoWidget::paintEvent
virtual void paintEvent(QPaintEvent *event)
Definition:
TYHistoWidget.cpp:94
TYHistoWidget::~TYHistoWidget
virtual ~TYHistoWidget()
Definition:
TYHistoWidget.cpp:45
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