diff include/preview.h @ 3:75fefb53d983

update preview.
author pyon@macmini
date Sat, 09 Apr 2011 12:48:20 +0900
parents e0cf49906039
children d924b09ea2f3
line wrap: on
line diff
--- a/include/preview.h	Thu Apr 07 19:56:47 2011 +0900
+++ b/include/preview.h	Sat Apr 09 12:48:20 2011 +0900
@@ -1,5 +1,5 @@
 // Filename   : hhsdb.h
-// Last Change: 07-Apr-2011.
+// Last Change: 09-Apr-2011.
 //
 #ifndef __PREVIEW__
 #define __PREVIEW__
@@ -24,39 +24,45 @@
 #include <wx/frame.h>
 
 ///////////////////////////////////////////////////////////////////////////////
-/// Class MyFramePreview
+/// Class FramePreview
 ///////////////////////////////////////////////////////////////////////////////
-class MyFramePreview : public wxFrame 
+class FramePreview : public wxFrame 
 {
+    DECLARE_EVENT_TABLE()
 	private:
 	
 	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;
-		wxScrolledWindow* m_scrolledWindow;
-		wxStaticBitmap* m_bitmap;
-		wxStaticText* m_staticText;
-		wxTextCtrl* m_textCtrl;
-		wxStaticText* m_staticTextLarge;
-		wxSlider* m_slider;
-		wxStaticText* m_staticTextSmall;
-		
-		wxButton* m_buttonPrint;
-		wxButton* m_buttonPrintAll;
-		wxButton* m_buttonClose;
+		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;
+
+		wxScrolledWindow*	m_scrolledWindow;
+		wxStaticBitmap*		m_bitmap;
+
+		wxStaticText*		m_staticText;
+		wxTextCtrl*	    	m_textCtrl;
+		wxStaticText*		m_staticTextLarge;
+		wxSlider*	    	m_slider;
+		wxStaticText*		m_staticTextSmall;
+		wxButton*	        m_buttonPrint;
+		wxButton*       	m_buttonPrintAll;
+		wxButton*       	m_buttonClose;
 	
 	public:
 		
-		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 );
-		~MyFramePreview();
+		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 );
+		~FramePreview();
+
+        void CloseFrame(wxCommandEvent&);
+        void LoadImages(wxString);
+        void SetThumbnail(wxStaticText*, wxStaticBitmap*, wxString, wxString);
 	
 };