Mercurial > mercurial > hgweb_searcher03.cgi
view include/preview.h @ 18:a8e6e5769e3b
Small fixes.
author | pyon@macmini |
---|---|
date | Sat, 29 Nov 2014 11:02:35 +0900 |
parents | de222bc84e48 |
children | 92188f60323d |
line wrap: on
line source
// Filename : preview.h // Last Change: 09-Jun-2014. // #ifndef __PREVIEW_H__ #define __PREVIEW_H__ #include "common.h" class PreviewDialog; // サムネイルパネル class PThumbnailPanel : public wxPanel { private: PreviewDialog* m_parent; wxArrayString m_imagefiles; wxArrayString m_cachefiles; wxImageList m_imageList; protected: wxStaticBitmap* m_bitmap0; wxStaticBitmap* m_bitmap1; wxStaticBitmap* m_bitmap2; wxStaticBitmap* m_bitmap3; wxStaticBitmap* m_bitmap4; wxStaticBitmap* m_bitmap5; public: PThumbnailPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ); ~PThumbnailPanel(); void OnClick0( wxMouseEvent& WXUNUSED(event) ); void OnClick1( wxMouseEvent& WXUNUSED(event) ); void OnClick2( wxMouseEvent& WXUNUSED(event) ); void OnClick3( wxMouseEvent& WXUNUSED(event) ); void OnClick4( wxMouseEvent& WXUNUSED(event) ); void OnClick5( wxMouseEvent& WXUNUSED(event) ); void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); void SetImageList( int selected ); void Preview( int n ); }; // プレビューダイアログ class PreviewDialog : public wxDialog { DECLARE_EVENT_TABLE() private: int m_preview; wxArrayString m_imagefiles; wxArrayString m_cachefiles; float m_zoom; int cx, cy; protected: wxScrolledWindow* m_scrolledWindow; wxStaticBitmap* m_bitmap; PThumbnailPanel* m_thumbPanel; wxTextCtrl* m_textInfo; wxButton* m_buttonMaskPrint; wxButton* m_buttonPrint; wxButton* m_buttonClose; public: PreviewDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); ~PreviewDialog(); void SetFiles( wxArrayString imagefiles, wxArrayString cachefiles, int select ); void SetZoom( float zoom ); void SetPreviewImage( int n ); void OnWheel( wxMouseEvent& event ); void OnDClick( wxMouseEvent& WXUNUSED(event) ); void OnStartRGesture( wxMouseEvent& event ); void OnEndRGesture( wxMouseEvent& event ); void OnPrint( wxCommandEvent& WXUNUSED(event) ); }; enum { ID_PRINT = wxID_HIGHEST + 160, }; #endif //__PREVIEW_H__