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

« back to all changes in this revision

Viewing changes to examples/realtime/scrollbar.h

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2011-06-10 11:22:47 UTC
  • mfrom: (1.1.6 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110610112247-0i1019vvmzaq6p86
Tags: 6.0.0-1
* New upstream release (Closes: #624107):
  - drop Qt3 support. (Closes: #604379, #626868)
* Register documentation with doc-base. (Closes: #626567)
* Drop patches:
  - 01_makefiles.diff
  - 02_add_missing_warnings.diff
  - 03_qwt_branch_pull_r544.diff
* Add qwt_install_paths.patch to fix the hardcoded installation paths.
* Update debian/control:
  - drop libqt3-mt-dev build dependency.
  - bump Standards-Version to 3.9.2 (no changes).
  - drop Qt3 related packages.
  - due to bump soname (and as we dropper Qt3 support):
    - libqwt5-qt4-dev -> libqwt-dev
    - libqwt5-qt4 -> libqwt6
    - libqwt5-doc -> libqwt-doc
* Update debian/copyright file.
* Update debian/rules: drop Qt3 packages support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _SCROLLBAR_H
 
2
#define _SCROLLBAR_H 1
 
3
 
 
4
#include <qscrollbar.h>
 
5
 
 
6
class ScrollBar: public QScrollBar
 
7
{
 
8
    Q_OBJECT
 
9
 
 
10
public:
 
11
    ScrollBar(QWidget *parent = NULL);
 
12
    ScrollBar(Qt::Orientation, QWidget *parent = NULL);
 
13
    ScrollBar(double minBase, double maxBase,       
 
14
        Qt::Orientation o, QWidget *parent = NULL);
 
15
 
 
16
    void setInverted(bool);
 
17
    bool isInverted() const;
 
18
 
 
19
    double minBaseValue() const;
 
20
    double maxBaseValue() const;
 
21
 
 
22
    double minSliderValue() const;
 
23
    double maxSliderValue() const;
 
24
 
 
25
    int extent() const;
 
26
 
 
27
Q_SIGNALS:
 
28
    void sliderMoved(Qt::Orientation, double, double);
 
29
    void valueChanged(Qt::Orientation, double, double);
 
30
 
 
31
public Q_SLOTS:
 
32
    virtual void setBase(double min, double max);
 
33
    virtual void moveSlider(double min, double max);
 
34
 
 
35
protected:
 
36
    void sliderRange(int value, double &min, double &max) const;
 
37
    int mapToTick(double) const;
 
38
    double mapFromTick(int) const;
 
39
 
 
40
private Q_SLOTS:
 
41
    void catchValueChanged(int value);
 
42
    void catchSliderMoved(int value);
 
43
 
 
44
private:
 
45
    void init();
 
46
 
 
47
    bool d_inverted;
 
48
    double d_minBase;
 
49
    double d_maxBase;
 
50
    int d_baseTicks;
 
51
};
 
52
 
 
53
#endif