comparison include/preview.h @ 15:de222bc84e48

Implement Mouse Gesture in Preview Dialog.
author pyon@macmini
date Sun, 15 Jun 2014 16:45:52 +0900
parents ac17a73e39b3
children 92188f60323d
comparison
equal deleted inserted replaced
14:ac17a73e39b3 15:de222bc84e48
1 // Filename : preview.h 1 // Filename : preview.h
2 // Last Change: 04-Jun-2014. 2 // Last Change: 09-Jun-2014.
3 // 3 //
4 4
5 #ifndef __PREVIEW_H__ 5 #ifndef __PREVIEW_H__
6 #define __PREVIEW_H__ 6 #define __PREVIEW_H__
7 7
43 // プレビューダイアログ 43 // プレビューダイアログ
44 class PreviewDialog : public wxDialog 44 class PreviewDialog : public wxDialog
45 { 45 {
46 DECLARE_EVENT_TABLE() 46 DECLARE_EVENT_TABLE()
47 private: 47 private:
48 wxString 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 int cx, cy;
52 53
53 protected: 54 protected:
54 wxScrolledWindow* m_scrolledWindow; 55 wxScrolledWindow* m_scrolledWindow;
55 wxStaticBitmap* m_bitmap; 56 wxStaticBitmap* m_bitmap;
56 PThumbnailPanel* m_thumbPanel; 57 PThumbnailPanel* m_thumbPanel;
66 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); 67 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select );
67 void SetZoom( float zoom ); 68 void SetZoom( float zoom );
68 void SetPreviewImage( int n ); 69 void SetPreviewImage( int n );
69 void OnWheel( wxMouseEvent& event ); 70 void OnWheel( wxMouseEvent& event );
70 void OnDClick( wxMouseEvent& WXUNUSED(event) ); 71 void OnDClick( wxMouseEvent& WXUNUSED(event) );
72 void OnStartRGesture( wxMouseEvent& event );
73 void OnEndRGesture( wxMouseEvent& event );
71 void OnPrint( wxCommandEvent& WXUNUSED(event) ); 74 void OnPrint( wxCommandEvent& WXUNUSED(event) );
72 }; 75 };
73 76
74 enum { 77 enum {
75 ID_PRINT = wxID_HIGHEST + 160, 78 ID_PRINT = wxID_HIGHEST + 160,