]> git.saurik.com Git - wxWidgets.git/blame - samples/png/pngdemo.h
new dependencies tracking code
[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
788233da 12#if defined( __GNUG__) && !defined(__APPLE__)
c801d85f
KB
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);
2f6c54eb 34 virtual ~MyFrame();
c801d85f 35
c801d85f
KB
36 void OnActivate(bool) {}
37 void OnLoadFile(wxCommandEvent& event);
cf7a7e13 38 void OnSaveFile(wxCommandEvent& event);
c801d85f
KB
39 void OnQuit(wxCommandEvent& event);
40 void OnAbout(wxCommandEvent& event);
41DECLARE_EVENT_TABLE()
42};
43
44// Define a new canvas which can receive some events
45class MyCanvas: public wxScrolledWindow
46{
47 public:
48 MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size);
49 ~MyCanvas(void) ;
50
51 void OnPaint(wxPaintEvent& event);
52DECLARE_EVENT_TABLE()
53};
54
55#define PNGDEMO_QUIT 100
56#define PNGDEMO_ABOUT 101
57#define PNGDEMO_LOAD_FILE 102
cf7a7e13 58#define PNGDEMO_SAVE_FILE 103
c801d85f 59