-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
askNewUiPictureDialog.h
60 lines (45 loc) · 1.27 KB
/
askNewUiPictureDialog.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
/* OpenBRF -- by marco tarini. Provided under GNU General Public License */
#ifndef ASKNEWUIPICTUREDIALOG_H
#define ASKNEWUIPICTUREDIALOG_H
#include <QDialog>
namespace Ui {
class AskNewUiPictureDialog;
}
class AskNewUiPictureDialog : public QDialog {
Q_OBJECT
public:
AskNewUiPictureDialog(QWidget *parent = 0);
~AskNewUiPictureDialog();
void setBrowsable(QString s);
public slots:
void resetFullScreen();
void resetNE(); void resetN(); void resetNW();
void resetE(); void resetC(); void resetW();
void resetSE(); void resetS(); void resetSW();
void resetActualPixels();
void updateMeasure();
void browse();
protected:
void changeEvent(QEvent *e);
private:
Ui::AskNewUiPictureDialog *ui;
void onUiChanged();
int toPixX(float x);
int toPixY(float x);
float toPerX(int x);
float toPerY(int x);
static bool measurePix;
void accept();
void showSizeAndPos();
void center(float relposX, float relposY);
QString path;
public:
int pixSx, pixSy;
QString ext;
static int overlayMode;
static float sx, sy, px, py;
static int mode;
static char name[999];
static bool replace;
};
#endif // ASKNEWUIPICTUREDIALOG_H