~ubuntu-branches/ubuntu/trusty/bibletime/trusty

« back to all changes in this revision

Viewing changes to src/frontend/keychooser/cscrollerwidgetset.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Marsden
  • Date: 2009-11-18 17:30:00 UTC
  • mfrom: (1.3.4 upstream) (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091118173000-endkhjz5qai88tvr
Tags: 2.4-1
* New upstream version 2.4
* debian/control: 
  - Replace incorrect bibletime-data Depends on lib4qt-gui
    with bibletime Depends on libqtgui4 (>= 4.4.0). (Closes: #556209).
  - Add Build-depends: on zlib1g-dev and libcurl4-gnutls-dev 
    (Closes: #556805).

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
*
8
8
**********/
9
9
 
10
 
 
11
 
 
12
10
#ifndef CSCROLLERWIDGETSET_H
13
11
#define CSCROLLERWIDGETSET_H
14
12
 
15
 
 
16
13
#include <QWidget>
17
14
 
18
15
 
 
16
class CScrollButton;
 
17
class QString;
 
18
class QToolButton;
19
19
class QVBoxLayout;
20
 
class QToolButton;
21
 
class QString;
22
 
 
23
 
class CScrollButton;
24
20
 
25
21
/**
26
22
 * This class implements the Scroller Widget-set, which
29
25
  * @author The BibleTime team
30
26
  */
31
27
class CScrollerWidgetSet : public QWidget {
32
 
        Q_OBJECT
33
 
public:
34
 
        /**
35
 
        * the constructor
36
 
        */
37
 
        CScrollerWidgetSet(QWidget *parent=0);
38
 
        /**
39
 
        * Sets the tooltips for the given entries using the parameters as text.
40
 
        */
41
 
        void setToolTips( const QString nextEntry, const QString scrollButton, const QString previousEntry);
42
 
 
43
 
signals:
44
 
        /**
45
 
        * is emitted to proceed to some other entry relative to the 
46
 
        * current, indicated by the int value
47
 
        */
48
 
        void change(int count);
49
 
 
50
 
        /**
51
 
        * These emit when the scroll button is pressed or released
52
 
        */
53
 
        void scroller_pressed();
54
 
        void scroller_released();
55
 
 
56
 
protected:
57
 
 
58
 
        virtual void wheelEvent( QWheelEvent* e );
59
 
 
60
 
        QToolButton* btn_up;
61
 
        QToolButton* btn_down;
62
 
        CScrollButton* btn_fx;
63
 
 
64
 
protected slots:
65
 
        void slotLock();
66
 
        void slotUnlock();
67
 
        void slotUpClick();
68
 
        void slotDownClick();
69
 
        void slotScroller(int);
70
 
 
71
 
private:
72
 
        QVBoxLayout *m_layout;
 
28
        Q_OBJECT
 
29
    public:
 
30
        /**
 
31
        * the constructor
 
32
        */
 
33
        CScrollerWidgetSet(QWidget *parent = 0);
 
34
        /**
 
35
        * Sets the tooltips for the given entries using the parameters as text.
 
36
        */
 
37
        void setToolTips( const QString nextEntry, const QString scrollButton, const QString previousEntry);
 
38
 
 
39
    signals:
 
40
        /**
 
41
        * is emitted to proceed to some other entry relative to the
 
42
        * current, indicated by the int value
 
43
        */
 
44
        void change(int count);
 
45
 
 
46
        /**
 
47
        * These emit when the scroll button is pressed or released
 
48
        */
 
49
        void scroller_pressed();
 
50
        void scroller_released();
 
51
 
 
52
    protected:
 
53
 
 
54
        virtual void wheelEvent( QWheelEvent* e );
 
55
 
 
56
        QToolButton* btn_up;
 
57
        QToolButton* btn_down;
 
58
        CScrollButton* btn_fx;
 
59
 
 
60
    protected slots:
 
61
        void slotLock();
 
62
        void slotUnlock();
 
63
        void slotUpClick();
 
64
        void slotDownClick();
 
65
        void slotScroller(int);
 
66
 
 
67
    private:
 
68
        QVBoxLayout *m_layout;
73
69
 
74
70
};
75
71