Mercurial > mercurial > hgweb_searcher03.cgi
comparison include/preview.h @ 9:b455f2d8aac9
Implement Preview.
| author | pyon@macmini |
|---|---|
| date | Thu, 24 Apr 2014 18:31:39 +0900 |
| parents | |
| children | 29021e6e1ebe |
comparison
equal
deleted
inserted
replaced
| 8:4967d1e2b30c | 9:b455f2d8aac9 |
|---|---|
| 1 // Filename : preview.h | |
| 2 // Last Change: 23-Apr-2014. | |
| 3 // | |
| 4 | |
| 5 #ifndef __PREVIEW_H__ | |
| 6 #define __PREVIEW_H__ | |
| 7 | |
| 8 #include "common.h" | |
| 9 | |
| 10 class PreviewDialog : public wxDialog | |
| 11 { | |
| 12 DECLARE_EVENT_TABLE() | |
| 13 private: | |
| 14 wxImageList* m_imageList; | |
| 15 wxString m_preview; | |
| 16 wxString m_dir; | |
| 17 | |
| 18 protected: | |
| 19 wxScrolledWindow* m_scrolledWindow; | |
| 20 wxStaticBitmap* m_bitmap; | |
| 21 wxListCtrl* m_listCtrl; | |
| 22 wxButton* m_buttonPrint; | |
| 23 wxButton* m_buttonClose; | |
| 24 | |
| 25 public: | |
| 26 PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
| 27 ~PreviewDialog(); | |
| 28 | |
| 29 void SetImage( wxString file ); | |
| 30 void OnPrint( wxCommandEvent& event ); | |
| 31 }; | |
| 32 | |
| 33 enum { | |
| 34 ID_PRINT = wxID_HIGHEST + 80, | |
| 35 ID_PLIST, | |
| 36 }; | |
| 37 | |
| 38 #endif //__PREVIEW_H__ | |
| 39 |
