Mercurial > mercurial > hgweb_searcher2.cgi
comparison include/preview.h @ 4:d924b09ea2f3
thumbnail by ListCtrl & ImageList.
author | pyon@macmini |
---|---|
date | Sat, 09 Apr 2011 15:03:03 +0900 |
parents | 75fefb53d983 |
children | 0f566397974e |
comparison
equal
deleted
inserted
replaced
3:75fefb53d983 | 4:d924b09ea2f3 |
---|---|
12 #include <wx/font.h> | 12 #include <wx/font.h> |
13 #include <wx/colour.h> | 13 #include <wx/colour.h> |
14 #include <wx/settings.h> | 14 #include <wx/settings.h> |
15 #include <wx/bitmap.h> | 15 #include <wx/bitmap.h> |
16 #include <wx/image.h> | 16 #include <wx/image.h> |
17 #include <wx/icon.h> | 17 #include <wx/imaglist.h> |
18 #include <wx/statbmp.h> | 18 #include <wx/statbmp.h> |
19 #include <wx/sizer.h> | 19 #include <wx/sizer.h> |
20 #include <wx/scrolwin.h> | 20 #include <wx/scrolwin.h> |
21 #include <wx/textctrl.h> | 21 #include <wx/textctrl.h> |
22 #include <wx/slider.h> | 22 #include <wx/slider.h> |
23 #include <wx/button.h> | 23 #include <wx/button.h> |
24 #include <wx/frame.h> | 24 #include <wx/frame.h> |
25 #include <wx/listctrl.h> | |
25 | 26 |
26 /////////////////////////////////////////////////////////////////////////////// | 27 /////////////////////////////////////////////////////////////////////////////// |
27 /// Class FramePreview | 28 /// Class FramePreview |
28 /////////////////////////////////////////////////////////////////////////////// | 29 /////////////////////////////////////////////////////////////////////////////// |
29 class FramePreview : public wxFrame | 30 class FramePreview : public wxFrame |
30 { | 31 { |
31 DECLARE_EVENT_TABLE() | 32 DECLARE_EVENT_TABLE() |
32 private: | 33 private: |
34 wxImageList* m_imageList; | |
35 wxListItem* m_listItem; | |
33 | 36 |
34 protected: | 37 protected: |
35 wxStaticText* m_staticText1; | 38 wxListCtrl* m_listCtrl; |
36 wxStaticBitmap* m_bitmap1; | |
37 wxStaticText* m_staticText2; | |
38 wxStaticBitmap* m_bitmap2; | |
39 wxStaticText* m_staticText3; | |
40 wxStaticBitmap* m_bitmap3; | |
41 wxStaticText* m_staticText4; | |
42 wxStaticBitmap* m_bitmap4; | |
43 wxStaticText* m_staticText5; | |
44 wxStaticBitmap* m_bitmap5; | |
45 | 39 |
46 wxScrolledWindow* m_scrolledWindow; | 40 wxScrolledWindow* m_scrolledWindow; |
47 wxStaticBitmap* m_bitmap; | 41 wxStaticBitmap* m_bitmap; |
48 | 42 |
49 wxStaticText* m_staticText; | 43 wxStaticText* m_staticText; |
60 FramePreview( wxWindow* parent, wxWindowID id = ID_IMGFRM, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 512,394 ), long style = wxCAPTION|wxFRAME_NO_TASKBAR|wxMAXIMIZE_BOX|wxRESIZE_BORDER|wxTAB_TRAVERSAL ); | 54 FramePreview( wxWindow* parent, wxWindowID id = ID_IMGFRM, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 512,394 ), long style = wxCAPTION|wxFRAME_NO_TASKBAR|wxMAXIMIZE_BOX|wxRESIZE_BORDER|wxTAB_TRAVERSAL ); |
61 ~FramePreview(); | 55 ~FramePreview(); |
62 | 56 |
63 void CloseFrame(wxCommandEvent&); | 57 void CloseFrame(wxCommandEvent&); |
64 void LoadImages(wxString); | 58 void LoadImages(wxString); |
65 void SetThumbnail(wxStaticText*, wxStaticBitmap*, wxString, wxString); | |
66 | |
67 }; | 59 }; |
68 | 60 |
69 #endif //__PREVIEW__ | 61 #endif //__PREVIEW__ |
70 | 62 |