1 /***************************************************************************
2 * Copyright (C) 2006 by Tobias Koenig <tokoe@kde.org> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _OKULAR_ROTATIONJOB_P_H_
11 #define _OKULAR_ROTATIONJOB_P_H_
13 #include <QtGui/QImage>
14 #include <QtGui/QMatrix>
16 #include <threadweaver/Job.h>
18 #include "core/global.h"
24 class RotationJob
: public ThreadWeaver::Job
29 RotationJob( const QImage
&image
, Rotation oldRotation
, Rotation newRotation
, int id
);
31 void setPage( PagePrivate
* pd
);
34 Rotation
rotation() const;
36 PagePrivate
* page() const;
38 static QMatrix
rotationMatrix( Rotation from
, Rotation to
);
45 Rotation mOldRotation
;
46 Rotation mNewRotation
;