1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 23:03:22 +02:00
GPXSee/src/GUI/pdfexportdialog.h
Martin Tůma 97bea8c56c Added support for Qt6
Removed support for Qt4 and Qt5 < 5.12
2020-12-22 22:09:09 +01:00

45 lines
747 B
C++

#ifndef PDFEXPORTDIALOG_H
#define PDFEXPORTDIALOG_H
#include <QDialog>
#include <QPrinter>
#include "units.h"
class QComboBox;
class QRadioButton;
class FileSelectWidget;
class MarginsFWidget;
struct PDFExport
{
QString fileName;
QPageSize::PageSizeId paperSize;
QPageLayout::Orientation orientation;
QMarginsF 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;
MarginsFWidget *_margins;
};
#endif // PDFEXPORTDIALOG_H