-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphotosaver.h
45 lines (36 loc) · 924 Bytes
/
photosaver.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef PHOTOSAVER_H
#define PHOTOSAVER_H
#include <QDialog>
#include <QImage>
#include <QPixmap>
#include <string>
namespace Ui {
class PhotoSaver;
}
class PhotoSaver : public QDialog
{
Q_OBJECT
public:
explicit PhotoSaver(QWidget *parent = 0);
~PhotoSaver();
void set_photo(const QImage& image);
void set_used_size(unsigned int w, unsigned int h, double centerX, double centerY);
private slots:
void on_PhotoSaver_finished(int result);
void on_horizontalSlider_valueChanged(int value);
void on_RenderButton_clicked();
signals:
void finished();
void specialRender(double centerX, double centerY, double scale, QSize size);
private:
Ui::PhotoSaver *ui;
unsigned int cellSize;
unsigned int mapWidth;
unsigned int mapHeight;
double CenterX;
double CenterY;
bool correctFilename;
QImage image;
std::string filename;
};
#endif // PHOTOSAVER_H