Mercurial > mercurial > hgweb_searcher03.cgi
comparison include/mask.h @ 2:c066fde99517
Added Batch Print Mode.
author | pyon@macmini |
---|---|
date | Fri, 23 Aug 2013 18:32:09 +0900 |
parents | 7b6dab24f4b8 |
children |
comparison
equal
deleted
inserted
replaced
1:7b6dab24f4b8 | 2:c066fde99517 |
---|---|
1 // Filename : mask.h | 1 // Filename : mask.h |
2 // Last Change: 04-Aug-2013. | 2 // Last Change: 14-Aug-2013. |
3 // | 3 // |
4 | 4 |
5 #ifndef __MASK_H__ | 5 #ifndef __MASK_H__ |
6 #define __MASK_H__ | 6 #define __MASK_H__ |
7 | 7 |
11 | 11 |
12 class MaskDialog : public wxDialog | 12 class MaskDialog : public wxDialog |
13 { | 13 { |
14 DECLARE_EVENT_TABLE() | 14 DECLARE_EVENT_TABLE() |
15 private: | 15 private: |
16 long x, y, w, h; | |
17 wxRect m_mask1; | |
18 wxRect m_mask2; | |
19 wxRect m_mask3; | |
20 wxRect m_mask1old; | |
21 wxRect m_mask2old; | |
22 wxRect m_mask3old; | |
16 | 23 |
17 protected: | 24 protected: |
25 wxNotebook* m_notebook; | |
26 wxPanel* m_panel; | |
27 wxPanel* m_panelold; | |
28 | |
18 wxStaticText* m_staticTextDummy0; | 29 wxStaticText* m_staticTextDummy0; |
19 wxStaticText* m_staticTextX; | 30 wxStaticText* m_staticTextX; |
20 wxStaticText* m_staticTextY; | 31 wxStaticText* m_staticTextY; |
21 wxStaticText* m_staticTextW; | 32 wxStaticText* m_staticTextW; |
22 wxStaticText* m_staticTextH; | 33 wxStaticText* m_staticTextH; |
37 wxTextCtrl* m_textCtrlM3x; | 48 wxTextCtrl* m_textCtrlM3x; |
38 wxTextCtrl* m_textCtrlM3y; | 49 wxTextCtrl* m_textCtrlM3y; |
39 wxTextCtrl* m_textCtrlM3w; | 50 wxTextCtrl* m_textCtrlM3w; |
40 wxTextCtrl* m_textCtrlM3h; | 51 wxTextCtrl* m_textCtrlM3h; |
41 | 52 |
53 wxStaticText* m_staticTextDummy0Old; | |
54 wxStaticText* m_staticTextXOld; | |
55 wxStaticText* m_staticTextYOld; | |
56 wxStaticText* m_staticTextWOld; | |
57 wxStaticText* m_staticTextHOld; | |
58 | |
59 wxStaticText* m_staticTextMask1Old; | |
60 wxTextCtrl* m_textCtrlM1xOld; | |
61 wxTextCtrl* m_textCtrlM1yOld; | |
62 wxTextCtrl* m_textCtrlM1wOld; | |
63 wxTextCtrl* m_textCtrlM1hOld; | |
64 | |
65 wxStaticText* m_staticTextMask2Old; | |
66 wxTextCtrl* m_textCtrlM2xOld; | |
67 wxTextCtrl* m_textCtrlM2yOld; | |
68 wxTextCtrl* m_textCtrlM2wOld; | |
69 wxTextCtrl* m_textCtrlM2hOld; | |
70 | |
71 wxStaticText* m_staticTextMask3Old; | |
72 wxTextCtrl* m_textCtrlM3xOld; | |
73 wxTextCtrl* m_textCtrlM3yOld; | |
74 wxTextCtrl* m_textCtrlM3wOld; | |
75 wxTextCtrl* m_textCtrlM3hOld; | |
76 | |
42 wxButton* m_buttonCancel; | 77 wxButton* m_buttonCancel; |
43 wxButton* m_buttonSet; | 78 wxButton* m_buttonSet; |
44 | 79 |
45 long x, y, w, h; | |
46 wxRect m_mask1; | |
47 wxRect m_mask2; | |
48 wxRect m_mask3; | |
49 | |
50 public: | 80 public: |
51 | 81 |
52 MaskDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | 82 MaskDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); |
53 ~MaskDialog(); | 83 ~MaskDialog(); |
54 | 84 |
57 | 87 |
58 // Accessor | 88 // Accessor |
59 void SetMask1( wxRect rect ) { m_mask1 = rect; } | 89 void SetMask1( wxRect rect ) { m_mask1 = rect; } |
60 void SetMask2( wxRect rect ) { m_mask2 = rect; } | 90 void SetMask2( wxRect rect ) { m_mask2 = rect; } |
61 void SetMask3( wxRect rect ) { m_mask3 = rect; } | 91 void SetMask3( wxRect rect ) { m_mask3 = rect; } |
92 void SetMask1Old( wxRect rect ) { m_mask1old = rect; } | |
93 void SetMask2Old( wxRect rect ) { m_mask2old = rect; } | |
94 void SetMask3Old( wxRect rect ) { m_mask3old = rect; } | |
62 wxRect GetMask1() const { return m_mask1; } | 95 wxRect GetMask1() const { return m_mask1; } |
63 wxRect GetMask2() const { return m_mask2; } | 96 wxRect GetMask2() const { return m_mask2; } |
64 wxRect GetMask3() const { return m_mask3; } | 97 wxRect GetMask3() const { return m_mask3; } |
98 wxRect GetMask1Old() const { return m_mask1old; } | |
99 wxRect GetMask2Old() const { return m_mask2old; } | |
100 wxRect GetMask3Old() const { return m_mask3old; } | |
65 }; | 101 }; |
66 | 102 |
67 enum { | 103 enum { |
68 ID_SETPARAM = wxID_HIGHEST + 70, | 104 ID_SETPARAM = wxID_HIGHEST + 70, |
69 }; | 105 }; |