// Modified by: Vadim Zeitlin (wxTimerBase)
// Guillermo Rodriguez (global clean up)
// Created: 04/01/98
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// timer if it is already running
virtual bool Start(int milliseconds = -1, bool oneShot = false);
+ // start the timer for one iteration only, this is just a simple wrapper
+ // for Start()
+ bool StartOnce(int milliseconds = -1) { return Start(milliseconds, true); }
+
// stop the timer, does nothing if the timer is not running
virtual void Stop();
wxTimerImpl *m_impl;
- DECLARE_NO_COPY_CLASS(wxTimer)
+ wxDECLARE_NO_COPY_CLASS(wxTimer);
};
// ----------------------------------------------------------------------------
private:
wxTimer& m_timer;
- DECLARE_NO_COPY_CLASS(wxTimerRunner)
+ wxDECLARE_NO_COPY_CLASS(wxTimerRunner);
};
// ----------------------------------------------------------------------------