]> git.saurik.com Git - wxWidgets.git/blob - samples/png/pngdemo.h
Added the forgotten file txtstrm.tex
[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 and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma interface
14 #endif
15
16 #include "wx/wx.h"
17
18 // Define a new application
19 class MyApp: public wxApp
20 {
21 public:
22 MyApp(void) ;
23 bool OnInit(void);
24 };
25
26 // Define a new frame
27 class MyCanvas;
28
29 class MyFrame: public wxFrame
30 {
31 public:
32 MyCanvas *canvas;
33 MyFrame(wxFrame *parent, const wxString& title, const wxPoint& pos, const wxSize& size);
34
35 void OnActivate(bool) {}
36 void OnLoadFile(wxCommandEvent& event);
37 void OnSaveFile(wxCommandEvent& event);
38 void OnQuit(wxCommandEvent& event);
39 void OnAbout(wxCommandEvent& event);
40 DECLARE_EVENT_TABLE()
41 };
42
43 // Define a new canvas which can receive some events
44 class MyCanvas: public wxScrolledWindow
45 {
46 public:
47 MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size);
48 ~MyCanvas(void) ;
49
50 void OnPaint(wxPaintEvent& event);
51 DECLARE_EVENT_TABLE()
52 };
53
54 #define PNGDEMO_QUIT 100
55 #define PNGDEMO_ABOUT 101
56 #define PNGDEMO_LOAD_FILE 102
57 #define PNGDEMO_SAVE_FILE 103
58