2012-01-06 16:09:03 +00:00
|
|
|
#ifndef _PAYSAGES_QT_DIALOGRENDER_H_
|
|
|
|
#define _PAYSAGES_QT_DIALOGRENDER_H_
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QThread>
|
|
|
|
#include <QProgressBar>
|
2012-01-18 16:20:14 +00:00
|
|
|
#include <QScrollArea>
|
2012-01-25 17:31:36 +00:00
|
|
|
#include "../lib_paysages/renderer.h"
|
2012-01-06 16:09:03 +00:00
|
|
|
|
|
|
|
class DialogRender : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2012-04-02 19:38:59 +00:00
|
|
|
explicit DialogRender(QWidget *parent, Renderer* renderer);
|
2012-01-18 16:20:14 +00:00
|
|
|
~DialogRender();
|
2012-01-25 17:31:36 +00:00
|
|
|
|
2012-01-18 16:20:14 +00:00
|
|
|
void startRender(int quality, int width, int height);
|
|
|
|
void loadLastRender();
|
2012-01-25 17:31:36 +00:00
|
|
|
|
2012-01-06 16:09:03 +00:00
|
|
|
QImage* pixbuf;
|
|
|
|
QWidget* area;
|
|
|
|
QProgressBar* progress;
|
|
|
|
int progress_value;
|
2012-04-02 19:38:59 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void applyRenderSize(int width, int height);
|
2012-01-06 16:09:03 +00:00
|
|
|
|
|
|
|
private:
|
2012-04-02 19:38:59 +00:00
|
|
|
QScrollArea* scroll;
|
2012-01-06 16:09:03 +00:00
|
|
|
QThread* render_thread;
|
2012-04-02 19:38:59 +00:00
|
|
|
Renderer* _renderer;
|
2012-01-06 16:09:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _PAYSAGES_QT_DIALOGRENDER_H_
|