Mercurial > mercurial > hgweb_searcher03.cgi
annotate include/preview.h @ 21:a2ad87cad48b
Enhanced the convenience of Cache dialog.
| author | pyon@macmini |
|---|---|
| date | Wed, 17 Dec 2014 00:52:43 +0900 |
| parents | de222bc84e48 |
| children | 92188f60323d |
| rev | line source |
|---|---|
| 9 | 1 // Filename : preview.h |
| 15 | 2 // Last Change: 09-Jun-2014. |
| 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; |
| 15 | 52 int cx, cy; |
| 9 | 53 |
| 54 protected: | |
| 55 wxScrolledWindow* m_scrolledWindow; | |
| 56 wxStaticBitmap* m_bitmap; | |
| 10 | 57 PThumbnailPanel* m_thumbPanel; |
|
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
58 wxTextCtrl* m_textInfo; |
|
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
59 wxButton* m_buttonMaskPrint; |
| 9 | 60 wxButton* m_buttonPrint; |
| 61 wxButton* m_buttonClose; | |
| 62 | |
| 63 public: | |
| 64 PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
| 65 ~PreviewDialog(); | |
| 66 | |
| 13 | 67 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); |
| 14 | 68 void SetZoom( float zoom ); |
| 10 | 69 void SetPreviewImage( int n ); |
| 14 | 70 void OnWheel( wxMouseEvent& event ); |
| 71 void OnDClick( wxMouseEvent& WXUNUSED(event) ); | |
| 15 | 72 void OnStartRGesture( wxMouseEvent& event ); |
| 73 void OnEndRGesture( wxMouseEvent& event ); | |
| 14 | 74 void OnPrint( wxCommandEvent& WXUNUSED(event) ); |
| 9 | 75 }; |
| 76 | |
| 77 enum { | |
| 10 | 78 ID_PRINT = wxID_HIGHEST + 160, |
| 9 | 79 }; |
| 80 | |
| 81 #endif //__PREVIEW_H__ | |
| 82 |
