Mercurial > mercurial > hgweb_searcher03.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 21:a2ad87cad48b | 22:92188f60323d |
|---|---|
| 1 // Filename : preview.h | 1 // Filename : preview.h |
| 2 // Last Change: 09-Jun-2014. | 2 // Last Change: 2015-04-03 11:34:20. |
| 3 // | 3 // |
| 4 | 4 |
| 5 #ifndef __PREVIEW_H__ | 5 #ifndef __PREVIEW_H__ |
| 6 #define __PREVIEW_H__ | 6 #define __PREVIEW_H__ |
| 7 | 7 |
| 47 private: | 47 private: |
| 48 int m_preview; | 48 int m_preview; |
| 49 wxArrayString m_imagefiles; | 49 wxArrayString m_imagefiles; |
| 50 wxArrayString m_cachefiles; | 50 wxArrayString m_cachefiles; |
| 51 float m_zoom; | 51 float m_zoom; |
| 52 wxRect m_mask1; | |
| 53 wxRect m_mask2; | |
| 54 wxRect m_mask3; | |
| 55 wxRect m_mask1old; | |
| 56 wxRect m_mask2old; | |
| 57 wxRect m_mask3old; | |
| 52 int cx, cy; | 58 int cx, cy; |
| 53 | 59 |
| 54 protected: | 60 protected: |
| 55 wxScrolledWindow* m_scrolledWindow; | 61 wxScrolledWindow* m_scrolledWindow; |
| 56 wxStaticBitmap* m_bitmap; | 62 wxStaticBitmap* m_bitmap; |
| 65 ~PreviewDialog(); | 71 ~PreviewDialog(); |
| 66 | 72 |
| 67 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); | 73 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); |
| 68 void SetZoom( float zoom ); | 74 void SetZoom( float zoom ); |
| 69 void SetPreviewImage( int n ); | 75 void SetPreviewImage( int n ); |
| 76 void EnableMaskButton( bool flag ); | |
| 70 void OnWheel( wxMouseEvent& event ); | 77 void OnWheel( wxMouseEvent& event ); |
| 71 void OnDClick( wxMouseEvent& WXUNUSED(event) ); | 78 void OnDClick( wxMouseEvent& WXUNUSED(event) ); |
| 72 void OnStartRGesture( wxMouseEvent& event ); | 79 void OnStartRGesture( wxMouseEvent& event ); |
| 73 void OnEndRGesture( wxMouseEvent& event ); | 80 void OnEndRGesture( wxMouseEvent& event ); |
| 74 void OnPrint( wxCommandEvent& WXUNUSED(event) ); | 81 void OnPrint( wxCommandEvent& WXUNUSED(event) ); |
| 82 void OnMaskPrint( wxCommandEvent& WXUNUSED(event) ); | |
| 83 void SetMask1( wxRect rect ) { m_mask1 = rect; } | |
| 84 void SetMask2( wxRect rect ) { m_mask2 = rect; } | |
| 85 void SetMask3( wxRect rect ) { m_mask3 = rect; } | |
| 86 void SetMask1Old( wxRect rect ) { m_mask1old = rect; } | |
| 87 void SetMask2Old( wxRect rect ) { m_mask2old = rect; } | |
| 88 void SetMask3Old( wxRect rect ) { m_mask3old = rect; } | |
| 75 }; | 89 }; |
| 76 | 90 |
| 77 enum { | 91 enum { |
| 78 ID_PRINT = wxID_HIGHEST + 160, | 92 ID_PRINT = wxID_HIGHEST + 160, |
| 93 ID_MPRINT, | |
| 79 }; | 94 }; |
| 80 | 95 |
| 81 #endif //__PREVIEW_H__ | 96 #endif //__PREVIEW_H__ |
| 82 | 97 |
