#ifndef PDFEXPORTDIALOG_H #define PDFEXPORTDIALOG_H #include #include #include "margins.h" #include "units.h" class QComboBox; class QRadioButton; class FileSelectWidget; class QDoubleSpinBox; struct PDFExport { QString fileName; QPrinter::PaperSize paperSize; QPrinter::Orientation orientation; MarginsF margins; int resolution; }; class PDFExportDialog : public QDialog { Q_OBJECT public: PDFExportDialog(PDFExport &exp, Units units, QWidget *parent = 0); public slots: void accept(); private: PDFExport &_export; Units _units; FileSelectWidget *_fileSelect; QComboBox *_paperSize; QComboBox *_resolution; QRadioButton *_portrait; QRadioButton *_landscape; QDoubleSpinBox *_topMargin; QDoubleSpinBox *_bottomMargin; QDoubleSpinBox *_leftMargin; QDoubleSpinBox *_rightMargin; }; #endif // PDFEXPORTDIALOG_H