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-01-18 16:20:14 +00:00
|
|
|
explicit DialogRender(QWidget *parent);
|
|
|
|
~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;
|
2012-01-18 16:20:14 +00:00
|
|
|
QScrollArea* scroll;
|
2012-01-06 16:09:03 +00:00
|
|
|
QProgressBar* progress;
|
|
|
|
int progress_value;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QThread* render_thread;
|
2012-01-25 17:31:36 +00:00
|
|
|
Renderer renderer;
|
2012-01-06 16:09:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _PAYSAGES_QT_DIALOGRENDER_H_
|