Mercurial > mercurial > hgweb_searcher03.cgi
comparison include/preview.h @ 10:29021e6e1ebe
Implement thumbnail list in PreviewDialog.
author | pyon@macmini |
---|---|
date | Mon, 28 Apr 2014 18:14:04 +0900 |
parents | b455f2d8aac9 |
children | dfcf8c973219 |
comparison
equal
deleted
inserted
replaced
9:b455f2d8aac9 | 10:29021e6e1ebe |
---|---|
1 // Filename : preview.h | 1 // Filename : preview.h |
2 // Last Change: 23-Apr-2014. | 2 // Last Change: 28-Apr-2014. |
3 // | 3 // |
4 | 4 |
5 #ifndef __PREVIEW_H__ | 5 #ifndef __PREVIEW_H__ |
6 #define __PREVIEW_H__ | 6 #define __PREVIEW_H__ |
7 | 7 |
8 #include "common.h" | 8 #include "common.h" |
9 class PreviewDialog; | |
9 | 10 |
11 // サムネイルパネル | |
12 class PThumbnailPanel : public wxPanel | |
13 { | |
14 private: | |
15 PreviewDialog* m_parent; | |
16 wxArrayString m_imagefiles; | |
17 wxArrayString m_cachefiles; | |
18 | |
19 protected: | |
20 wxStaticBitmap* m_bitmap0; | |
21 wxStaticBitmap* m_bitmap1; | |
22 wxStaticBitmap* m_bitmap2; | |
23 wxStaticBitmap* m_bitmap3; | |
24 wxStaticBitmap* m_bitmap4; | |
25 wxStaticBitmap* m_bitmap5; | |
26 | |
27 public: | |
28 PThumbnailPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ); | |
29 ~PThumbnailPanel(); | |
30 | |
31 void OnClick0( wxMouseEvent& event ); | |
32 void OnClick1( wxMouseEvent& event ); | |
33 void OnClick2( wxMouseEvent& event ); | |
34 void OnClick3( wxMouseEvent& event ); | |
35 void OnClick4( wxMouseEvent& event ); | |
36 void OnClick5( wxMouseEvent& event ); | |
37 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles ); | |
38 void Preview( int n ); | |
39 }; | |
40 | |
41 // プレビューダイアログ | |
10 class PreviewDialog : public wxDialog | 42 class PreviewDialog : public wxDialog |
11 { | 43 { |
12 DECLARE_EVENT_TABLE() | 44 DECLARE_EVENT_TABLE() |
13 private: | 45 private: |
14 wxImageList* m_imageList; | |
15 wxString m_preview; | 46 wxString m_preview; |
16 wxString m_dir; | 47 wxString m_dir; |
48 wxArrayString m_imagefiles; | |
49 wxArrayString m_cachefiles; | |
17 | 50 |
18 protected: | 51 protected: |
19 wxScrolledWindow* m_scrolledWindow; | 52 wxScrolledWindow* m_scrolledWindow; |
20 wxStaticBitmap* m_bitmap; | 53 wxStaticBitmap* m_bitmap; |
21 wxListCtrl* m_listCtrl; | 54 PThumbnailPanel* m_thumbPanel; |
22 wxButton* m_buttonPrint; | 55 wxButton* m_buttonPrint; |
23 wxButton* m_buttonClose; | 56 wxButton* m_buttonClose; |
24 | 57 |
25 public: | 58 public: |
26 PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | 59 PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); |
27 ~PreviewDialog(); | 60 ~PreviewDialog(); |
28 | 61 |
29 void SetImage( wxString file ); | 62 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles ); |
63 void SetPreviewImage( int n ); | |
30 void OnPrint( wxCommandEvent& event ); | 64 void OnPrint( wxCommandEvent& event ); |
31 }; | 65 }; |
32 | 66 |
33 enum { | 67 enum { |
34 ID_PRINT = wxID_HIGHEST + 80, | 68 ID_PRINT = wxID_HIGHEST + 160, |
35 ID_PLIST, | |
36 }; | 69 }; |
37 | 70 |
38 #endif //__PREVIEW_H__ | 71 #endif //__PREVIEW_H__ |
39 | 72 |