mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
45 lines
747 B
C++
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
|