X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2a19d941d7796fcc82e752b036eea5f8ed0fa2c..59840ba3b16e4baf3228dd79c6b7ae40b55cf488:/include/wx/timer.h diff --git a/include/wx/timer.h b/include/wx/timer.h index ae1da9917b..8cf9cbd482 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -49,9 +49,7 @@ public: void SetOwner(wxEvtHandler *owner, int id = -1) { m_owner = owner; m_idTimer = id; } -#ifdef __DARWIN__ - virtual ~wxTimerBase() { } -#endif + virtual ~wxTimerBase(); // working with the timer // ---------------------- @@ -109,10 +107,8 @@ protected: #include "wx/motif/timer.h" #elif defined(__WXGTK__) #include "wx/gtk/timer.h" -#elif defined(__WXMGL__) - #include "wx/mgl/timer.h" -#elif defined(__WXQT__) - #include "wx/qt/timer.h" +#elif defined(__WXX11__) || defined(__WXMGL__) + #include "wx/generic/timer.h" #elif defined(__WXMAC__) #include "wx/mac/timer.h" #elif defined(__WXPM__) @@ -169,6 +165,9 @@ public: // accessors int GetInterval() const { return m_interval; } + // implement the base class pure virtual + virtual wxEvent *Clone() const { return new wxTimerEvent(*this); } + private: int m_interval;