]> git.saurik.com Git - wxWidgets.git/blob - samples/png/pngdemo.h
Map illegal UTF-8 sequences to a range in Unicode's private use area as
[wxWidgets.git] / samples / png / pngdemo.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: bitmap.h
3 // Purpose: wxBitmap class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/wx.h"
13
14 // Define a new application
15 class MyApp: public wxApp
16 {
17 public:
18 MyApp(void){};
19 bool OnInit(void);
20 };
21
22 // Define a new frame
23 class MyCanvas;
24
25 class MyFrame: public wxFrame
26 {
27 public:
28 MyCanvas *canvas;
29 MyFrame(wxFrame *parent, const wxString& title, const wxPoint& pos, const wxSize& size);
30 virtual ~MyFrame();
31
32 void OnActivate(bool) {}
33 void OnLoadFile(wxCommandEvent& event);
34 void OnSaveFile(wxCommandEvent& event);
35 void OnQuit(wxCommandEvent& event);
36 void OnAbout(wxCommandEvent& event);
37 DECLARE_EVENT_TABLE()
38 };
39
40 // Define a new canvas which can receive some events
41 class MyCanvas: public wxScrolledWindow
42 {
43 public:
44 MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size);
45 ~MyCanvas(void){};
46
47 void OnPaint(wxPaintEvent& event);
48 DECLARE_EVENT_TABLE()
49 };
50
51 #define PNGDEMO_QUIT 100
52 #define PNGDEMO_ABOUT 101
53 #define PNGDEMO_LOAD_FILE 102
54 #define PNGDEMO_SAVE_FILE 103
55