view 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 source

// 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__