]> git.saurik.com Git - wxWidgets.git/blame - samples/png/pngdemo.h
i18n files are installed as part of wxBase (and should be ideally part of separate...
[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$
6aa89a22 8// Copyright: (c) Julian Smart
2f6c54eb 9// Licence: wxWindows license
c801d85f
KB
10/////////////////////////////////////////////////////////////////////////////
11
c801d85f
KB
12#include "wx/wx.h"
13
14// Define a new application
15class MyApp: public wxApp
16{
17 public:
925e9792 18 MyApp(void){};
c801d85f
KB
19 bool OnInit(void);
20};
21
22// Define a new frame
23class MyCanvas;
24
25class MyFrame: public wxFrame
26{
27 public:
28 MyCanvas *canvas;
29 MyFrame(wxFrame *parent, const wxString& title, const wxPoint& pos, const wxSize& size);
2f6c54eb 30 virtual ~MyFrame();
c801d85f 31
c801d85f
KB
32 void OnActivate(bool) {}
33 void OnLoadFile(wxCommandEvent& event);
cf7a7e13 34 void OnSaveFile(wxCommandEvent& event);
c801d85f
KB
35 void OnQuit(wxCommandEvent& event);
36 void OnAbout(wxCommandEvent& event);
37DECLARE_EVENT_TABLE()
38};
39
40// Define a new canvas which can receive some events
41class MyCanvas: public wxScrolledWindow
42{
43 public:
44 MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size);
925e9792 45 ~MyCanvas(void){};
c801d85f
KB
46
47 void OnPaint(wxPaintEvent& event);
48DECLARE_EVENT_TABLE()
49};
50
51#define PNGDEMO_QUIT 100
52#define PNGDEMO_ABOUT 101
53#define PNGDEMO_LOAD_FILE 102
cf7a7e13 54#define PNGDEMO_SAVE_FILE 103
c801d85f 55