-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathEdgeApp.h
More file actions
68 lines (55 loc) · 1.51 KB
/
EdgeApp.h
File metadata and controls
68 lines (55 loc) · 1.51 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
/**
* \file EdgeApp.h
* \brief EdgeApp wxWidgets application header file.
* \details This file is part of student project. Some parts of code may be
* influenced by various examples found on internet.
* \author resset <silentdemon@gmail.com>
* \date 2006-2012
* \copyright GNU General Public License, http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
*/
#ifndef _EDGEAPP_H_
#define _EDGEAPP_H_
class EdgeImageFrame : public wxFrame
{
public:
EdgeImageFrame(wxFrame *parent, const wxBitmap& bitmap, wxString title);
void OnEraseBackground(wxEraseEvent& WXUNUSED(event));
void OnPaint(wxPaintEvent& WXUNUSED(event));
private:
wxBitmap m_bitmap;
DECLARE_EVENT_TABLE()
};
class EdgeAppCanvas: public wxScrolledWindow
{
public:
wxBitmap image_original;
wxBitmap image_detected;
EdgeAppCanvas(wxWindow *parent, wxWindowID, const wxPoint &pos, const wxSize &size);
void OnPaint(wxPaintEvent &event);
void loadImage(wxImage image);
private:
DECLARE_EVENT_TABLE()
};
class EdgeAppFrame: public wxFrame
{
public:
EdgeAppCanvas *ea_canvas;
EdgeAppFrame();
void OnOpenFile(wxCommandEvent &event);
void OnAbout(wxCommandEvent &event);
void OnQuit(wxCommandEvent &event);
private:
wxImage image;
wxButton *WxButtonCanny;
void WxButtonCannyClick(wxCommandEvent& event);
private:
DECLARE_DYNAMIC_CLASS(EdgeAppFrame)
DECLARE_EVENT_TABLE()
};
class EdgeApp : public wxApp
{
public:
virtual bool OnInit();
};
DECLARE_APP(EdgeApp)
#endif // #ifndef _EDGEAPP_H_