1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-25 12:15:54 +01:00
GPXSee/src/GUI/exportdialog.h

51 lines
840 B
C
Raw Normal View History

2016-05-24 03:01:22 +02:00
#ifndef EXPORTDIALOG_H
#define EXPORTDIALOG_H
#include <QDialog>
2016-05-27 22:45:58 +02:00
#include <QPrinter>
2016-12-06 01:48:26 +01:00
#include "margins.h"
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;
2016-05-27 22:45:58 +02:00
class QDoubleSpinBox;
2016-05-24 03:01:22 +02:00
2016-12-06 01:48:26 +01:00
struct Export {
QString fileName;
QPrinter::PaperSize paperSize;
QPrinter::Orientation orientation;
MarginsF margins;
int resolution;
2016-12-07 21:38:36 +01:00
Units units;
2016-12-06 01:48:26 +01:00
};
2016-05-24 03:01:22 +02:00
class ExportDialog : public QDialog
{
Q_OBJECT
public:
2016-12-06 01:48:26 +01:00
ExportDialog(Export *exp, QWidget *parent = 0);
2016-05-24 03:01:22 +02:00
public slots:
void accept();
private:
bool checkFile();
2016-12-06 01:48:26 +01:00
Export *_export;
2016-05-27 22:45:58 +02:00
2016-05-24 03:01:22 +02:00
FileSelectWidget *_fileSelect;
QComboBox *_paperSize;
QComboBox *_resolution;
2016-05-25 23:27:07 +02:00
QRadioButton *_portrait;
QRadioButton *_landscape;
2016-05-27 22:45:58 +02:00
QDoubleSpinBox *_topMargin;
QDoubleSpinBox *_bottomMargin;
QDoubleSpinBox *_leftMargin;
QDoubleSpinBox *_rightMargin;
2016-05-24 03:01:22 +02:00
};
#endif // EXPORTDIALOG_H