~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/zoomslider.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2009 Aurélien Gâteau <agateau@kde.org>
33
33
class QAction;
34
34
class QSlider;
35
35
 
36
 
namespace Gwenview {
 
36
namespace Gwenview
 
37
{
37
38
 
38
39
struct ZoomSliderPrivate;
39
40
/**
42
43
 * Their behavior can be changed with setZoomInAction() and
43
44
 * setZoomOutAction().
44
45
 */
45
 
class GWENVIEWLIB_EXPORT ZoomSlider : public QWidget {
46
 
        Q_OBJECT
 
46
class GWENVIEWLIB_EXPORT ZoomSlider : public QWidget
 
47
{
 
48
    Q_OBJECT
47
49
public:
48
 
        ZoomSlider(QWidget* parent=0);
49
 
        ~ZoomSlider();
50
 
 
51
 
        int value() const;
52
 
 
53
 
        QSlider* slider() const;
54
 
 
55
 
        void setZoomInAction(QAction*);
56
 
 
57
 
        void setZoomOutAction(QAction*);
 
50
    ZoomSlider(QWidget* parent = 0);
 
51
    ~ZoomSlider();
 
52
 
 
53
    int value() const;
 
54
 
 
55
    QSlider* slider() const;
 
56
 
 
57
    void setZoomInAction(QAction*);
 
58
 
 
59
    void setZoomOutAction(QAction*);
58
60
 
59
61
public Q_SLOTS:
60
 
        void setValue(int);
61
 
 
62
 
        void setMinimum(int);
63
 
 
64
 
        void setMaximum(int);
 
62
    void setValue(int);
 
63
 
 
64
    void setMinimum(int);
 
65
 
 
66
    void setMaximum(int);
65
67
 
66
68
Q_SIGNALS:
67
 
        int valueChanged(int);
 
69
    int valueChanged(int);
68
70
 
69
71
private Q_SLOTS:
70
 
        void slotActionTriggered(int actionTriggered);
71
 
        void zoomOut();
72
 
        void zoomIn();
 
72
    void slotActionTriggered(int actionTriggered);
 
73
    void zoomOut();
 
74
    void zoomIn();
73
75
 
74
76
private:
75
 
        ZoomSliderPrivate* const d;
 
77
    ZoomSliderPrivate* const d;
76
78
};
77
79
 
78
 
 
79
80
} // namespace
80
81
 
81
82
#endif /* ZOOMSLIDER_H */