Mercurial > mercurial > hgweb_searcher03.cgi
view include/bprint.h @ 15:de222bc84e48
Implement Mouse Gesture in Preview Dialog.
author | pyon@macmini |
---|---|
date | Sun, 15 Jun 2014 16:45:52 +0900 |
parents | 52958cd4a073 |
children | 92188f60323d |
line wrap: on
line source
// Filename : bprint.h // Last Change: 16-May-2014. // #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; long m_lmin, m_lmax; double m_zmin, m_zmax; protected: wxGrid* m_grid; wxButton* m_buttonClear; wxButton* m_buttonPrint; wxButton* m_buttonMaskPrint; wxButton* m_buttonLdLog; 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 WriteLog( wxArrayString logline ); void OnInput( wxGridEvent& event ); void OnClear( wxCommandEvent& WXUNUSED(event) ); void OnPrint( wxCommandEvent& WXUNUSED(event) ); void OnMaskPrint( wxCommandEvent& WXUNUSED(event) ); void OnLoadLog( wxCommandEvent& WXUNUSED(event) ); void SetMark( long lmin, long lmax, double zmin, double zmax ) { m_lmin = lmin; m_lmax = lmax; m_zmin = zmin; m_zmax = zmax; } // 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, ID_BPFFMP, ID_BPLDLOG, }; #endif //__BPRINT_H__