-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdialogsize.h
More file actions
50 lines (31 loc) · 956 Bytes
/
dialogsize.h
File metadata and controls
50 lines (31 loc) · 956 Bytes
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
#ifndef DIALOGSIZE_H
#define DIALOGSIZE_H
#include <QDialog>
namespace Ui {
class DialogSize;
}
class DialogSize : public QDialog
{
Q_OBJECT
public:
explicit DialogSize(QWidget *parent = nullptr, int pixW =0, int pixH =0, double Zoom =1.0);
~DialogSize();
int returned; // 1 = resize 2 = scale
int pixWW, pixHH;
private slots:
void on_newHeight_lineEdit_textEdited(const QString &arg1);
void on_newWidth_lineEdit_textEdited(const QString &arg1);
void on_wPerc_lineEdit_textEdited(const QString &arg1);
void on_hPerc_lineEdit_textEdited(const QString &arg1);
void on_resizeButton_clicked();
void on_scaleButton_clicked();
void on_createSelectionButton_clicked();
void saveSelData();
void getRatio(int aw, int ah);
void on_scaleButton_2_clicked();
private:
Ui::DialogSize *ui;
QString preTextW, preTextH, prePercW, prePercH;
double dZoom;
};
#endif // DIALOGSIZE_H