]> git.saurik.com Git - wxWidgets.git/blame - samples/png/pngdemo.h
Added the forgotten file txtstrm.tex
[wxWidgets.git] / samples / png / pngdemo.h
CommitLineData
c801d85f
KB
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
19class MyApp: public wxApp
20{
21 public:
22 MyApp(void) ;
23 bool OnInit(void);
24};
25
26// Define a new frame
27class MyCanvas;
28
29class MyFrame: public wxFrame
30{
31 public:
32 MyCanvas *canvas;
33 MyFrame(wxFrame *parent, const wxString& title, const wxPoint& pos, const wxSize& size);
34
c801d85f
KB
35 void OnActivate(bool) {}
36 void OnLoadFile(wxCommandEvent& event);
cf7a7e13 37 void OnSaveFile(wxCommandEvent& event);
c801d85f
KB
38 void OnQuit(wxCommandEvent& event);
39 void OnAbout(wxCommandEvent& event);
40DECLARE_EVENT_TABLE()
41};
42
43// Define a new canvas which can receive some events
44class 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);
51DECLARE_EVENT_TABLE()
52};
53
54#define PNGDEMO_QUIT 100
55#define PNGDEMO_ABOUT 101
56#define PNGDEMO_LOAD_FILE 102
cf7a7e13 57#define PNGDEMO_SAVE_FILE 103
c801d85f 58