]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/samples/canvas/simple/simple.h
Added __WXX11__ tests where appropriate
[wxWidgets.git] / contrib / samples / canvas / simple / simple.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: simple.h
3// Author: XX
4// Created: XX/XX/XX
5// Copyright:
6/////////////////////////////////////////////////////////////////////////////
7
8#ifndef __simple_H__
9#define __simple_H__
10
11#ifdef __GNUG__
12 #pragma interface "simple.cpp"
13#endif
14
15// Include wxWindows' headers
16
17#ifndef WX_PRECOMP
18 #include <wx/wx.h>
19#endif
20
21#include "wx/canvas/canvas.h"
22#include "wx/timer.h"
23
24//----------------------------------------------------------------------------
25// constants
26//----------------------------------------------------------------------------
27
28#define ID_QUIT 101
29
30// WDR: class declarations
31
32//----------------------------------------------------------------------------
33// MyFrame
34//----------------------------------------------------------------------------
35
36class MyFrame: public wxFrame
37{
38public:
39 // constructors and destructors
40 MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize,
43 long style = wxDEFAULT_FRAME_STYLE );
44 ~MyFrame();
45
46private:
47 // WDR: method declarations for MyFrame
48 void CreateMyMenuBar();
49
50private:
51 // WDR: member variable declarations for MyFrame
52 wxCanvasImage *m_smile1;
53 wxCanvasImage *m_smile2;
54 wxCanvasAdmin *m_admin;
55 wxTimer *m_timer;
56
57private:
58 // WDR: handler declarations for MyFrame
59 void OnQuit( wxCommandEvent &event );
60 void OnCloseWindow( wxCloseEvent &event );
61 void OnTimer( wxTimerEvent &event );
62
63private:
64 DECLARE_EVENT_TABLE()
65};
66
67//----------------------------------------------------------------------------
68// MyApp
69//----------------------------------------------------------------------------
70
71class MyApp: public wxApp
72{
73public:
74 MyApp();
75
76 virtual bool OnInit();
77 virtual int OnExit();
78};
79
80#endif