Code_TYMPAN  4.4.0
Industrial site acoustic simulation
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:
81  bool _dbType;
82 };
83 
84 #endif // __TY_COURBE_WIDGET__
outil IHM pour une courbe (fichier header)
classe de l'objet IHM pour une courbe
TYSpectreWidget * _pSpectreWidget
void paintInto(QPainter *painter, int w, int h)
virtual ~TYCourbeWidget()
virtual void paintEvent(QPaintEvent *event)
TYCourbeWidget(TYSpectreWidget *pSpectreWidget, bool dbType, QWidget *_pParent=NULL)
void setDbType(bool dbType)
classe de l'objet IHM pour un spectre