Michaël Lemaire
f91ed2c7f3
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@221 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
28 lines
548 B
C++
28 lines
548 B
C++
#ifndef _PAYSAGES_QT_DIALOGRENDER_H_
|
|
#define _PAYSAGES_QT_DIALOGRENDER_H_
|
|
|
|
#include <QDialog>
|
|
#include <QThread>
|
|
#include <QProgressBar>
|
|
|
|
class DialogRender : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DialogRender(QWidget *parent, int quality, int width, int height);
|
|
QImage* pixbuf;
|
|
QWidget* area;
|
|
QProgressBar* progress;
|
|
int progress_value;
|
|
|
|
public slots:
|
|
virtual void reject();
|
|
|
|
protected:
|
|
virtual void closeEvent(QCloseEvent* e);
|
|
|
|
private:
|
|
QThread* render_thread;
|
|
};
|
|
|
|
#endif // _PAYSAGES_QT_DIALOGRENDER_H_
|