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
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
|
|
|
// 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
|
|
|
|
2010-03-17 03:14:03 -04:00
|
|
|
#ifdef __WXOSX_COCOA__
|
|
|
|
#include "wx/osx/cocoa/evtloop.h"
|
|
|
|
#else
|
|
|
|
#include "wx/osx/carbon/evtloop.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
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);
|
2010-09-30 07:44:45 -04:00
|
|
|
|
2010-03-17 03:14:03 -04:00
|
|
|
protected:
|
|
|
|
virtual void DoRun();
|
2010-09-30 07:44:45 -04:00
|
|
|
|
2010-03-17 03:14:03 -04:00
|
|
|
virtual void DoStop();
|
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_
|