Mercurial > mercurial > hgweb_searcher03.cgi
annotate 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 |
rev | line source |
---|---|
9 | 1 // Filename : preview.h |
14 | 2 // Last Change: 04-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: | |
48 wxString m_preview; | |
10 | 49 wxArrayString m_imagefiles; |
50 wxArrayString m_cachefiles; | |
14 | 51 float m_zoom; |
9 | 52 |
53 protected: | |
54 wxScrolledWindow* m_scrolledWindow; | |
55 wxStaticBitmap* m_bitmap; | |
10 | 56 PThumbnailPanel* m_thumbPanel; |
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
57 wxTextCtrl* m_textInfo; |
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
58 wxButton* m_buttonMaskPrint; |
9 | 59 wxButton* m_buttonPrint; |
60 wxButton* m_buttonClose; | |
61 | |
62 public: | |
63 PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
64 ~PreviewDialog(); | |
65 | |
13 | 66 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); |
14 | 67 void SetZoom( float zoom ); |
10 | 68 void SetPreviewImage( int n ); |
14 | 69 void OnWheel( wxMouseEvent& event ); |
70 void OnDClick( wxMouseEvent& WXUNUSED(event) ); | |
71 void OnPrint( wxCommandEvent& WXUNUSED(event) ); | |
9 | 72 }; |
73 | |
74 enum { | |
10 | 75 ID_PRINT = wxID_HIGHEST + 160, |
9 | 76 }; |
77 | |
78 #endif //__PREVIEW_H__ | |
79 |