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>
|
4
|
17 #include <wx/imaglist.h>
|
1
|
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>
|
4
|
25 #include <wx/listctrl.h>
|
1
|
26
|
|
27 ///////////////////////////////////////////////////////////////////////////////
|
3
|
28 /// Class FramePreview
|
1
|
29 ///////////////////////////////////////////////////////////////////////////////
|
3
|
30 class FramePreview : public wxFrame
|
1
|
31 {
|
3
|
32 DECLARE_EVENT_TABLE()
|
1
|
33 private:
|
4
|
34 wxImageList* m_imageList;
|
|
35 wxListItem* m_listItem;
|
1
|
36
|
|
37 protected:
|
4
|
38 wxListCtrl* m_listCtrl;
|
3
|
39
|
|
40 wxScrolledWindow* m_scrolledWindow;
|
|
41 wxStaticBitmap* m_bitmap;
|
|
42
|
|
43 wxStaticText* m_staticText;
|
|
44 wxTextCtrl* m_textCtrl;
|
|
45 wxStaticText* m_staticTextLarge;
|
|
46 wxSlider* m_slider;
|
|
47 wxStaticText* m_staticTextSmall;
|
|
48 wxButton* m_buttonPrint;
|
|
49 wxButton* m_buttonPrintAll;
|
|
50 wxButton* m_buttonClose;
|
1
|
51
|
|
52 public:
|
|
53
|
3
|
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 );
|
|
55 ~FramePreview();
|
|
56
|
|
57 void CloseFrame(wxCommandEvent&);
|
|
58 void LoadImages(wxString);
|
1
|
59 };
|
|
60
|
|
61 #endif //__PREVIEW__
|
|
62
|