2020-09-27 00:34:38 +02:00
|
|
|
#ifndef PNGEXPORTDIALOG_H
|
|
|
|
#define PNGEXPORTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2020-10-06 21:41:23 +02:00
|
|
|
#include <QMargins>
|
2020-09-27 00:34:38 +02:00
|
|
|
|
|
|
|
class FileSelectWidget;
|
2020-10-06 21:41:23 +02:00
|
|
|
class MarginsWidget;
|
2020-09-27 00:34:38 +02:00
|
|
|
class QSpinBox;
|
|
|
|
class QCheckBox;
|
|
|
|
|
|
|
|
struct PNGExport
|
|
|
|
{
|
|
|
|
QString fileName;
|
|
|
|
QSize size;
|
2020-10-06 21:41:23 +02:00
|
|
|
QMargins margins;
|
2020-09-27 00:34:38 +02:00
|
|
|
bool antialiasing;
|
|
|
|
};
|
|
|
|
|
|
|
|
class PNGExportDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
PNGExportDialog(PNGExport &exp, QWidget *parent = 0);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void accept();
|
|
|
|
|
|
|
|
private:
|
|
|
|
PNGExport &_export;
|
|
|
|
|
|
|
|
FileSelectWidget *_fileSelect;
|
|
|
|
QSpinBox *_width;
|
|
|
|
QSpinBox *_height;
|
2020-10-06 21:41:23 +02:00
|
|
|
MarginsWidget *_margins;
|
2020-09-27 00:34:38 +02:00
|
|
|
QCheckBox *_antialiasing;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PNGEXPORTDIALOG_H
|