Mercurial > mercurial > hgweb_searcher03.cgi
annotate 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 |
| rev | line source |
|---|---|
| 9 | 1 // Filename : preview.h |
| 22 | 2 // Last Change: 2015-04-03 11:34:20. |
| 9 | 3 // |
| 4 | |
| 5 #ifndef __PREVIEW_H__ | |
| 6 #define __PREVIEW_H__ | |
| 7 | |
| 8 #include "common.h" | |
| 10 | 9 class PreviewDialog; |
| 9 | 10 |
| 10 | 11 // サムネイルパネル |
| 12 class PThumbnailPanel : public wxPanel | |
| 13 { | |
| 14 private: | |
| 15 PreviewDialog* m_parent; | |
| 16 wxArrayString m_imagefiles; | |
| 17 wxArrayString m_cachefiles; | |
| 13 | 18 wxImageList m_imageList; |
| 10 | 19 |
| 20 protected: | |
| 21 wxStaticBitmap* m_bitmap0; | |
| 22 wxStaticBitmap* m_bitmap1; | |
| 23 wxStaticBitmap* m_bitmap2; | |
| 24 wxStaticBitmap* m_bitmap3; | |
| 25 wxStaticBitmap* m_bitmap4; | |
| 26 wxStaticBitmap* m_bitmap5; | |
| 27 | |
| 28 public: | |
| 29 PThumbnailPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ); | |
| 30 ~PThumbnailPanel(); | |
| 31 | |
| 14 | 32 void OnClick0( wxMouseEvent& WXUNUSED(event) ); |
| 33 void OnClick1( wxMouseEvent& WXUNUSED(event) ); | |
| 34 void OnClick2( wxMouseEvent& WXUNUSED(event) ); | |
| 35 void OnClick3( wxMouseEvent& WXUNUSED(event) ); | |
| 36 void OnClick4( wxMouseEvent& WXUNUSED(event) ); | |
| 37 void OnClick5( wxMouseEvent& WXUNUSED(event) ); | |
| 13 | 38 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); |
| 39 void SetImageList( int selected ); | |
| 10 | 40 void Preview( int n ); |
| 41 }; | |
| 42 | |
| 43 // プレビューダイアログ | |
| 9 | 44 class PreviewDialog : public wxDialog |
| 45 { | |
| 46 DECLARE_EVENT_TABLE() | |
| 47 private: | |
| 15 | 48 int m_preview; |
| 10 | 49 wxArrayString m_imagefiles; |
| 50 wxArrayString m_cachefiles; | |
| 14 | 51 float m_zoom; |
| 22 | 52 wxRect m_mask1; |
| 53 wxRect m_mask2; | |
| 54 wxRect m_mask3; | |
| 55 wxRect m_mask1old; | |
| 56 wxRect m_mask2old; | |
| 57 wxRect m_mask3old; | |
| 15 | 58 int cx, cy; |
| 9 | 59 |
| 60 protected: | |
| 61 wxScrolledWindow* m_scrolledWindow; | |
| 62 wxStaticBitmap* m_bitmap; | |
| 10 | 63 PThumbnailPanel* m_thumbPanel; |
|
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
64 wxTextCtrl* m_textInfo; |
|
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
65 wxButton* m_buttonMaskPrint; |
| 9 | 66 wxButton* m_buttonPrint; |
| 67 wxButton* m_buttonClose; | |
| 68 | |
| 69 public: | |
| 70 PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
| 71 ~PreviewDialog(); | |
| 72 | |
| 13 | 73 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); |
| 14 | 74 void SetZoom( float zoom ); |
| 10 | 75 void SetPreviewImage( int n ); |
| 22 | 76 void EnableMaskButton( bool flag ); |
| 14 | 77 void OnWheel( wxMouseEvent& event ); |
| 78 void OnDClick( wxMouseEvent& WXUNUSED(event) ); | |
| 15 | 79 void OnStartRGesture( wxMouseEvent& event ); |
| 80 void OnEndRGesture( wxMouseEvent& event ); | |
| 14 | 81 void OnPrint( wxCommandEvent& WXUNUSED(event) ); |
| 22 | 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; } | |
| 9 | 89 }; |
| 90 | |
| 91 enum { | |
| 10 | 92 ID_PRINT = wxID_HIGHEST + 160, |
| 22 | 93 ID_MPRINT, |
| 9 | 94 }; |
| 95 | |
| 96 #endif //__PREVIEW_H__ | |
| 97 |
