-
Notifications
You must be signed in to change notification settings - Fork 0
/
mosaicdetailsdlg.h
75 lines (66 loc) · 1.79 KB
/
mosaicdetailsdlg.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/***************************************************************************************************
*
* FILE: mosaicdetailsdlg.h
*
* CREATED: 13-05-2010
*
* AUTHOR: Benjamin Caspari (becaspari@googlemail.com)
*
* PURPOSE: dialog to set detailed options for a mosaic
*
* This program is licensed under the terms of the GPL Version 2
*
* Copyright 2010 by Benjamin Caspari
*
***************************************************************************************************/
#ifndef MOSAICDETAILSDLG_H
#define MOSAICDETAILSDLG_H
#include <QDialog>
#include <QString>
namespace Ui {
class MosaicDetailsDlg;
}
class MosaicDetailsDlg : public QDialog {
Q_OBJECT
public:
MosaicDetailsDlg(QWidget *parent, const QString &imageFile);
~MosaicDetailsDlg();
bool exitedCorrectly();
int tileWidth();
int tileHeight();
int tileCount();
bool cutEdges();
int alphaChannel();
bool minDistanceChecker();
int minDistance();
bool repeatTilesMaxChecker();
int repeatTilesMaxCount();
protected:
void changeEvent(QEvent *e);
private slots:
void tileWidthChanged();
void tileHeightChanged();
void aspectRatioChanged();
void updateResultLabel();
void renderButtonPressed();
void cancelButtonPressed();
void closeEvent(QCloseEvent *e);
private:
void updateValuesFromForms();
void writeSettings();
void readSettings();
Ui::MosaicDetailsDlg *ui;
QString m_imageFile;
QImage m_image;
int m_tileWidth;
int m_tileHeight;
int m_tileCount;
bool m_cutEdges;
int m_alphaChannel;
bool m_canceled;
bool m_minDistanceChecker;
int m_minDistance;
bool m_repeatTilesChecker;
int m_repeatTilesMax;
};
#endif // MOSAICDETAILSDLG_H