no real change; just reordered some implementations before real commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -106,10 +106,6 @@
|
||||
|
||||
#if wxUSE_BASE
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// common data
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// ============================================================================
|
||||
// implementation
|
||||
// ============================================================================
|
||||
@@ -166,6 +162,16 @@ wxString wxDecToHex(int dec)
|
||||
// misc functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Don't synthesize KeyUp events holding down a key and producing KeyDown
|
||||
// events with autorepeat. On by default and always on in wxMSW. wxGTK version
|
||||
// in utilsgtk.cpp.
|
||||
#ifndef __WXGTK__
|
||||
bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
|
||||
{
|
||||
return true; // detectable auto-repeat is the only mode MSW supports
|
||||
}
|
||||
#endif // !wxGTK
|
||||
|
||||
// Return the current date/time
|
||||
wxString wxNow()
|
||||
{
|
||||
@@ -224,6 +230,10 @@ bool wxIsPlatformLittleEndian()
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxPlatform
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
* Class to make it easier to specify platform-dependent values
|
||||
*/
|
||||
@@ -644,19 +654,9 @@ long wxExecute(const wxString& command,
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxApp::Yield() wrappers for backwards compatibility
|
||||
// Id functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
bool wxYield()
|
||||
{
|
||||
return wxTheApp && wxTheApp->Yield();
|
||||
}
|
||||
|
||||
bool wxYieldIfNeeded()
|
||||
{
|
||||
return wxTheApp && wxTheApp->Yield(true);
|
||||
}
|
||||
|
||||
// Id generation
|
||||
static long wxCurrentId = 100;
|
||||
|
||||
@@ -922,10 +922,10 @@ void wxQsort(void *const pbase, size_t total_elems,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif // wxUSE_BASE
|
||||
|
||||
|
||||
|
||||
// ============================================================================
|
||||
// GUI-only functions from now on
|
||||
// ============================================================================
|
||||
@@ -1680,14 +1680,18 @@ bool wxSafeYield(wxWindow *win, bool onlyIfNeeded)
|
||||
return rc;
|
||||
}
|
||||
|
||||
// Don't synthesize KeyUp events holding down a key and producing KeyDown
|
||||
// events with autorepeat. On by default and always on in wxMSW. wxGTK version
|
||||
// in utilsgtk.cpp.
|
||||
#ifndef __WXGTK__
|
||||
bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxApp::Yield() wrappers for backwards compatibility
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
bool wxYield()
|
||||
{
|
||||
return true; // detectable auto-repeat is the only mode MSW supports
|
||||
return wxTheApp && wxTheApp->Yield();
|
||||
}
|
||||
|
||||
bool wxYieldIfNeeded()
|
||||
{
|
||||
return wxTheApp && wxTheApp->Yield(true);
|
||||
}
|
||||
#endif // !wxGTK
|
||||
|
||||
#endif // wxUSE_GUI
|
||||
|
Reference in New Issue
Block a user