-
Notifications
You must be signed in to change notification settings - Fork 21
/
imageviewer.h
78 lines (56 loc) · 1.17 KB
/
imageviewer.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef IMAGEVIEWER_H
#define IMAGEVIEWER_H
#include <QMainWindow>
#include "imagewidget.h"
class QAction;
class QMenu;
class QMenuBar;
class QScrollArea;
class QScrollBar;
class QVBoxLayout;
class ImageViewer : public QMainWindow {
Q_OBJECT
public:
ImageViewer(QWidget* parent = 0);
~ImageViewer();
protected:
// void closeEvent(QCloseEvent *event);
private slots:
/**
* Load and display an image from file
*/
void open();
/**
* Save as, to the disk, displayed image
*/
void saveAs();
/**
* Apply median filter to image
*/
void medianFilter();
/**
* apply an Anisotropic diffusion filter to image
*/
void gradientAnisotropicDiffusionFilter();
/**
*
*/
void about();
private:
void createActions();
void createMenus();
void createStatusBar();
ImageWidget *imageWidget;
QAction *openAct;
QAction *saveAsAct;
QAction *exitAct;
QAction *aboutAct;
QAction *aboutQtAct;
QAction *medianFilterAct;
QAction *GADFilterAct;
QMenu *fileMenu;
QMenu *filterMenu;
QMenu *helpMenu;
QLabel *statusLabel;
};
#endif