Mercurial > mercurial > hgweb_searcher03.cgi
comparison include/bprint.h @ 2:c066fde99517
Added Batch Print Mode.
| author | pyon@macmini |
|---|---|
| date | Fri, 23 Aug 2013 18:32:09 +0900 |
| parents | |
| children | bc2e2b304095 |
comparison
equal
deleted
inserted
replaced
| 1:7b6dab24f4b8 | 2:c066fde99517 |
|---|---|
| 1 // Filename : bprint.h | |
| 2 // Last Change: 23-Aug-2013. | |
| 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; | |
| 19 | |
| 20 protected: | |
| 21 wxGrid* m_grid; | |
| 22 wxButton* m_buttonClear; | |
| 23 wxButton* m_buttonPrint; | |
| 24 wxButton* m_buttonClose; | |
| 25 | |
| 26 public: | |
| 27 FrameBatchPrint( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
| 28 ~FrameBatchPrint(); | |
| 29 | |
| 30 void SetGridReadOnly( void ); | |
| 31 void OnInput( wxGridEvent& event ); | |
| 32 void OnClear( wxCommandEvent& WXUNUSED(event) ); | |
| 33 void OnPrint( wxCommandEvent& WXUNUSED(event) ); | |
| 34 | |
| 35 // Accessor | |
| 36 void SetMask1( wxRect rect ) { m_mask1 = rect; } | |
| 37 void SetMask2( wxRect rect ) { m_mask2 = rect; } | |
| 38 void SetMask3( wxRect rect ) { m_mask3 = rect; } | |
| 39 void SetMask1Old( wxRect rect ) { m_mask1old = rect; } | |
| 40 void SetMask2Old( wxRect rect ) { m_mask2old = rect; } | |
| 41 void SetMask3Old( wxRect rect ) { m_mask3old = rect; } | |
| 42 }; | |
| 43 | |
| 44 enum | |
| 45 { | |
| 46 ID_BPCLEAR = wxID_HIGHEST + 50, | |
| 47 ID_BPPRINT, | |
| 48 }; | |
| 49 | |
| 50 #endif //__BPRINT_H__ | |
| 51 |
