00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef EXPORT_DIALOG_H
00023 #define EXPORT_DIALOG_H
00024
00025 #include "ui_ExportDialog.h"
00026
00027 #include <QDialog>
00028
00029 class ExportFormatOptionsWidget;
00030 class Project;
00031 class Sheet;
00032 struct ExportSpecification;
00033
00034 class ExportDialog : public QDialog, protected Ui::ExportDialog
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 ExportDialog(QWidget* parent = 0);
00040 ~ExportDialog();
00041
00042 void set_was_closed();
00043
00044 protected:
00045 void closeEvent(QCloseEvent* event);
00046
00047 private:
00048 Project* m_project;
00049 ExportSpecification* m_exportSpec;
00050 ExportFormatOptionsWidget* m_formatOptionsWidget;
00051
00052 bool is_safe_to_export();
00053
00054 int m_lastSheetExported;
00055 bool m_wasClosed;
00056 int m_copyNumber;
00057
00058 private slots:
00059 void set_project(Project* project);
00060 void update_sheet_progress(int progress);
00061 void update_overall_progress(int progress);
00062 void render_finished();
00063 void set_exporting_sheet(Sheet* sheet);
00064
00065 void on_fileSelectButton_clicked();
00066 void on_startButton_clicked();
00067 void on_abortButton_clicked();
00068 void on_closeButton_clicked();
00069
00070 void reject();
00071 };
00072
00073 #endif
00074
00075
00076
00077