0
|
1 // Filename : mask.h
|
1
|
2 // Last Change: 04-Aug-2013.
|
0
|
3 //
|
|
4
|
|
5 #ifndef __MASK_H__
|
|
6 #define __MASK_H__
|
|
7
|
|
8 #include "common.h"
|
|
9 #include "wx/config.h"
|
|
10 #include "wx/fileconf.h"
|
|
11
|
|
12 class MaskDialog : public wxDialog
|
|
13 {
|
|
14 DECLARE_EVENT_TABLE()
|
|
15 private:
|
|
16
|
|
17 protected:
|
|
18 wxStaticText* m_staticTextDummy0;
|
|
19 wxStaticText* m_staticTextX;
|
|
20 wxStaticText* m_staticTextY;
|
|
21 wxStaticText* m_staticTextW;
|
|
22 wxStaticText* m_staticTextH;
|
|
23
|
|
24 wxStaticText* m_staticTextMask1;
|
|
25 wxTextCtrl* m_textCtrlM1x;
|
|
26 wxTextCtrl* m_textCtrlM1y;
|
|
27 wxTextCtrl* m_textCtrlM1w;
|
|
28 wxTextCtrl* m_textCtrlM1h;
|
|
29
|
|
30 wxStaticText* m_staticTextMask2;
|
|
31 wxTextCtrl* m_textCtrlM2x;
|
|
32 wxTextCtrl* m_textCtrlM2y;
|
|
33 wxTextCtrl* m_textCtrlM2w;
|
|
34 wxTextCtrl* m_textCtrlM2h;
|
|
35
|
|
36 wxStaticText* m_staticTextMask3;
|
|
37 wxTextCtrl* m_textCtrlM3x;
|
|
38 wxTextCtrl* m_textCtrlM3y;
|
|
39 wxTextCtrl* m_textCtrlM3w;
|
|
40 wxTextCtrl* m_textCtrlM3h;
|
|
41
|
|
42 wxButton* m_buttonCancel;
|
|
43 wxButton* m_buttonSet;
|
|
44
|
1
|
45 long x, y, w, h;
|
|
46 wxRect m_mask1;
|
|
47 wxRect m_mask2;
|
|
48 wxRect m_mask3;
|
0
|
49
|
|
50 public:
|
|
51
|
|
52 MaskDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
|
|
53 ~MaskDialog();
|
|
54
|
1
|
55 void OnSet( wxCommandEvent& WXUNUSED(event) );
|
|
56 void LoadParams( void );
|
|
57
|
|
58 // Accessor
|
|
59 void SetMask1( wxRect rect ) { m_mask1 = rect; }
|
|
60 void SetMask2( wxRect rect ) { m_mask2 = rect; }
|
|
61 void SetMask3( wxRect rect ) { m_mask3 = rect; }
|
|
62 wxRect GetMask1() const { return m_mask1; }
|
|
63 wxRect GetMask2() const { return m_mask2; }
|
|
64 wxRect GetMask3() const { return m_mask3; }
|
0
|
65 };
|
|
66
|
|
67 enum {
|
|
68 ID_SETPARAM = wxID_HIGHEST + 70,
|
|
69 };
|
|
70
|
|
71 #endif //__MASK_H__
|
|
72
|