-
Notifications
You must be signed in to change notification settings - Fork 51
/
pngexport.h
46 lines (33 loc) · 822 Bytes
/
pngexport.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
/** Copyright (c) 2017, EtlamGit */
#ifndef PNGEXPORT_H
#define PNGEXPORT_H
#include <QDialog>
namespace Ui {
class PngExport;
}
class PngExport : public QDialog
{
Q_OBJECT
public:
explicit PngExport(QWidget *parent = 0);
~PngExport();
void setBoundsFromChunks(int top, int left, int bottom, int right);
void setBoundsFromBlocks(int top, int left, int bottom, int right);
int getTop() const;
int getLeft() const;
int getBottom() const;
int getRight() const;
bool getChunkChecker() const;
bool getRegionChecker() const;
private:
Ui::PngExport *ui;
int snapDistance;
private slots:
void checkTop(int value);
void checkLeft(int value);
void checkBottom(int value);
void checkRight(int value);
QString getLabelText(int value);
void setSingleStep();
};
#endif // PNGEXPORT_H