2008-12-28 14:32:49 +00: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 11:36:35 +00:00
|
|
|
class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop
|
2008-12-28 14:32:49 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGUIEventLoop();
|
2011-03-05 12:21:20 +00:00
|
|
|
~wxGUIEventLoop();
|
|
|
|
|
|
|
|
void BeginModalSession( wxWindow* modalWindow );
|
|
|
|
|
|
|
|
void EndModalSession();
|
2010-09-30 11:44:45 +00:00
|
|
|
|
2011-07-19 16:17:44 +00:00
|
|
|
virtual void WakeUp();
|
|
|
|
|
2012-05-02 19:30:11 +00:00
|
|
|
void OSXUseLowLevelWakeup(bool useIt)
|
|
|
|
{ m_osxLowLevelWakeUp = useIt ; }
|
|
|
|
|
2009-10-22 11:35:43 +00:00
|
|
|
protected:
|
2010-03-15 15:40:47 +00:00
|
|
|
virtual int DoDispatchTimeout(unsigned long timeout);
|
2010-09-30 11:44:45 +00:00
|
|
|
|
2013-07-03 00:24:34 +00:00
|
|
|
virtual void OSXDoRun();
|
|
|
|
virtual void OSXDoStop();
|
2010-09-30 11:44:45 +00:00
|
|
|
|
2010-04-22 06:16:34 +00:00
|
|
|
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
|
2011-03-05 12:21:20 +00:00
|
|
|
|
|
|
|
void* m_modalSession;
|
2011-06-06 16:32:41 +00:00
|
|
|
|
|
|
|
wxWindow* m_modalWindow;
|
|
|
|
|
2011-03-05 12:21:20 +00:00
|
|
|
WXWindow m_dummyWindow;
|
2011-06-06 16:32:41 +00:00
|
|
|
|
|
|
|
int m_modalNestedLevel;
|
2012-05-02 19:30:11 +00:00
|
|
|
|
|
|
|
bool m_osxLowLevelWakeUp;
|
2008-12-28 14:32:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_OSX_COCOA_EVTLOOP_H_
|
|
|
|
|