support wxWindowDisabler on osx_cocoa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-03-05 12:21:20 +00:00
parent dc90b8d411
commit 902ddbfd3e
4 changed files with 231 additions and 42 deletions

View File

@@ -1567,6 +1567,12 @@ void wxEnableTopLevelWindows(bool enable)
node->GetData()->Enable(enable);
}
#if defined(__WXOSX__) && wxOSX_USE_COCOA
// defined in evtloop.mm
#else
wxWindowDisabler::wxWindowDisabler(bool disable)
{
m_disabled = disable;
@@ -1629,6 +1635,8 @@ wxWindowDisabler::~wxWindowDisabler()
delete m_winDisabled;
}
#endif
// Yield to other apps/messages and disable user input to all windows except
// the given one
bool wxSafeYield(wxWindow *win, bool onlyIfNeeded)