Mercurial > mercurial > hgweb_searcher03.cgi
comparison include/preview.h @ 14:ac17a73e39b3
Zoom in / out in Preview Dialog.
| author | pyon@macmini |
|---|---|
| date | Thu, 05 Jun 2014 04:19:03 +0900 |
| parents | bbd65edf71d4 |
| children | de222bc84e48 |
comparison
equal
deleted
inserted
replaced
| 13:bbd65edf71d4 | 14:ac17a73e39b3 |
|---|---|
| 1 // Filename : preview.h | 1 // Filename : preview.h |
| 2 // Last Change: 23-May-2014. | 2 // Last Change: 04-Jun-2014. |
| 3 // | 3 // |
| 4 | 4 |
| 5 #ifndef __PREVIEW_H__ | 5 #ifndef __PREVIEW_H__ |
| 6 #define __PREVIEW_H__ | 6 #define __PREVIEW_H__ |
| 7 | 7 |
| 27 | 27 |
| 28 public: | 28 public: |
| 29 PThumbnailPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ); | 29 PThumbnailPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ); |
| 30 ~PThumbnailPanel(); | 30 ~PThumbnailPanel(); |
| 31 | 31 |
| 32 void OnClick0( wxMouseEvent& event ); | 32 void OnClick0( wxMouseEvent& WXUNUSED(event) ); |
| 33 void OnClick1( wxMouseEvent& event ); | 33 void OnClick1( wxMouseEvent& WXUNUSED(event) ); |
| 34 void OnClick2( wxMouseEvent& event ); | 34 void OnClick2( wxMouseEvent& WXUNUSED(event) ); |
| 35 void OnClick3( wxMouseEvent& event ); | 35 void OnClick3( wxMouseEvent& WXUNUSED(event) ); |
| 36 void OnClick4( wxMouseEvent& event ); | 36 void OnClick4( wxMouseEvent& WXUNUSED(event) ); |
| 37 void OnClick5( wxMouseEvent& event ); | 37 void OnClick5( wxMouseEvent& WXUNUSED(event) ); |
| 38 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); | 38 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); |
| 39 void SetImageList( int selected ); | 39 void SetImageList( int selected ); |
| 40 void Preview( int n ); | 40 void Preview( int n ); |
| 41 }; | 41 }; |
| 42 | 42 |
| 46 DECLARE_EVENT_TABLE() | 46 DECLARE_EVENT_TABLE() |
| 47 private: | 47 private: |
| 48 wxString m_preview; | 48 wxString m_preview; |
| 49 wxArrayString m_imagefiles; | 49 wxArrayString m_imagefiles; |
| 50 wxArrayString m_cachefiles; | 50 wxArrayString m_cachefiles; |
| 51 float m_zoom; | |
| 51 | 52 |
| 52 protected: | 53 protected: |
| 53 wxScrolledWindow* m_scrolledWindow; | 54 wxScrolledWindow* m_scrolledWindow; |
| 54 wxStaticBitmap* m_bitmap; | 55 wxStaticBitmap* m_bitmap; |
| 55 PThumbnailPanel* m_thumbPanel; | 56 PThumbnailPanel* m_thumbPanel; |
| 61 public: | 62 public: |
| 62 PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | 63 PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); |
| 63 ~PreviewDialog(); | 64 ~PreviewDialog(); |
| 64 | 65 |
| 65 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); | 66 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); |
| 66 void SetPreviewSize( void ); | 67 void SetZoom( float zoom ); |
| 67 void SetPreviewImage( int n ); | 68 void SetPreviewImage( int n ); |
| 68 void OnPrint( wxCommandEvent& event ); | 69 void OnWheel( wxMouseEvent& event ); |
| 70 void OnDClick( wxMouseEvent& WXUNUSED(event) ); | |
| 71 void OnPrint( wxCommandEvent& WXUNUSED(event) ); | |
| 69 }; | 72 }; |
| 70 | 73 |
| 71 enum { | 74 enum { |
| 72 ID_PRINT = wxID_HIGHEST + 160, | 75 ID_PRINT = wxID_HIGHEST + 160, |
| 73 }; | 76 }; |
