Mercurial > mercurial > hgweb_searcher03.cgi
diff include/preview.h @ 22:92188f60323d default tip
Implement Masking function on Preview Dialog.
author | pyon@macmini |
---|---|
date | Sat, 04 Apr 2015 17:23:46 +0900 |
parents | de222bc84e48 |
children |
line wrap: on
line diff
--- a/include/preview.h Wed Dec 17 00:52:43 2014 +0900 +++ b/include/preview.h Sat Apr 04 17:23:46 2015 +0900 @@ -1,5 +1,5 @@ // Filename : preview.h -// Last Change: 09-Jun-2014. +// Last Change: 2015-04-03 11:34:20. // #ifndef __PREVIEW_H__ @@ -49,6 +49,12 @@ wxArrayString m_imagefiles; wxArrayString m_cachefiles; float m_zoom; + wxRect m_mask1; + wxRect m_mask2; + wxRect m_mask3; + wxRect m_mask1old; + wxRect m_mask2old; + wxRect m_mask3old; int cx, cy; protected: @@ -67,15 +73,24 @@ void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); void SetZoom( float zoom ); void SetPreviewImage( int n ); + void EnableMaskButton( bool flag ); void OnWheel( wxMouseEvent& event ); void OnDClick( wxMouseEvent& WXUNUSED(event) ); void OnStartRGesture( wxMouseEvent& event ); void OnEndRGesture( wxMouseEvent& event ); void OnPrint( wxCommandEvent& WXUNUSED(event) ); + void OnMaskPrint( wxCommandEvent& WXUNUSED(event) ); + 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_PRINT = wxID_HIGHEST + 160, + ID_MPRINT, }; #endif //__PREVIEW_H__