]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/png/pngdemo.h
Removed outdated module definition files for VAC++.
[wxWidgets.git] / samples / png / pngdemo.h
... / ...
CommitLineData
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#if defined( __GNUG__) && !defined(__APPLE__)
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 virtual ~MyFrame();
35
36 void OnActivate(bool) {}
37 void OnLoadFile(wxCommandEvent& event);
38 void OnSaveFile(wxCommandEvent& event);
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
58#define PNGDEMO_SAVE_FILE 103
59