• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
rotationjob_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2006 by Tobias Koenig <tokoe@kde.org> *
3  * *
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  ***************************************************************************/
9 
10 #ifndef _OKULAR_ROTATIONJOB_P_H_
11 #define _OKULAR_ROTATIONJOB_P_H_
12 
13 #include <QtGui/QImage>
14 #include <QtGui/QTransform>
15 
16 #include <threadweaver/Job.h>
17 
18 #include "core/global.h"
19 #include "core/area.h"
20 
21 namespace Okular {
22 
23 class DocumentObserver;
24 class PagePrivate;
25 
26 class RotationJob : public ThreadWeaver::Job
27 {
28  Q_OBJECT
29 
30  public:
31  RotationJob( const QImage &image, Rotation oldRotation, Rotation newRotation, DocumentObserver *observer );
32 
33  void setPage( PagePrivate * pd );
34  void setRect( const NormalizedRect &rect );
35 
36  QImage image() const;
37  Rotation rotation() const;
38  DocumentObserver *observer() const;
39  PagePrivate * page() const;
40  NormalizedRect rect() const;
41 
42  static QTransform rotationMatrix( Rotation from, Rotation to );
43 
44  protected:
45  virtual void run();
46 
47  private:
48  const QImage mImage;
49  Rotation mOldRotation;
50  Rotation mNewRotation;
51  DocumentObserver *mObserver;
52  QImage mRotatedImage;
53  PagePrivate * m_pd;
54  NormalizedRect mRect;
55 };
56 
57 }
58 
59 #endif
Okular::Rotation
Rotation
A rotation.
Definition: global.h:44
Okular::PagePrivate
Definition: page_p.h:55
Okular::RotationJob::rotationMatrix
static QTransform rotationMatrix(Rotation from, Rotation to)
Definition: rotationjob.cpp:69
Okular::RotationJob::setPage
void setPage(PagePrivate *pd)
Definition: rotationjob.cpp:22
Okular::NormalizedRect
NormalizedRect is a helper class which stores the coordinates of a normalized rect, which is a rectangle of.
Definition: area.h:105
area.h
Okular::RotationJob::setRect
void setRect(const NormalizedRect &rect)
Definition: rotationjob.cpp:27
global.h
Okular::RotationJob::rect
NormalizedRect rect() const
Definition: rotationjob.cpp:52
Okular::RotationJob::image
QImage image() const
Definition: rotationjob.cpp:32
Okular::RotationJob::rotation
Rotation rotation() const
Definition: rotationjob.cpp:37
Okular::RotationJob::page
PagePrivate * page() const
Definition: rotationjob.cpp:47
Okular::DocumentObserver
Base class for objects being notified when something changes.
Definition: observer.h:28
Okular::RotationJob
Definition: rotationjob_p.h:26
Okular::RotationJob::observer
DocumentObserver * observer() const
Definition: rotationjob.cpp:42
Okular::RotationJob::run
virtual void run()
Definition: rotationjob.cpp:57
Okular::RotationJob::RotationJob
RotationJob(const QImage &image, Rotation oldRotation, Rotation newRotation, DocumentObserver *observer)
Definition: rotationjob.cpp:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal