~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.1/examples/realtime_plot/mainwindow.h

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _MAINWINDOW_H_
2
 
#define _MAINWINDOW_H_ 1
3
 
 
4
 
#include <qmainwindow.h>
5
 
#if QT_VERSION < 0x040000
6
 
#include <qtoolbutton.h>
7
 
#else
8
 
#include <qaction.h>
9
 
#endif
10
 
 
11
 
class QSpinBox;
12
 
class QPushButton;
13
 
class RandomPlot;
14
 
class Counter;
15
 
 
16
 
class MainWindow: public QMainWindow
17
 
{
18
 
    Q_OBJECT
19
 
public:
20
 
    MainWindow();
21
 
 
22
 
private slots:
23
 
    void showRunning(bool);
24
 
    void appendPoints(bool);
25
 
 
26
 
private:
27
 
    QToolBar *toolBar();
28
 
    void initWhatsThis();
29
 
 
30
 
private:
31
 
    Counter *d_randomCount;
32
 
    Counter *d_timerCount;
33
 
#if QT_VERSION < 0x040000
34
 
    QToolButton *d_startBtn;
35
 
    QToolButton *d_clearBtn;
36
 
#else
37
 
    QAction *d_startAction;
38
 
    QAction *d_clearAction;
39
 
#endif
40
 
 
41
 
    RandomPlot *d_plot;
42
 
};
43
 
 
44
 
#endif