1
|
1 // Filename : hhsdb.h
|
3
|
2 // Last Change: 09-Apr-2011.
|
1
|
3 //
|
|
4 #ifndef __PREVIEW__
|
|
5 #define __PREVIEW__
|
|
6
|
|
7 #include "common.h"
|
|
8
|
|
9 #include <wx/string.h>
|
|
10 #include <wx/stattext.h>
|
|
11 #include <wx/gdicmn.h>
|
|
12 #include <wx/font.h>
|
|
13 #include <wx/colour.h>
|
|
14 #include <wx/settings.h>
|
|
15 #include <wx/bitmap.h>
|
|
16 #include <wx/image.h>
|
|
17 #include <wx/icon.h>
|
|
18 #include <wx/statbmp.h>
|
|
19 #include <wx/sizer.h>
|
|
20 #include <wx/scrolwin.h>
|
|
21 #include <wx/textctrl.h>
|
|
22 #include <wx/slider.h>
|
|
23 #include <wx/button.h>
|
|
24 #include <wx/frame.h>
|
|
25
|
|
26 ///////////////////////////////////////////////////////////////////////////////
|
3
|
27 /// Class FramePreview
|
1
|
28 ///////////////////////////////////////////////////////////////////////////////
|
3
|
29 class FramePreview : public wxFrame
|
1
|
30 {
|
3
|
31 DECLARE_EVENT_TABLE()
|
1
|
32 private:
|
|
33
|
|
34 protected:
|
3
|
35 wxStaticText* m_staticText1;
|
|
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
|
|
46 wxScrolledWindow* m_scrolledWindow;
|
|
47 wxStaticBitmap* m_bitmap;
|
|
48
|
|
49 wxStaticText* m_staticText;
|
|
50 wxTextCtrl* m_textCtrl;
|
|
51 wxStaticText* m_staticTextLarge;
|
|
52 wxSlider* m_slider;
|
|
53 wxStaticText* m_staticTextSmall;
|
|
54 wxButton* m_buttonPrint;
|
|
55 wxButton* m_buttonPrintAll;
|
|
56 wxButton* m_buttonClose;
|
1
|
57
|
|
58 public:
|
|
59
|
3
|
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 );
|
|
61 ~FramePreview();
|
|
62
|
|
63 void CloseFrame(wxCommandEvent&);
|
|
64 void LoadImages(wxString);
|
|
65 void SetThumbnail(wxStaticText*, wxStaticBitmap*, wxString, wxString);
|
1
|
66
|
|
67 };
|
|
68
|
|
69 #endif //__PREVIEW__
|
|
70
|