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

« back to all changes in this revision

Viewing changes to lib/imagescaler.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:
32
32
class QRect;
33
33
class QRegion;
34
34
 
35
 
namespace Gwenview {
 
35
namespace Gwenview
 
36
{
36
37
 
37
38
class Document;
38
39
 
39
40
struct ImageScalerPrivate;
40
 
class GWENVIEWLIB_EXPORT ImageScaler : public QObject {
41
 
        Q_OBJECT
 
41
class GWENVIEWLIB_EXPORT ImageScaler : public QObject
 
42
{
 
43
    Q_OBJECT
42
44
public:
43
 
        ImageScaler(QObject* parent=0);
44
 
        ~ImageScaler();
45
 
        void setDocument(KSharedPtr<Document>);
46
 
        void setZoom(qreal);
47
 
        void setDestinationRegion(const QRegion&);
 
45
    ImageScaler(QObject* parent = 0);
 
46
    ~ImageScaler();
 
47
    void setDocument(KSharedPtr<Document>);
 
48
    void setZoom(qreal);
 
49
    void setDestinationRegion(const QRegion&);
48
50
 
49
 
        void setTransformationMode(Qt::TransformationMode);
 
51
    void setTransformationMode(Qt::TransformationMode);
50
52
 
51
53
Q_SIGNALS:
52
 
        void scaledRect(int left, int top, const QImage&);
 
54
    void scaledRect(int left, int top, const QImage&);
53
55
 
54
56
private:
55
 
        ImageScalerPrivate * const d;
56
 
        void scaleRect(const QRect&);
 
57
    ImageScalerPrivate * const d;
 
58
    void scaleRect(const QRect&);
57
59
 
58
60
private Q_SLOTS:
59
 
        void doScale();
 
61
    void doScale();
60
62
};
61
63
 
62
64
} // namespace
63
65
 
64
 
 
65
66
#endif /* IMAGESCALER_H */