-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
89 lines (78 loc) · 1.82 KB
/
mainwindow.h
File metadata and controls
89 lines (78 loc) · 1.82 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtWidgets/QFileDialog>
#include <QtDebug>
#include <QtGui/QMouseEvent>
#include <QtMath>
#include "simpleaver.h"
#include "adaptaver.h"
#include "curver.h"
#include "sharper.h"
#include "edger.h"
#include "colorer.h"
#include "bilaterator.h"
#include "helpwindow.h"
#include "aboutwindow.h"
#include <QDesktopWidget>
class SimpleAver;
class AdaptAver;
class Curver;
class Sharper;
class Edger;
class Colorer;
class Bilaterator;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
QPixmap doCut(QImage *picture, int y);
QPixmap doCutVert(QImage *picture, int a);
void receiveResult(QImage picture);
void setMaxProgress(int value);
void setProgress(int value);
QPixmap makeGist(QImage &greyPic, int mode);
void drawCurveOnGist(QList<int> sourceArray);
QList<int> retrieveAray();
void setupEverything(QImage image, QImage imageScaled);
QDesktopWidget desktop;
QImage reduceSize(QImage picture);
private:
Ui::MainWindow *ui;
QImage image;
QImage result;
QImage output;
QImage imageScaled;
QImage resultScaled;
int array[256];
QPixmap sourceGist, resultGist;
QList<int> funcArray;
int maxWidth;
int maxHeight;
SimpleAver* sAver;
AdaptAver* aAver;
Curver* curver;
Sharper* sharper;
Edger* edger;
Colorer* colorer;
Bilaterator* bilaterator;
int cutx,cuty;
HelpWindow* whatIsThis;
AboutWindow* aboutThis;
private slots:
void loadImage();
void saveImage();
void showImage(QImage *picture);
void vSliderChanged(int value);
void hSliderChanged(int value);
void radio();
void saveSlot();
void makeHelp();
void makeAbout();
};
#endif // MAINWINDOW_H