Mercurial > mercurial > hgweb_searcher2.cgi
comparison include/preview.h @ 3:75fefb53d983
update preview.
author | pyon@macmini |
---|---|
date | Sat, 09 Apr 2011 12:48:20 +0900 |
parents | e0cf49906039 |
children | d924b09ea2f3 |
comparison
equal
deleted
inserted
replaced
2:0830b0d7c550 | 3:75fefb53d983 |
---|---|
1 // Filename : hhsdb.h | 1 // Filename : hhsdb.h |
2 // Last Change: 07-Apr-2011. | 2 // Last Change: 09-Apr-2011. |
3 // | 3 // |
4 #ifndef __PREVIEW__ | 4 #ifndef __PREVIEW__ |
5 #define __PREVIEW__ | 5 #define __PREVIEW__ |
6 | 6 |
7 #include "common.h" | 7 #include "common.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 | 25 |
26 /////////////////////////////////////////////////////////////////////////////// | 26 /////////////////////////////////////////////////////////////////////////////// |
27 /// Class MyFramePreview | 27 /// Class FramePreview |
28 /////////////////////////////////////////////////////////////////////////////// | 28 /////////////////////////////////////////////////////////////////////////////// |
29 class MyFramePreview : public wxFrame | 29 class FramePreview : public wxFrame |
30 { | 30 { |
31 DECLARE_EVENT_TABLE() | |
31 private: | 32 private: |
32 | 33 |
33 protected: | 34 protected: |
34 wxStaticText* m_staticText1; | 35 wxStaticText* m_staticText1; |
35 wxStaticBitmap* m_bitmap1; | 36 wxStaticBitmap* m_bitmap1; |
36 wxStaticText* m_staticText2; | 37 wxStaticText* m_staticText2; |
37 wxStaticBitmap* m_bitmap2; | 38 wxStaticBitmap* m_bitmap2; |
38 wxStaticText* m_staticText3; | 39 wxStaticText* m_staticText3; |
39 wxStaticBitmap* m_bitmap3; | 40 wxStaticBitmap* m_bitmap3; |
40 wxStaticText* m_staticText4; | 41 wxStaticText* m_staticText4; |
41 wxStaticBitmap* m_bitmap4; | 42 wxStaticBitmap* m_bitmap4; |
42 wxStaticText* m_staticText5; | 43 wxStaticText* m_staticText5; |
43 wxStaticBitmap* m_bitmap5; | 44 wxStaticBitmap* m_bitmap5; |
44 wxScrolledWindow* m_scrolledWindow; | 45 |
45 wxStaticBitmap* m_bitmap; | 46 wxScrolledWindow* m_scrolledWindow; |
46 wxStaticText* m_staticText; | 47 wxStaticBitmap* m_bitmap; |
47 wxTextCtrl* m_textCtrl; | 48 |
48 wxStaticText* m_staticTextLarge; | 49 wxStaticText* m_staticText; |
49 wxSlider* m_slider; | 50 wxTextCtrl* m_textCtrl; |
50 wxStaticText* m_staticTextSmall; | 51 wxStaticText* m_staticTextLarge; |
51 | 52 wxSlider* m_slider; |
52 wxButton* m_buttonPrint; | 53 wxStaticText* m_staticTextSmall; |
53 wxButton* m_buttonPrintAll; | 54 wxButton* m_buttonPrint; |
54 wxButton* m_buttonClose; | 55 wxButton* m_buttonPrintAll; |
56 wxButton* m_buttonClose; | |
55 | 57 |
56 public: | 58 public: |
57 | 59 |
58 MyFramePreview( 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 ); | 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 ); |
59 ~MyFramePreview(); | 61 ~FramePreview(); |
62 | |
63 void CloseFrame(wxCommandEvent&); | |
64 void LoadImages(wxString); | |
65 void SetThumbnail(wxStaticText*, wxStaticBitmap*, wxString, wxString); | |
60 | 66 |
61 }; | 67 }; |
62 | 68 |
63 #endif //__PREVIEW__ | 69 #endif //__PREVIEW__ |
64 | 70 |