Mercurial > mercurial > hgweb_searcher03.cgi
annotate include/preview.h @ 13:bbd65edf71d4
Implement Hhs DB update dialog.
author | pyon@macmini |
---|---|
date | Sat, 24 May 2014 10:25:13 +0900 |
parents | 52958cd4a073 |
children | ac17a73e39b3 |
rev | line source |
---|---|
9 | 1 // Filename : preview.h |
13 | 2 // Last Change: 23-May-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 | |
32 void OnClick0( wxMouseEvent& event ); | |
33 void OnClick1( wxMouseEvent& event ); | |
34 void OnClick2( wxMouseEvent& event ); | |
35 void OnClick3( wxMouseEvent& event ); | |
36 void OnClick4( wxMouseEvent& event ); | |
37 void OnClick5( wxMouseEvent& 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; | |
9 | 51 |
52 protected: | |
53 wxScrolledWindow* m_scrolledWindow; | |
54 wxStaticBitmap* m_bitmap; | |
10 | 55 PThumbnailPanel* m_thumbPanel; |
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
56 wxTextCtrl* m_textInfo; |
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
57 wxButton* m_buttonMaskPrint; |
9 | 58 wxButton* m_buttonPrint; |
59 wxButton* m_buttonClose; | |
60 | |
61 public: | |
62 PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
63 ~PreviewDialog(); | |
64 | |
13 | 65 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); |
11 | 66 void SetPreviewSize( void ); |
10 | 67 void SetPreviewImage( int n ); |
9 | 68 void OnPrint( wxCommandEvent& event ); |
69 }; | |
70 | |
71 enum { | |
10 | 72 ID_PRINT = wxID_HIGHEST + 160, |
9 | 73 }; |
74 | |
75 #endif //__PREVIEW_H__ | |
76 |