]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/animate/anitest.h
don't build the GUI version of tex2rtf wif --disable-gui
[wxWidgets.git] / contrib / samples / animate / anitest.h
CommitLineData
4638d697
JS
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/animate.h"
13
14// Define a new application
15class MyApp : public wxApp
16{
17public:
18 bool OnInit();
19};
20
21class MyCanvas : public wxScrolledWindow
22{
23public:
24 MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size);
25 void OnPaint(wxPaintEvent& event);
26
27private:
28
29 DECLARE_EVENT_TABLE()
30};
31
32// Define a new frame
33class MyFrame : public wxFrame
34{
35public:
36
37 MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title,
38 const wxPoint& pos, const wxSize& size, const long style);
39 ~MyFrame();
40
41 void OnAbout(wxCommandEvent& event);
42 void OnQuit(wxCommandEvent& event);
43
44 void OnOpen(wxCommandEvent& event);
45
46 MyCanvas* GetCanvas() const { return m_canvas; }
47 wxGIFAnimationCtrl* GetAnimationCtrl() const { return m_animationCtrl; }
48
49#if 0
50 wxAnimationPlayer& GetPlayer() { return m_player; }
51 wxAnimationBase& GetAnimation() { return m_animation; }
52#endif
53
54 DECLARE_EVENT_TABLE()
55
56protected:
57 MyCanvas* m_canvas;
58 wxGIFAnimationCtrl* m_animationCtrl;
59#if 0
60 wxAnimationPlayer m_player;
61 wxGIFAnimation m_animation;
62#endif
63};
64
65// menu items ids
66enum
67{
68 ANITEST_QUIT = 100,
69 ANITEST_OPEN,
70 ANITEST_ABOUT
71};