]> git.saurik.com Git - wxWidgets.git/blob - samples/animate/anitest.h
use window's font instead of the default one in wxStatusBar
[wxWidgets.git] / samples / animate / anitest.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: anitest.cpp
3 // Purpose: anitest sample
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 02/07/2001
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/animate.h"
13
14 // Define a new application
15 class MyApp : public wxApp
16 {
17 public:
18 bool OnInit();
19 };
20
21 class MyCanvas : public wxScrolledWindow
22 {
23 public:
24 MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size);
25 void OnPaint(wxPaintEvent& event);
26
27 private:
28 DECLARE_EVENT_TABLE()
29 };
30
31 // Define a new frame
32 class MyFrame : public wxFrame
33 {
34 public:
35
36 MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title,
37 const wxPoint& pos, const wxSize& size, const long style);
38 ~MyFrame();
39
40 void OnAbout(wxCommandEvent& event);
41 void OnQuit(wxCommandEvent& event);
42
43 void OnPlay(wxCommandEvent& event);
44 void OnStop(wxCommandEvent& event);
45
46 void OnUpdateUI(wxUpdateUIEvent& event);
47
48 #if wxUSE_FILEDLG
49 void OnOpen(wxCommandEvent& event);
50 #endif // wxUSE_FILEDLG
51
52 MyCanvas* GetCanvas() const { return m_canvas; }
53 wxAnimationCtrl* GetAnimationCtrl() const { return m_animationCtrl; }
54
55 protected:
56 MyCanvas* m_canvas;
57 wxAnimationCtrl* m_animationCtrl;
58
59 private:
60 DECLARE_EVENT_TABLE()
61 };