comparison include/bprint.h @ 5:bc2e2b304095

Clean up code.
author pyon@macmini
date Sat, 14 Sep 2013 08:54:47 +0900
parents c066fde99517
children 76db82822e73
comparison
equal deleted inserted replaced
4:fdba695b99f1 5:bc2e2b304095
1 // Filename : bprint.h 1 // Filename : bprint.h
2 // Last Change: 23-Aug-2013. 2 // Last Change: 13-Sep-2013.
3 // 3 //
4 #ifndef __BPRINT_H__ 4 #ifndef __BPRINT_H__
5 #define __BPRINT_H__ 5 #define __BPRINT_H__
6 6
7 #include "common.h" 7 #include "common.h"
14 wxRect m_mask2; 14 wxRect m_mask2;
15 wxRect m_mask3; 15 wxRect m_mask3;
16 wxRect m_mask1old; 16 wxRect m_mask1old;
17 wxRect m_mask2old; 17 wxRect m_mask2old;
18 wxRect m_mask3old; 18 wxRect m_mask3old;
19 long m_lmin, m_lmax;
20 double m_zmin, m_zmax;
19 21
20 protected: 22 protected:
21 wxGrid* m_grid; 23 wxGrid* m_grid;
22 wxButton* m_buttonClear; 24 wxButton* m_buttonClear;
23 wxButton* m_buttonPrint; 25 wxButton* m_buttonPrint;
29 31
30 void SetGridReadOnly( void ); 32 void SetGridReadOnly( void );
31 void OnInput( wxGridEvent& event ); 33 void OnInput( wxGridEvent& event );
32 void OnClear( wxCommandEvent& WXUNUSED(event) ); 34 void OnClear( wxCommandEvent& WXUNUSED(event) );
33 void OnPrint( wxCommandEvent& WXUNUSED(event) ); 35 void OnPrint( wxCommandEvent& WXUNUSED(event) );
36 void SetMark( long lmin, long lmax, double zmin, double zmax ) { m_lmin = lmin; m_lmax = lmax; m_zmin = zmin; m_zmax = zmax; }
34 37
35 // Accessor 38 // Accessor
36 void SetMask1( wxRect rect ) { m_mask1 = rect; } 39 void SetMask1( wxRect rect ) { m_mask1 = rect; }
37 void SetMask2( wxRect rect ) { m_mask2 = rect; } 40 void SetMask2( wxRect rect ) { m_mask2 = rect; }
38 void SetMask3( wxRect rect ) { m_mask3 = rect; } 41 void SetMask3( wxRect rect ) { m_mask3 = rect; }