2
|
1 // Filename : bprint.h
|
6
|
2 // Last Change: 18-Sep-2013.
|
2
|
3 //
|
|
4 #ifndef __BPRINT_H__
|
|
5 #define __BPRINT_H__
|
|
6
|
|
7 #include "common.h"
|
|
8
|
|
9 class FrameBatchPrint : public wxDialog
|
|
10 {
|
|
11 DECLARE_EVENT_TABLE()
|
|
12 private:
|
|
13 wxRect m_mask1;
|
|
14 wxRect m_mask2;
|
|
15 wxRect m_mask3;
|
|
16 wxRect m_mask1old;
|
|
17 wxRect m_mask2old;
|
|
18 wxRect m_mask3old;
|
5
|
19 long m_lmin, m_lmax;
|
|
20 double m_zmin, m_zmax;
|
2
|
21
|
|
22 protected:
|
|
23 wxGrid* m_grid;
|
|
24 wxButton* m_buttonClear;
|
|
25 wxButton* m_buttonPrint;
|
|
26 wxButton* m_buttonClose;
|
|
27
|
|
28 public:
|
|
29 FrameBatchPrint( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
|
|
30 ~FrameBatchPrint();
|
|
31
|
|
32 void SetGridReadOnly( void );
|
6
|
33 void WriteLog( wxArrayString logline );
|
2
|
34 void OnInput( wxGridEvent& event );
|
|
35 void OnClear( wxCommandEvent& WXUNUSED(event) );
|
|
36 void OnPrint( wxCommandEvent& WXUNUSED(event) );
|
5
|
37 void SetMark( long lmin, long lmax, double zmin, double zmax ) { m_lmin = lmin; m_lmax = lmax; m_zmin = zmin; m_zmax = zmax; }
|
2
|
38
|
|
39 // Accessor
|
|
40 void SetMask1( wxRect rect ) { m_mask1 = rect; }
|
|
41 void SetMask2( wxRect rect ) { m_mask2 = rect; }
|
|
42 void SetMask3( wxRect rect ) { m_mask3 = rect; }
|
|
43 void SetMask1Old( wxRect rect ) { m_mask1old = rect; }
|
|
44 void SetMask2Old( wxRect rect ) { m_mask2old = rect; }
|
|
45 void SetMask3Old( wxRect rect ) { m_mask3old = rect; }
|
|
46 };
|
|
47
|
|
48 enum
|
|
49 {
|
|
50 ID_BPCLEAR = wxID_HIGHEST + 50,
|
|
51 ID_BPPRINT,
|
|
52 };
|
|
53
|
|
54 #endif //__BPRINT_H__
|
|
55
|