Mercurial > mercurial > hgweb_searcher03.cgi
annotate include/preview.h @ 12:52958cd4a073
Implement Force Mask button in Batch Print Mode.
| author | pyon@macmini |
|---|---|
| date | Sun, 18 May 2014 19:49:15 +0900 |
| parents | dfcf8c973219 |
| children | bbd65edf71d4 |
| rev | line source |
|---|---|
| 9 | 1 // Filename : preview.h |
|
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
2 // Last Change: 16-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; | |
| 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 // プレビューダイアログ | |
| 9 | 42 class PreviewDialog : public wxDialog |
| 43 { | |
| 44 DECLARE_EVENT_TABLE() | |
| 45 private: | |
| 46 wxString m_preview; | |
| 10 | 47 wxArrayString m_imagefiles; |
| 48 wxArrayString m_cachefiles; | |
| 9 | 49 |
| 50 protected: | |
| 51 wxScrolledWindow* m_scrolledWindow; | |
| 52 wxStaticBitmap* m_bitmap; | |
| 10 | 53 PThumbnailPanel* m_thumbPanel; |
|
12
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
54 wxTextCtrl* m_textInfo; |
|
52958cd4a073
Implement Force Mask button in Batch Print Mode.
pyon@macmini
parents:
11
diff
changeset
|
55 wxButton* m_buttonMaskPrint; |
| 9 | 56 wxButton* m_buttonPrint; |
| 57 wxButton* m_buttonClose; | |
| 58 | |
| 59 public: | |
| 60 PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
| 61 ~PreviewDialog(); | |
| 62 | |
| 10 | 63 void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles ); |
| 11 | 64 void SetPreviewSize( void ); |
| 10 | 65 void SetPreviewImage( int n ); |
| 9 | 66 void OnPrint( wxCommandEvent& event ); |
| 67 }; | |
| 68 | |
| 69 enum { | |
| 10 | 70 ID_PRINT = wxID_HIGHEST + 160, |
| 9 | 71 }; |
| 72 | |
| 73 #endif //__PREVIEW_H__ | |
| 74 |
