leocad/qt/lc_renderdialog.h
Thomas Cujé 477dc1c616 Improve render dialog. Fixes #160
- improved layout
- shows errors correctly
- shows rendering progress
2019-03-10 01:17:24 +01:00

43 lines
683 B
C++

#pragma once
#include <QDialog>
namespace Ui {
class lcRenderDialog;
}
class lcRenderDialog : public QDialog
{
Q_OBJECT
public:
explicit lcRenderDialog(QWidget* Parent);
~lcRenderDialog();
public slots:
void reject();
void on_RenderButton_clicked();
void on_OutputBrowseButton_clicked();
void Update();
protected slots:
void ReadStdErr();
protected:
QString GetOutputFileName() const;
QString GetPOVFileName() const;
void CloseProcess();
bool PromptCancel();
void ShowResult();
#ifndef QT_NO_PROCESS
QProcess* mProcess;
#endif
QTimer mUpdateTimer;
QFile mOutputFile;
void* mOutputBuffer;
QImage mImage;
QStringList stdErrList;
Ui::lcRenderDialog* ui;
};