diff include/preview.h @ 9:b455f2d8aac9

Implement Preview.
author pyon@macmini
date Thu, 24 Apr 2014 18:31:39 +0900
parents
children 29021e6e1ebe
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/preview.h	Thu Apr 24 18:31:39 2014 +0900
@@ -0,0 +1,39 @@
+// Filename   : preview.h
+// Last Change: 23-Apr-2014.
+//
+
+#ifndef __PREVIEW_H__
+#define __PREVIEW_H__
+
+#include "common.h"
+
+class PreviewDialog : public wxDialog 
+{
+    DECLARE_EVENT_TABLE()
+	private:
+        wxImageList*      m_imageList;
+        wxString          m_preview;
+        wxString          m_dir;
+	
+	protected:
+        wxScrolledWindow* m_scrolledWindow;
+		wxStaticBitmap*   m_bitmap;
+        wxListCtrl*       m_listCtrl;
+		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 SetImage( wxString file );
+        void OnPrint( wxCommandEvent& event );
+};
+
+enum {
+    ID_PRINT = wxID_HIGHEST + 80,
+    ID_PLIST,
+};
+
+#endif //__PREVIEW_H__
+