Mercurial > mercurial > hgweb_searcher03.cgi
annotate include/bprint.h @ 22:92188f60323d default tip
Implement Masking function on Preview Dialog.
| author | pyon@macmini |
|---|---|
| date | Sat, 04 Apr 2015 17:23:46 +0900 |
| parents | 52958cd4a073 |
| children |
| rev | line source |
|---|---|
| 2 | 1 // Filename : bprint.h |
| 22 | 2 // Last Change: 2015-04-04 10:30:01. |
| 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: | |
| 22 | 13 wxRect m_mask1; |
| 14 wxRect m_mask2; | |
| 15 wxRect m_mask3; | |
| 16 wxRect m_mask1old; | |
| 17 wxRect m_mask2old; | |
| 18 wxRect m_mask3old; | |
| 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; } |
| 22 | 42 void LoadCSV( wxString file ); |
| 2 | 43 |
| 44 // Accessor | |
| 45 void SetMask1( wxRect rect ) { m_mask1 = rect; } | |
| 46 void SetMask2( wxRect rect ) { m_mask2 = rect; } | |
| 47 void SetMask3( wxRect rect ) { m_mask3 = rect; } | |
| 48 void SetMask1Old( wxRect rect ) { m_mask1old = rect; } | |
| 49 void SetMask2Old( wxRect rect ) { m_mask2old = rect; } | |
| 50 void SetMask3Old( wxRect rect ) { m_mask3old = rect; } | |
| 51 }; | |
| 52 | |
| 53 enum | |
| 54 { | |
| 55 ID_BPCLEAR = wxID_HIGHEST + 50, | |
| 56 ID_BPPRINT, | |
|
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
6
diff
changeset
|
57 ID_BPFFMP, |
|
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
6
diff
changeset
|
58 ID_BPLDLOG, |
| 2 | 59 }; |
| 60 | |
| 61 #endif //__BPRINT_H__ | |
| 62 |
