Mercurial > mercurial > hgweb_searcher03.cgi
diff include/bprint.h @ 2:c066fde99517
Added Batch Print Mode.
author | pyon@macmini |
---|---|
date | Fri, 23 Aug 2013 18:32:09 +0900 |
parents | |
children | bc2e2b304095 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/bprint.h Fri Aug 23 18:32:09 2013 +0900 @@ -0,0 +1,51 @@ +// Filename : bprint.h +// Last Change: 23-Aug-2013. +// +#ifndef __BPRINT_H__ +#define __BPRINT_H__ + +#include "common.h" + +class FrameBatchPrint : public wxDialog +{ + DECLARE_EVENT_TABLE() + private: + wxRect m_mask1; + wxRect m_mask2; + wxRect m_mask3; + wxRect m_mask1old; + wxRect m_mask2old; + wxRect m_mask3old; + + protected: + wxGrid* m_grid; + wxButton* m_buttonClear; + wxButton* m_buttonPrint; + wxButton* m_buttonClose; + + public: + FrameBatchPrint( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); + ~FrameBatchPrint(); + + void SetGridReadOnly( void ); + void OnInput( wxGridEvent& event ); + void OnClear( wxCommandEvent& WXUNUSED(event) ); + void OnPrint( wxCommandEvent& WXUNUSED(event) ); + + // Accessor + void SetMask1( wxRect rect ) { m_mask1 = rect; } + void SetMask2( wxRect rect ) { m_mask2 = rect; } + void SetMask3( wxRect rect ) { m_mask3 = rect; } + void SetMask1Old( wxRect rect ) { m_mask1old = rect; } + void SetMask2Old( wxRect rect ) { m_mask2old = rect; } + void SetMask3Old( wxRect rect ) { m_mask3old = rect; } +}; + +enum +{ + ID_BPCLEAR = wxID_HIGHEST + 50, + ID_BPPRINT, +}; + +#endif //__BPRINT_H__ +