author | viric <viriketo@gmail.com> |
Sun, 24 Apr 2011 20:43:56 +0200 | |
changeset 4 | 6d09f682bc3e |
parent 2 | b2772bffb62f |
permissions | -rw-r--r-- |
0 | 1 |
#include <wx/scrolwin.h> |
2 |
#include <wx/dcclient.h> |
|
3 |
#include "CropArea.hpp" |
|
4 |
||
5 |
class wxPictureWindow : public wxScrolledWindow |
|
6 |
{ |
|
7 |
public: |
|
2 | 8 |
wxPictureWindow(const wxString &img, CropArea area, wxWindow *parent); |
0 | 9 |
~wxPictureWindow(); |
2 | 10 |
void SetImg(const wxString &img); |
0 | 11 |
protected: |
12 |
virtual void OnDraw(wxDC &dc); |
|
13 |
void OnMouse(wxMouseEvent &ev); |
|
1
506e0fc65ba3
Ara processo la tecla ESC, almenys, i ho preparo per un next_picture
viric <viriketo@gmail.com>
parents:
0
diff
changeset
|
14 |
void OnKey(wxKeyEvent &ev); |
0 | 15 |
|
16 |
private: |
|
17 |
wxString _filename; |
|
18 |
wxBitmap _bmp; |
|
19 |
CropArea _area; |
|
20 |
||
21 |
DECLARE_EVENT_TABLE() |
|
22 |
}; |