~ubuntu-branches/ubuntu/saucy/gwenview/saucy-proposed

« back to all changes in this revision

Viewing changes to lib/transformimageoperation.cpp

  • Committer: Package Import Robot
  • Author(s): Michał Zając
  • Date: 2013-06-28 17:58:23 UTC
  • mfrom: (1.1.29)
  • Revision ID: package-import@ubuntu.com-20130628175823-jw1lr549kc7nz057
Tags: 4:4.10.90-0ubuntu1
New upstream bet release

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
// Local
31
31
#include "document/abstractdocumenteditor.h"
32
 
#include "document/documentjob.h"
33
32
 
34
33
namespace Gwenview
35
34
{
39
38
    Orientation mOrientation;
40
39
};
41
40
 
42
 
class TransformJob : public ThreadedDocumentJob
43
 
{
44
 
public:
45
 
    TransformJob(Orientation orientation)
46
 
        : mOrientation(orientation)
47
 
    {}
48
 
 
49
 
    virtual void threadedStart()
50
 
    {
51
 
        if (!checkDocumentEditor()) {
52
 
            return;
53
 
        }
54
 
        document()->editor()->applyTransformation(mOrientation);
55
 
        setError(NoError);
 
41
TransformJob::TransformJob(Orientation orientation)
 
42
: mOrientation(orientation)
 
43
{
 
44
 
 
45
}
 
46
 
 
47
void TransformJob::threadedStart()
 
48
{
 
49
    if (!checkDocumentEditor()) {
 
50
        return;
56
51
    }
57
 
 
58
 
private:
59
 
    Orientation mOrientation;
60
 
};
 
52
    document()->editor()->applyTransformation(mOrientation);
 
53
    setError(NoError);
 
54
}
61
55
 
62
56
TransformImageOperation::TransformImageOperation(Orientation orientation)
63
57
: d(new TransformImageOperationPrivate)