2007-03-24 10:47:22 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _OKULAR_PAGECONTROLLER_P_H_
|
|
|
|
#define _OKULAR_PAGECONTROLLER_P_H_
|
|
|
|
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
2007-07-04 16:55:33 +00:00
|
|
|
namespace ThreadWeaver {
|
|
|
|
class Job;
|
|
|
|
}
|
|
|
|
|
2007-03-24 10:47:22 +00:00
|
|
|
namespace Okular {
|
|
|
|
|
|
|
|
class Page;
|
2007-07-04 16:55:33 +00:00
|
|
|
class RotationJob;
|
2007-03-24 10:47:22 +00:00
|
|
|
|
|
|
|
class PageController : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Constructor. No NOT use this, NEVER! Use the static self() instead.
|
|
|
|
*/
|
|
|
|
PageController();
|
|
|
|
|
|
|
|
~PageController();
|
|
|
|
|
|
|
|
static PageController * self();
|
|
|
|
|
2007-07-04 16:55:33 +00:00
|
|
|
void addRotationJob( RotationJob *job );
|
|
|
|
|
2007-03-24 10:47:22 +00:00
|
|
|
signals:
|
|
|
|
void rotationFinished( int page );
|
|
|
|
|
|
|
|
private slots:
|
2007-07-04 16:55:33 +00:00
|
|
|
void imageRotationDone(ThreadWeaver::Job*);
|
2007-09-14 23:14:53 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void initWeaver();
|
2007-03-24 10:47:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|