Mercurial > mercurial > hgweb_searcher03.cgi
comparison include/param.h @ 5:bc2e2b304095
Clean up code.
author | pyon@macmini |
---|---|
date | Sat, 14 Sep 2013 08:54:47 +0900 |
parents | fdba695b99f1 |
children |
comparison
equal
deleted
inserted
replaced
4:fdba695b99f1 | 5:bc2e2b304095 |
---|---|
1 // Filename : param.h | 1 // Filename : param.h |
2 // Last Change: 11-Sep-2013. | 2 // Last Change: 13-Sep-2013. |
3 // | 3 // |
4 | 4 |
5 #ifndef __PARAM_H__ | 5 #ifndef __PARAM_H__ |
6 #define __PARAM_H__ | 6 #define __PARAM_H__ |
7 | 7 |
18 wxRect m_mask2; | 18 wxRect m_mask2; |
19 wxRect m_mask3; | 19 wxRect m_mask3; |
20 wxRect m_mask1old; | 20 wxRect m_mask1old; |
21 wxRect m_mask2old; | 21 wxRect m_mask2old; |
22 wxRect m_mask3old; | 22 wxRect m_mask3old; |
23 long m_lmin, m_lmax; | |
24 double m_zmin, m_zmax; | |
23 | 25 |
24 protected: | 26 protected: |
25 wxNotebook* m_notebook; | 27 wxNotebook* m_notebook; |
26 wxPanel* m_panel; | 28 wxPanel* m_panel; |
27 wxPanel* m_panelold; | 29 wxPanel* m_panelold; |
82 wxStaticText* m_staticTextLen; | 84 wxStaticText* m_staticTextLen; |
83 wxTextCtrl* m_textCtrlLMax; | 85 wxTextCtrl* m_textCtrlLMax; |
84 | 86 |
85 wxTextCtrl* m_textCtrlZMin; | 87 wxTextCtrl* m_textCtrlZMin; |
86 wxStaticText* m_staticTextZ; | 88 wxStaticText* m_staticTextZ; |
87 wxTextCtrl* m_textCtrlZmax; | 89 wxTextCtrl* m_textCtrlZMax; |
88 | 90 |
89 // | 91 // |
90 wxButton* m_buttonCancel; | 92 wxButton* m_buttonCancel; |
91 wxButton* m_buttonSet; | 93 wxButton* m_buttonSet; |
92 | 94 |
103 void SetMask2( wxRect rect ) { m_mask2 = rect; } | 105 void SetMask2( wxRect rect ) { m_mask2 = rect; } |
104 void SetMask3( wxRect rect ) { m_mask3 = rect; } | 106 void SetMask3( wxRect rect ) { m_mask3 = rect; } |
105 void SetMask1Old( wxRect rect ) { m_mask1old = rect; } | 107 void SetMask1Old( wxRect rect ) { m_mask1old = rect; } |
106 void SetMask2Old( wxRect rect ) { m_mask2old = rect; } | 108 void SetMask2Old( wxRect rect ) { m_mask2old = rect; } |
107 void SetMask3Old( wxRect rect ) { m_mask3old = rect; } | 109 void SetMask3Old( wxRect rect ) { m_mask3old = rect; } |
110 void SetMark( long lmin, long lmax, double zmin, double zmax ) { m_lmin = lmin; m_lmax = lmax; m_zmin = zmin; m_zmax = zmax; } | |
108 wxRect GetMask1() const { return m_mask1; } | 111 wxRect GetMask1() const { return m_mask1; } |
109 wxRect GetMask2() const { return m_mask2; } | 112 wxRect GetMask2() const { return m_mask2; } |
110 wxRect GetMask3() const { return m_mask3; } | 113 wxRect GetMask3() const { return m_mask3; } |
111 wxRect GetMask1Old() const { return m_mask1old; } | 114 wxRect GetMask1Old() const { return m_mask1old; } |
112 wxRect GetMask2Old() const { return m_mask2old; } | 115 wxRect GetMask2Old() const { return m_mask2old; } |
113 wxRect GetMask3Old() const { return m_mask3old; } | 116 wxRect GetMask3Old() const { return m_mask3old; } |
117 long GetLmin() const { return m_lmin; } | |
118 long GetLmax() const { return m_lmax; } | |
119 double GetZmin() const { return m_zmin; } | |
120 double GetZmax() const { return m_zmax; } | |
121 void SelectTAb( int n ) { m_notebook->ChangeSelection( n ); } | |
114 }; | 122 }; |
115 | 123 |
116 enum { | 124 enum { |
117 ID_SETPARAM = wxID_HIGHEST + 70, | 125 ID_SETPARAM = wxID_HIGHEST + 70, |
118 }; | 126 }; |