anitest.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: anitest.cpp
  3. // Purpose: anitest sample
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 02/07/2001
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #include "wx/animate.h"
  11. // Define a new application
  12. class MyApp : public wxApp
  13. {
  14. public:
  15. bool OnInit();
  16. };
  17. // Define a new frame
  18. class MyFrame : public wxFrame
  19. {
  20. public:
  21. MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title,
  22. const wxPoint& pos, const wxSize& size, const long style);
  23. ~MyFrame();
  24. void OnAbout(wxCommandEvent& event);
  25. void OnQuit(wxCommandEvent& event);
  26. void OnPlay(wxCommandEvent& event);
  27. void OnSetNullAnimation(wxCommandEvent& event);
  28. void OnSetInactiveBitmap(wxCommandEvent& event);
  29. void OnSetNoAutoResize(wxCommandEvent& event);
  30. void OnSetBgColor(wxCommandEvent& event);
  31. void OnStop(wxCommandEvent& event);
  32. void OnUpdateUI(wxUpdateUIEvent& event);
  33. #if wxUSE_FILEDLG
  34. void OnOpen(wxCommandEvent& event);
  35. #endif // wxUSE_FILEDLG
  36. wxAnimationCtrl* GetAnimationCtrl() const { return m_animationCtrl; }
  37. protected:
  38. wxAnimationCtrl* m_animationCtrl;
  39. private:
  40. wxDECLARE_EVENT_TABLE();
  41. };