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

« back to all changes in this revision

Viewing changes to lib/crop/cropwidget.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>
31
31
// Local
32
32
#include <lib/document/document.h>
33
33
 
34
 
namespace Gwenview {
 
34
namespace Gwenview
 
35
{
35
36
 
36
37
class CropTool;
37
 
class ImageView;
 
38
class RasterImageView;
38
39
 
39
40
struct CropWidgetPrivate;
40
 
class GWENVIEWLIB_EXPORT CropWidget : public QWidget {
41
 
        Q_OBJECT
 
41
class GWENVIEWLIB_EXPORT CropWidget : public QWidget
 
42
{
 
43
    Q_OBJECT
42
44
public:
43
 
        CropWidget(QWidget* parent, ImageView*, CropTool*);
44
 
        ~CropWidget();
 
45
    CropWidget(QWidget* parent, RasterImageView*, CropTool*);
 
46
    ~CropWidget();
45
47
 
46
48
Q_SIGNALS:
47
 
        void cropRequested();
 
49
    void cropRequested();
 
50
    void done();
48
51
 
49
52
private Q_SLOTS:
50
 
        void slotPositionChanged();
51
 
        void slotWidthChanged();
52
 
        void slotHeightChanged();
53
 
        void setCropRect(const QRect& rect);
 
53
    void slotPositionChanged();
 
54
    void slotWidthChanged();
 
55
    void slotHeightChanged();
 
56
    void setCropRect(const QRect& rect);
54
57
 
55
 
        void slotRatioComboBoxEditTextChanged();
56
 
        void slotRatioComboBoxActivated();
57
 
        void applyRatioConstraint();
 
58
    void slotRatioComboBoxEditTextChanged();
 
59
    void slotRatioComboBoxActivated();
 
60
    void applyRatioConstraint();
58
61
 
59
62
private:
60
 
        CropWidgetPrivate* const d;
 
63
    CropWidgetPrivate* const d;
61
64
};
62
65
 
63
 
 
64
66
} // namespace
65
67
 
66
68
#endif /* CROPWIDGET_H */