-
Notifications
You must be signed in to change notification settings - Fork 1
/
bir.h
62 lines (54 loc) · 1.28 KB
/
bir.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
#ifndef KDRE_H
#define KDRE_H
#define CRP_CTR 0
#define CRP_TOP_LEFT 1
#define CRP_TOP_RIGHT 2
#define CRP_BOT_LEFT 3
#define CRP_BOT_RIGHT 4
#include <QPushButton>
#include <QVector>
#include <QMainWindow>
#include <QLabel>
#include <QFileInfo>
#include "selectitem.h"
namespace Ui {
class BIR;
}
class BIR : public QMainWindow
{
Q_OBJECT
public:
explicit BIR(QWidget *parent = 0);
void populateLists(QVector<QFileInfo>);
QVector<QFileInfo> buildListFromDir(QString);
bool slidersLinked = false;
~BIR();
private:
Ui::BIR *ui;
QPushButton *m_browse_in;
QPushButton *m_browse_out;
QStringList browseDialog(bool);
void setNewDimensions(SelectItem*);
void setNewDimensions();
void setupAspectRatio(bool);
QImage rotateImage(QImage*);
QImage cropImage(QImage*, int, int);
void pixelOff(bool);
int getDiffDirIndex();
QString getItemSubdir(SelectItem*, int);
void sliderMovedSetText(QLabel*, int);
private slots:
void browseInput();
void browseOutput();
void pixelResize();
void ratioResize();
void sliderMoved(int);
void resetUi();
void removeItem();
void selectImage();
void startResize();
void aspectRatioChange(int);
void removeAll();
void toggleLinkedSliders();
};
#endif // KDRE_H