2020-09-27 00:34:38 +02:00
|
|
|
#ifndef PDFEXPORTDIALOG_H
|
|
|
|
#define PDFEXPORTDIALOG_H
|
2016-05-24 03:01:22 +02:00
|
|
|
|
|
|
|
#include <QDialog>
|
2016-05-27 22:45:58 +02:00
|
|
|
#include <QPrinter>
|
2016-12-07 21:38:36 +01:00
|
|
|
#include "units.h"
|
2016-05-24 03:01:22 +02:00
|
|
|
|
|
|
|
class QComboBox;
|
2016-05-25 23:27:07 +02:00
|
|
|
class QRadioButton;
|
2016-05-24 03:01:22 +02:00
|
|
|
class FileSelectWidget;
|
2020-10-06 21:41:23 +02:00
|
|
|
class MarginsFWidget;
|
2016-05-24 03:01:22 +02:00
|
|
|
|
2020-09-27 00:34:38 +02:00
|
|
|
struct PDFExport
|
|
|
|
{
|
2016-12-06 01:48:26 +01:00
|
|
|
QString fileName;
|
2020-12-22 22:09:09 +01:00
|
|
|
QPageSize::PageSizeId paperSize;
|
|
|
|
QPageLayout::Orientation orientation;
|
|
|
|
QMarginsF margins;
|
2017-08-28 17:48:46 +02:00
|
|
|
int resolution;
|
2016-12-06 01:48:26 +01:00
|
|
|
};
|
|
|
|
|
2020-09-27 00:34:38 +02:00
|
|
|
class PDFExportDialog : public QDialog
|
2016-05-24 03:01:22 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-09-27 00:34:38 +02:00
|
|
|
PDFExportDialog(PDFExport &exp, Units units, QWidget *parent = 0);
|
2016-05-24 03:01:22 +02:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void accept();
|
|
|
|
|
|
|
|
private:
|
2020-09-27 00:34:38 +02:00
|
|
|
PDFExport &_export;
|
2016-05-27 22:45:58 +02:00
|
|
|
|
2020-09-27 00:34:38 +02:00
|
|
|
Units _units;
|
2016-05-24 03:01:22 +02:00
|
|
|
FileSelectWidget *_fileSelect;
|
|
|
|
QComboBox *_paperSize;
|
2017-08-28 17:48:46 +02:00
|
|
|
QComboBox *_resolution;
|
2016-05-25 23:27:07 +02:00
|
|
|
QRadioButton *_portrait;
|
|
|
|
QRadioButton *_landscape;
|
2020-10-06 21:41:23 +02:00
|
|
|
MarginsFWidget *_margins;
|
2016-05-24 03:01:22 +02:00
|
|
|
};
|
|
|
|
|
2020-09-27 00:34:38 +02:00
|
|
|
#endif // PDFEXPORTDIALOG_H
|