exporter: add ability to cancel exports (including a confirm to cancel if the

user closes the dialog mid-export)
This commit is contained in:
itsmattkc
2020-03-03 02:37:18 +11:00
parent 02909c6ba9
commit 0f5cd40c45
7 changed files with 112 additions and 30 deletions
+8
View File
@@ -11,6 +11,7 @@
#include "exportcodec.h"
#include "exportformat.h"
#include "exportvideotab.h"
#include "render/backend/exporter.h"
#include "widget/viewer/viewer.h"
class ExportDialog : public QDialog
@@ -48,6 +49,8 @@ private:
QLineEdit* filename_edit_;
QComboBox* format_combobox_;
Exporter* exporter_;
ExportVideoTab* video_tab_;
ExportAudioTab* audio_tab_;
@@ -59,6 +62,9 @@ private:
QWidget* preferences_area_;
QDialogButtonBox* buttons_;
QPushButton* export_cancel_btn_;
bool cancelled_;
enum Format {
kFormatDNxHD,
@@ -102,6 +108,8 @@ private slots:
void ExporterIsDone();
void CancelExport();
};
#endif // EXPORTDIALOG_H