comparison include/mask.h @ 1:7b6dab24f4b8

Gui parts complete.
author pyon@macmini
date Sun, 04 Aug 2013 21:42:49 +0900
parents 0c0701a935f8
children c066fde99517
comparison
equal deleted inserted replaced
0:0c0701a935f8 1:7b6dab24f4b8
1 // Filename : mask.h 1 // Filename : mask.h
2 // Last Change: 21-Jul-2013. 2 // Last Change: 04-Aug-2013.
3 // 3 //
4 4
5 #ifndef __MASK_H__ 5 #ifndef __MASK_H__
6 #define __MASK_H__ 6 #define __MASK_H__
7 7
40 wxTextCtrl* m_textCtrlM3h; 40 wxTextCtrl* m_textCtrlM3h;
41 41
42 wxButton* m_buttonCancel; 42 wxButton* m_buttonCancel;
43 wxButton* m_buttonSet; 43 wxButton* m_buttonSet;
44 44
45 wxFileConfig *config; 45 long x, y, w, h;
46 wxString conf_file; 46 wxRect m_mask1;
47 wxRect m_mask2;
48 wxRect m_mask3;
47 49
48 public: 50 public:
49 51
50 MaskDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); 52 MaskDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
51 ~MaskDialog(); 53 ~MaskDialog();
52 54
53 void GetParams( void ); 55 void OnSet( wxCommandEvent& WXUNUSED(event) );
54 void SetParams( 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; }
55 }; 65 };
56 66
57 enum { 67 enum {
58 ID_SETPARAM = wxID_HIGHEST + 70, 68 ID_SETPARAM = wxID_HIGHEST + 70,
59 }; 69 };