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

« back to all changes in this revision

Viewing changes to lib/redeyereduction/redeyereductiontool.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 2007 Aurélien Gâteau <agateau@kde.org>
28
28
// KDE
29
29
 
30
30
// Local
31
 
#include <lib/abstractimageviewtool.h>
 
31
#include <lib/documentview/abstractrasterimageviewtool.h>
32
32
 
33
 
namespace Gwenview {
 
33
namespace Gwenview
 
34
{
34
35
 
35
36
class AbstractImageOperation;
36
 
class ImageView;
 
37
class RasterImageView;
37
38
 
38
39
struct RedEyeReductionToolPrivate;
39
 
class GWENVIEWLIB_EXPORT RedEyeReductionTool : public AbstractImageViewTool {
40
 
        Q_OBJECT
 
40
class GWENVIEWLIB_EXPORT RedEyeReductionTool : public AbstractRasterImageViewTool
 
41
{
 
42
    Q_OBJECT
41
43
public:
42
 
        enum Status {
43
 
                NotSet,
44
 
                Adjusting
45
 
        };
46
 
 
47
 
        RedEyeReductionTool(ImageView* parent);
48
 
        ~RedEyeReductionTool();
49
 
 
50
 
        virtual void paint(QPainter*);
51
 
 
52
 
        virtual void mousePressEvent(QMouseEvent*);
53
 
        virtual void mouseMoveEvent(QMouseEvent*);
54
 
 
55
 
        virtual void toolActivated();
56
 
        virtual void toolDeactivated();
 
44
    enum Status {
 
45
        NotSet,
 
46
        Adjusting
 
47
    };
 
48
 
 
49
    RedEyeReductionTool(RasterImageView* parent);
 
50
    ~RedEyeReductionTool();
 
51
 
 
52
    virtual void paint(QPainter*);
 
53
 
 
54
    virtual void mousePressEvent(QGraphicsSceneMouseEvent*);
 
55
    virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
 
56
    virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent*);
 
57
 
 
58
    virtual void toolActivated();
 
59
 
 
60
    QWidget* widget() const;
57
61
 
58
62
Q_SIGNALS:
59
 
        void done();
60
 
        void imageOperationRequested(AbstractImageOperation*);
 
63
    void done();
 
64
    void imageOperationRequested(AbstractImageOperation*);
61
65
 
62
66
private Q_SLOTS:
63
 
        void setDiameter(int);
64
 
        void slotApplyClicked();
 
67
    void setDiameter(int);
 
68
    void slotApplyClicked();
65
69
 
66
70
private:
67
 
        RedEyeReductionToolPrivate* const d;
 
71
    RedEyeReductionToolPrivate* const d;
68
72
};
69
73
 
70
 
 
71
74
} // namespace
72
75
 
73
76
#endif /* REDEYEREDUCTIONTOOL_H */