2008-12-28 09:32:49 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/osx/cocoa/evtloop.h
|
|
|
|
// Purpose: declaration of wxGUIEventLoop for wxOSX/Cocoa
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Created: 2008-12-28
|
|
|
|
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_OSX_COCOA_EVTLOOP_H_
|
|
|
|
#define _WX_OSX_COCOA_EVTLOOP_H_
|
|
|
|
|
2009-10-22 07:36:35 -04:00
|
|
|
class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop
|
2008-12-28 09:32:49 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGUIEventLoop();
|
2011-03-05 07:21:20 -05:00
|
|
|
~wxGUIEventLoop();
|
|
|
|
|
|
|
|
void BeginModalSession( wxWindow* modalWindow );
|
|
|
|
|
|
|
|
void EndModalSession();
|
2010-09-30 07:44:45 -04:00
|
|
|
|
2011-07-19 12:17:44 -04:00
|
|
|
virtual void WakeUp();
|
|
|
|
|
2012-05-02 15:30:11 -04:00
|
|
|
void OSXUseLowLevelWakeup(bool useIt)
|
|
|
|
{ m_osxLowLevelWakeUp = useIt ; }
|
|
|
|
|
2009-10-22 07:35:43 -04:00
|
|
|
protected:
|
2010-03-15 11:40:47 -04:00
|
|
|
virtual int DoDispatchTimeout(unsigned long timeout);
|
2010-09-30 07:44:45 -04:00
|
|
|
|
2013-07-02 20:24:34 -04:00
|
|
|
virtual void OSXDoRun();
|
|
|
|
virtual void OSXDoStop();
|
2010-09-30 07:44:45 -04:00
|
|
|
|
2010-04-22 02:16:34 -04:00
|
|
|
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
|
2011-03-05 07:21:20 -05:00
|
|
|
|
|
|
|
void* m_modalSession;
|
2011-06-06 12:32:41 -04:00
|
|
|
|
|
|
|
wxWindow* m_modalWindow;
|
|
|
|
|
2011-03-05 07:21:20 -05:00
|
|
|
WXWindow m_dummyWindow;
|
2011-06-06 12:32:41 -04:00
|
|
|
|
|
|
|
int m_modalNestedLevel;
|
2012-05-02 15:30:11 -04:00
|
|
|
|
|
|
|
bool m_osxLowLevelWakeUp;
|
2008-12-28 09:32:49 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_OSX_COCOA_EVTLOOP_H_
|
|
|
|
|