Mercurial > mercurial > hgweb_searcher2.cgi
diff 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 |
line wrap: on
line diff
--- a/include/preview.h Sat Apr 09 12:48:20 2011 +0900 +++ b/include/preview.h Sat Apr 09 15:03:03 2011 +0900 @@ -14,7 +14,7 @@ #include <wx/settings.h> #include <wx/bitmap.h> #include <wx/image.h> -#include <wx/icon.h> +#include <wx/imaglist.h> #include <wx/statbmp.h> #include <wx/sizer.h> #include <wx/scrolwin.h> @@ -22,6 +22,7 @@ #include <wx/slider.h> #include <wx/button.h> #include <wx/frame.h> +#include <wx/listctrl.h> /////////////////////////////////////////////////////////////////////////////// /// Class FramePreview @@ -30,18 +31,11 @@ { DECLARE_EVENT_TABLE() private: + wxImageList* m_imageList; + wxListItem* m_listItem; protected: - wxStaticText* m_staticText1; - wxStaticBitmap* m_bitmap1; - wxStaticText* m_staticText2; - wxStaticBitmap* m_bitmap2; - wxStaticText* m_staticText3; - wxStaticBitmap* m_bitmap3; - wxStaticText* m_staticText4; - wxStaticBitmap* m_bitmap4; - wxStaticText* m_staticText5; - wxStaticBitmap* m_bitmap5; + wxListCtrl* m_listCtrl; wxScrolledWindow* m_scrolledWindow; wxStaticBitmap* m_bitmap; @@ -62,8 +56,6 @@ void CloseFrame(wxCommandEvent&); void LoadImages(wxString); - void SetThumbnail(wxStaticText*, wxStaticBitmap*, wxString, wxString); - }; #endif //__PREVIEW__