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-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();
|
|
|
|
|
|
|
|
void startRender(int quality, int width, int height);
|
|
|
|
void loadLastRender();
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _PAYSAGES_QT_DIALOGRENDER_H_
|