2008-06-11 12:30:48 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2010-07-13 09:29:58 -04:00
|
|
|
// Name: wx/osx/evtloop.h
|
|
|
|
// Purpose: simply forwards to wx/osx/carbon/evtloop.h or
|
|
|
|
// wx/osx/cocoa/evtloop.h for consistency with the other Mac
|
|
|
|
// headers
|
2008-06-11 12:30:48 -04:00
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2006-01-12
|
2019-04-22 08:12:05 -04:00
|
|
|
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwidgets.org>
|
2008-06-11 12:30:48 -04:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2009-10-22 07:36:35 -04:00
|
|
|
#ifndef _WX_OSX_EVTLOOP_H_
|
|
|
|
#define _WX_OSX_EVTLOOP_H_
|
2008-06-11 12:30:48 -04:00
|
|
|
|
2016-01-22 09:40:58 -05:00
|
|
|
#include "wx/osx/cocoa/evtloop.h"
|
2010-03-17 03:14:03 -04:00
|
|
|
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxNonOwnedWindow;
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxModalEventLoop : public wxGUIEventLoop
|
|
|
|
{
|
|
|
|
public:
|
2010-04-08 05:46:36 -04:00
|
|
|
wxModalEventLoop(wxWindow *modalWindow);
|
|
|
|
wxModalEventLoop(WXWindow modalNativeWindow);
|
2019-01-30 11:28:08 -05:00
|
|
|
|
2013-07-27 16:22:40 -04:00
|
|
|
#ifdef __WXOSX_COCOA__
|
|
|
|
// skip wxGUIEventLoop to avoid missing Enter/Exit notifications
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual int Run() wxOVERRIDE { return wxCFEventLoop::Run(); }
|
2013-07-27 16:22:40 -04:00
|
|
|
#endif
|
2010-03-17 03:14:03 -04:00
|
|
|
protected:
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void OSXDoRun() wxOVERRIDE;
|
|
|
|
virtual void OSXDoStop() wxOVERRIDE;
|
2010-09-30 07:44:45 -04:00
|
|
|
|
2010-03-17 03:14:03 -04:00
|
|
|
// (in case) the modal window for this event loop
|
|
|
|
wxNonOwnedWindow* m_modalWindow;
|
2010-04-08 05:46:36 -04:00
|
|
|
WXWindow m_modalNativeWindow;
|
2010-03-17 03:14:03 -04:00
|
|
|
};
|
|
|
|
|
2009-10-22 07:36:35 -04:00
|
|
|
#endif // _WX_OSX_EVTLOOP_H_
|