1. wxTimer change - now generates EVT_TIMER()
2. wxStatusBar reorganisation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart and Markus Holzem
|
||||
// (c) 1999 Guillermo Rodriguez <guille@iies.es>
|
||||
// Licence: wxWindows license
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// ============================================================================
|
||||
@@ -57,6 +57,12 @@
|
||||
#include <sys/timeb.h>
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxWin macros
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxTimerEvent, wxEvent)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// macros
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -72,11 +78,29 @@
|
||||
#endif
|
||||
#endif // HAVE_GETTIMEOFDAY
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// prototypes
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxLongLong wxGetLocalTimeMillis();
|
||||
|
||||
// ============================================================================
|
||||
// implementation
|
||||
// ============================================================================
|
||||
|
||||
wxLongLong wxGetLocalTimeMillis();
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTimerBase
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxTimerBase::Notify()
|
||||
{
|
||||
// the base class version generates an event if it has owner - which it
|
||||
// should because otherwise nobody can process timer events
|
||||
wxCHECK_RET( m_owner, _T("wxTimer::Notify() should be overridden.") );
|
||||
|
||||
wxTimerEvent event(m_idTimer, m_milli);
|
||||
(void)m_owner->ProcessEvent(event);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxStopWatch
|
||||
|
||||
Reference in New Issue
Block a user