author | viric <viriketo@gmail.com> |
Sun, 24 Apr 2011 17:24:28 +0200 | |
changeset 3 | b29987bfe7ed |
parent 2 | b2772bffb62f |
permissions | -rw-r--r-- |
#include <wx/scrolwin.h> #include <wx/dcclient.h> #include "CropArea.hpp" class wxPictureWindow : public wxScrolledWindow { public: wxPictureWindow(const wxString &img, CropArea area, wxWindow *parent); ~wxPictureWindow(); void SetImg(const wxString &img); protected: virtual void OnDraw(wxDC &dc); void OnMouse(wxMouseEvent &ev); void OnKey(wxKeyEvent &ev); private: wxString _filename; wxBitmap _bmp; CropArea _area; DECLARE_EVENT_TABLE() };