COPASI API  4.16.103
CQTSSATimeScaleWidget.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 #ifndef CQTSSATIMESCALEWIDGET_H
12 #define CQTSSATIMESCALEWIDGET_H
13 
14 #include <QtGui/QWidget>
15 #include <QtGui/QLayout>
16 #include <QtGui/QPaintEvent>
17 #include <QtGui/QVBoxLayout>
18 #include "utilities/CVector.h"
19 #include <QtGui/QSlider>
20 #include <QtGui/QPainter>
21 
22 class PaintWidget : public QWidget
23 {
24  Q_OBJECT
25 
26 public:
27  PaintWidget(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0);
28  ~PaintWidget();
29 
30  void paintTimeScale(int select);
31 
33  bool mClear;
34 
35 protected:
36  void paintEvent(QPaintEvent *);
37 
38 private:
40 };
41 
42 class CQTSSATimeScaleWidget : public QWidget
43 {
44  Q_OBJECT
45 
46 public:
47  CQTSSATimeScaleWidget(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0);
49 
51  void clearWidget();
52 
53 public slots:
54  void changedInterval();
55 
56 private:
57  QVBoxLayout * mpVLayout;
59  QSlider * mpSlider;
60 };
61 
62 #endif // CQTSSATIMESCALEWIDGET_H
PaintWidget(QWidget *parent=0, const char *name=0, Qt::WFlags fl=0)
void paintEvent(QPaintEvent *)
void paintTimeScale(CVector< C_FLOAT64 > vector)
CQTSSATimeScaleWidget(QWidget *parent=0, const char *name=0, Qt::WFlags fl=0)
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
void paintTimeScale(int select)
CVector< C_FLOAT64 > mVector