m_isActive = true;
m_isInsideYield = false;
+ m_eventsToProcessInsideYield = wxEVT_CATEGORY_ALL;
// We don't want to exit the app if the user code shows a dialog from its
// OnInit() -- but this is what would happen if we set m_exitOnFrameDelete
(void)ProcessEvent(event);
}
+bool wxAppBase::IsEventAllowedInsideYield(wxEventCategory cat) const
+{
+ return m_eventsToProcessInsideYield & cat;
+}
+
+bool wxAppBase::SafeYield(wxWindow *win, bool onlyIfNeeded)
+{
+ wxWindowDisabler wd(win);
+
+ return Yield(onlyIfNeeded);
+}
+
+bool wxAppBase::SafeYieldFor(wxWindow *win, long eventsToProcess)
+{
+ wxWindowDisabler wd(win);
+
+ return YieldFor(eventsToProcess);
+}
+
+
// ----------------------------------------------------------------------------
// idle handling
// ----------------------------------------------------------------------------