Mercurial > mercurial > hgweb_searcher03.cgi
annotate include/bprint.h @ 18:a8e6e5769e3b
Small fixes.
| author | pyon@macmini |
|---|---|
| date | Sat, 29 Nov 2014 11:02:35 +0900 |
| parents | 52958cd4a073 |
| children | 92188f60323d |
| rev | line source |
|---|---|
| 2 | 1 // Filename : bprint.h |
|
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
6
diff
changeset
|
2 // Last Change: 16-May-2014. |
| 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; | |
|
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
6
diff
changeset
|
26 wxButton* m_buttonMaskPrint; |
|
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
6
diff
changeset
|
27 wxButton* m_buttonLdLog; |
| 2 | 28 wxButton* m_buttonClose; |
| 29 | |
| 30 public: | |
| 31 FrameBatchPrint( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
| 32 ~FrameBatchPrint(); | |
| 33 | |
| 34 void SetGridReadOnly( void ); | |
| 6 | 35 void WriteLog( wxArrayString logline ); |
| 2 | 36 void OnInput( wxGridEvent& event ); |
| 37 void OnClear( wxCommandEvent& WXUNUSED(event) ); | |
| 38 void OnPrint( wxCommandEvent& WXUNUSED(event) ); | |
|
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
6
diff
changeset
|
39 void OnMaskPrint( wxCommandEvent& WXUNUSED(event) ); |
|
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
6
diff
changeset
|
40 void OnLoadLog( wxCommandEvent& WXUNUSED(event) ); |
| 5 | 41 void SetMark( long lmin, long lmax, double zmin, double zmax ) { m_lmin = lmin; m_lmax = lmax; m_zmin = zmin; m_zmax = zmax; } |
| 2 | 42 |
| 43 // Accessor | |
| 44 void SetMask1( wxRect rect ) { m_mask1 = rect; } | |
| 45 void SetMask2( wxRect rect ) { m_mask2 = rect; } | |
| 46 void SetMask3( wxRect rect ) { m_mask3 = rect; } | |
| 47 void SetMask1Old( wxRect rect ) { m_mask1old = rect; } | |
| 48 void SetMask2Old( wxRect rect ) { m_mask2old = rect; } | |
| 49 void SetMask3Old( wxRect rect ) { m_mask3old = rect; } | |
| 50 }; | |
| 51 | |
| 52 enum | |
| 53 { | |
| 54 ID_BPCLEAR = wxID_HIGHEST + 50, | |
| 55 ID_BPPRINT, | |
|
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
6
diff
changeset
|
56 ID_BPFFMP, |
|
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
6
diff
changeset
|
57 ID_BPLDLOG, |
| 2 | 58 }; |
| 59 | |
| 60 #endif //__BPRINT_H__ | |
| 61 |
