mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Upgrade WX to r74856, mainly to support @2x.
This commit is contained in:
@ -4,7 +4,6 @@
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 2007/05/10
|
||||
// RCS-ID: $Id: cfdataref.h 67280 2011-03-22 14:17:38Z DS $
|
||||
// Copyright: (c) 2007 Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
// Notes: See http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBinaryData/index.html
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: David Elliott <dfe@cox.net>
|
||||
// Modified by: Stefan Csomor
|
||||
// Created: 2007/05/10
|
||||
// RCS-ID: $Id: cfref.h 67280 2011-03-22 14:17:38Z DS $
|
||||
// Copyright: (c) 2007 David Elliott <dfe@cox.net>, Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
// Notes: See http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/index.html
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 2004-10-29 (from code in wx/mac/carbon/private.h)
|
||||
// RCS-ID: $Id: cfstring.h 64943 2010-07-13 13:29:58Z VZ $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
// Usage: Darwin (base library)
|
||||
@ -71,8 +70,10 @@ public:
|
||||
wxString AsString( wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) const;
|
||||
|
||||
static wxString AsString( CFStringRef ref, wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ;
|
||||
static wxString AsStringWithNormalizationFormC( CFStringRef ref, wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ;
|
||||
#if wxOSX_USE_COCOA_OR_IPHONE
|
||||
static wxString AsString( NSString* ref, wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ;
|
||||
static wxString AsStringWithNormalizationFormC( NSString* ref, wxFontEncoding encoding = wxFONTENCODING_DEFAULT ) ;
|
||||
#endif
|
||||
|
||||
#if wxOSX_USE_COCOA_OR_IPHONE
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 1998-01-01
|
||||
// RCS-ID: $Id: colour.h 70165 2011-12-29 14:42:13Z SN $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Name: wx/osx/core/dataview.h
|
||||
// Purpose: wxDataViewCtrl native implementation header for OSX
|
||||
// Author:
|
||||
// Id: $Id: dataview.h 57374 2009-01-27
|
||||
// Copyright: (c) 2009
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
114
Externals/wxWidgets3/include/wx/osx/core/evtloop.h
vendored
Normal file
114
Externals/wxWidgets3/include/wx/osx/core/evtloop.h
vendored
Normal file
@ -0,0 +1,114 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/core/evtloop.h
|
||||
// Purpose: CoreFoundation-based event loop
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 2006-01-12
|
||||
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_OSX_CORE_EVTLOOP_H_
|
||||
#define _WX_OSX_CORE_EVTLOOP_H_
|
||||
|
||||
DECLARE_WXOSX_OPAQUE_CFREF( CFRunLoop );
|
||||
DECLARE_WXOSX_OPAQUE_CFREF( CFRunLoopObserver );
|
||||
|
||||
class WXDLLIMPEXP_FWD_BASE wxCFEventLoopPauseIdleEvents;
|
||||
|
||||
class WXDLLIMPEXP_BASE wxCFEventLoop : public wxEventLoopBase
|
||||
{
|
||||
friend class wxCFEventLoopPauseIdleEvents;
|
||||
public:
|
||||
wxCFEventLoop();
|
||||
virtual ~wxCFEventLoop();
|
||||
|
||||
// sets the "should exit" flag and wakes up the loop so that it terminates
|
||||
// soon
|
||||
virtual void ScheduleExit(int rc = 0);
|
||||
|
||||
// return true if any events are available
|
||||
virtual bool Pending() const;
|
||||
|
||||
// dispatch a single event, return false if we should exit from the loop
|
||||
virtual bool Dispatch();
|
||||
|
||||
// same as Dispatch() but doesn't wait for longer than the specified (in
|
||||
// ms) timeout, return true if an event was processed, false if we should
|
||||
// exit the loop or -1 if timeout expired
|
||||
virtual int DispatchTimeout(unsigned long timeout);
|
||||
|
||||
// implement this to wake up the loop: usually done by posting a dummy event
|
||||
// to it (can be called from non main thread)
|
||||
virtual void WakeUp();
|
||||
|
||||
virtual bool YieldFor(long eventsToProcess);
|
||||
|
||||
bool ShouldProcessIdleEvents() const { return m_processIdleEvents ; }
|
||||
|
||||
#if wxUSE_UIACTIONSIMULATOR
|
||||
// notifies Yield and Dispatch to wait for at least one event before
|
||||
// returning, this is necessary, because the synthesized events need to be
|
||||
// converted by the OS before being available on the native event queue
|
||||
void SetShouldWaitForEvent(bool should) { m_shouldWaitForEvent = should; }
|
||||
#endif
|
||||
protected:
|
||||
// enters a loop calling OnNextIteration(), Pending() and Dispatch() and
|
||||
// terminating when Exit() is called
|
||||
virtual int DoRun();
|
||||
|
||||
void CommonModeObserverCallBack(CFRunLoopObserverRef observer, int activity);
|
||||
void DefaultModeObserverCallBack(CFRunLoopObserverRef observer, int activity);
|
||||
|
||||
// set to false to avoid idling at unexpected moments - eg when having native message boxes
|
||||
void SetProcessIdleEvents(bool process) { m_processIdleEvents = process; }
|
||||
|
||||
static void OSXCommonModeObserverCallBack(CFRunLoopObserverRef observer, int activity, void *info);
|
||||
static void OSXDefaultModeObserverCallBack(CFRunLoopObserverRef observer, int activity, void *info);
|
||||
|
||||
// get the currently executing CFRunLoop
|
||||
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
|
||||
|
||||
virtual int DoDispatchTimeout(unsigned long timeout);
|
||||
|
||||
virtual void OSXDoRun();
|
||||
virtual void OSXDoStop();
|
||||
|
||||
// the loop exit code
|
||||
int m_exitcode;
|
||||
|
||||
// cfrunloop
|
||||
CFRunLoopRef m_runLoop;
|
||||
|
||||
// common modes runloop observer
|
||||
CFRunLoopObserverRef m_commonModeRunLoopObserver;
|
||||
|
||||
// default mode runloop observer
|
||||
CFRunLoopObserverRef m_defaultModeRunLoopObserver;
|
||||
|
||||
// set to false to avoid idling at unexpected moments - eg when having native message boxes
|
||||
bool m_processIdleEvents;
|
||||
|
||||
#if wxUSE_UIACTIONSIMULATOR
|
||||
bool m_shouldWaitForEvent;
|
||||
#endif
|
||||
private:
|
||||
// process all already pending events and dispatch a new one (blocking
|
||||
// until it appears in the event queue if necessary)
|
||||
//
|
||||
// returns the return value of DoDispatchTimeout()
|
||||
int DoProcessEvents();
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxCFEventLoop);
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_BASE wxCFEventLoopPauseIdleEvents : public wxObject
|
||||
{
|
||||
public:
|
||||
wxCFEventLoopPauseIdleEvents();
|
||||
virtual ~wxCFEventLoopPauseIdleEvents();
|
||||
private:
|
||||
bool m_formerState;
|
||||
};
|
||||
|
||||
#endif // _WX_OSX_EVTLOOP_H_
|
@ -4,7 +4,6 @@
|
||||
// Author: Ryan Norton
|
||||
// Modified by:
|
||||
// Created: 11/11/2003
|
||||
// RCS-ID: $Id: hid.h 64943 2010-07-13 13:29:58Z VZ $
|
||||
// Copyright: (c) Ryan Norton
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -34,7 +33,6 @@
|
||||
|
||||
//Darn apple - doesn't properly wrap their headers in extern "C"!
|
||||
//http://www.macosx.com/forums/archive/index.php/t-68069.html
|
||||
//Needed for codewarrior link error with mach_port_deallocate()
|
||||
extern "C" {
|
||||
#include <mach/mach_port.h>
|
||||
}
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Ryan Norton
|
||||
// Modified by:
|
||||
// Created: 2/13/2005
|
||||
// RCS-ID: $Id: joystick.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) Ryan Norton
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Neil Perkins
|
||||
// Modified by:
|
||||
// Created: 2010-05-15
|
||||
// RCS-ID: $Id: mimetype.h 68563 2011-08-05 19:02:26Z VZ $
|
||||
// Copyright: (C) 2010 Neil Perkins
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
23
Externals/wxWidgets3/include/wx/osx/core/objcid.h
vendored
Normal file
23
Externals/wxWidgets3/include/wx/osx/core/objcid.h
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/core/objcid.h
|
||||
// Purpose: Define wxObjCID working in both C++ and Objective-C.
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2012-05-20
|
||||
// Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_OSX_CORE_OBJCID_H_
|
||||
#define _WX_OSX_CORE_OBJCID_H_
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxObjCID: Equivalent of Objective-C "id" that works in C++ code.
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifdef __OBJC__
|
||||
#define wxObjCID id
|
||||
#else
|
||||
typedef struct objc_object* wxObjCID;
|
||||
#endif
|
||||
|
||||
#endif // _WX_OSX_CORE_OBJCID_H_
|
@ -6,7 +6,6 @@
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 1998-01-01
|
||||
// RCS-ID: $Id: private.h 70354 2012-01-15 15:53:56Z SC $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -32,6 +31,23 @@
|
||||
#define wxOSX_10_6_AND_LATER(x)
|
||||
#endif
|
||||
|
||||
// platform specific Clang analyzer support
|
||||
#ifndef NS_RETURNS_RETAINED
|
||||
# if WX_HAS_CLANG_FEATURE(attribute_ns_returns_retained)
|
||||
# define NS_RETURNS_RETAINED __attribute__((ns_returns_retained))
|
||||
# else
|
||||
# define NS_RETURNS_RETAINED
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef CF_RETURNS_RETAINED
|
||||
# if WX_HAS_CLANG_FEATURE(attribute_cf_returns_retained)
|
||||
# define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
|
||||
# else
|
||||
# define CF_RETURNS_RETAINED
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if ( !wxUSE_GUI && !wxOSX_USE_IPHONE ) || wxOSX_USE_COCOA_OR_CARBON
|
||||
|
||||
// Carbon functions are currently still used in wxOSX/Cocoa too (including
|
||||
@ -105,7 +121,9 @@ WXDLLIMPEXP_CORE CGDataProviderRef wxMacCGDataProviderCreateWithCFData( CFDataRe
|
||||
WXDLLIMPEXP_CORE CGDataConsumerRef wxMacCGDataConsumerCreateWithCFData( CFMutableDataRef data );
|
||||
WXDLLIMPEXP_CORE CGDataProviderRef wxMacCGDataProviderCreateWithMemoryBuffer( const wxMemoryBuffer& buf );
|
||||
|
||||
CGColorSpaceRef WXDLLIMPEXP_CORE wxMacGetGenericRGBColorSpace(void);
|
||||
WXDLLIMPEXP_CORE CGColorSpaceRef wxMacGetGenericRGBColorSpace(void);
|
||||
|
||||
WXDLLIMPEXP_CORE double wxOSXGetMainScreenContentScaleFactor();
|
||||
|
||||
class wxWindowMac;
|
||||
// to
|
||||
@ -242,7 +260,7 @@ public :
|
||||
virtual void GetPosition( int &x, int &y ) const = 0;
|
||||
virtual void GetSize( int &width, int &height ) const = 0;
|
||||
virtual void SetControlSize( wxWindowVariant variant ) = 0;
|
||||
virtual float GetContentScaleFactor() const
|
||||
virtual double GetContentScaleFactor() const
|
||||
{
|
||||
return 1.0;
|
||||
}
|
||||
@ -265,6 +283,8 @@ public :
|
||||
|
||||
virtual bool NeedsFrame() const;
|
||||
virtual void SetNeedsFrame( bool needs );
|
||||
|
||||
virtual void SetDrawingEnabled(bool enabled);
|
||||
|
||||
virtual bool CanFocus() const = 0;
|
||||
// return true if successful
|
||||
@ -284,13 +304,16 @@ public :
|
||||
virtual void SetCursor( const wxCursor & cursor ) = 0;
|
||||
virtual void CaptureMouse() = 0;
|
||||
virtual void ReleaseMouse() = 0;
|
||||
|
||||
virtual void SetDropTarget( wxDropTarget * WXUNUSED(dropTarget) ) {}
|
||||
|
||||
virtual wxInt32 GetValue() const = 0;
|
||||
virtual void SetValue( wxInt32 v ) = 0;
|
||||
virtual wxBitmap GetBitmap() const = 0;
|
||||
virtual void SetBitmap( const wxBitmap& bitmap ) = 0;
|
||||
virtual void SetBitmapPosition( wxDirection dir ) = 0;
|
||||
virtual void SetupTabs( const wxNotebook ¬ebook ) =0;
|
||||
virtual void SetupTabs( const wxNotebook& WXUNUSED(notebook) ) {}
|
||||
virtual int TabHitTest( const wxPoint & WXUNUSED(pt), long *flags ) {*flags=1; return -1;};
|
||||
virtual void GetBestRect( wxRect *r ) const = 0;
|
||||
virtual bool IsEnabled() const = 0;
|
||||
virtual void Enable( bool enable ) = 0;
|
||||
@ -319,9 +342,16 @@ public :
|
||||
|
||||
// static methods for associating native controls and their implementations
|
||||
|
||||
// finds the impl associated with this native control
|
||||
static wxWidgetImpl*
|
||||
FindFromWXWidget(WXWidget control);
|
||||
|
||||
// finds the impl associated with this native control, if the native control itself is not known
|
||||
// also checks whether its parent is eg a registered scrollview, ie whether the control is a native subpart
|
||||
// of a known control
|
||||
static wxWidgetImpl*
|
||||
FindBestFromWXWidget(WXWidget control);
|
||||
|
||||
static void RemoveAssociations( wxWidgetImpl* impl);
|
||||
|
||||
static void Associate( WXWidget control, wxWidgetImpl *impl );
|
||||
@ -844,7 +874,7 @@ public :
|
||||
virtual void ScreenToWindow( int *x, int *y ) = 0;
|
||||
|
||||
virtual void WindowToScreen( int *x, int *y ) = 0;
|
||||
|
||||
|
||||
virtual bool IsActive() = 0;
|
||||
|
||||
wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose:
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2011-12-19
|
||||
// RCS-ID: $Id: datetimectrl.h 70071 2011-12-20 21:27:14Z VZ $
|
||||
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: David Elliott, Ryan Norton
|
||||
// Modified by:
|
||||
// Created: 2007-07-06
|
||||
// RCS-ID: $Id: strconv_cf.h 67215 2011-03-16 10:55:30Z SC $
|
||||
// Copyright: (c) 2004 Ryan Norton
|
||||
// (c) 2007 David Elliott
|
||||
// Licence: wxWindows licence
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxTimer class based on core foundation
|
||||
// Author: Stefan Csomor
|
||||
// Created: 2008-07-16
|
||||
// RCS-ID: $Id: timer.h 67232 2011-03-18 15:10:15Z DS $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: David Elliott
|
||||
// Modified by:
|
||||
// Created: 2004-10-27
|
||||
// RCS-ID: $Id: stdpaths.h 64943 2010-07-13 13:29:58Z VZ $
|
||||
// Copyright: (c) 2004 David Elliott
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -35,7 +34,6 @@ typedef __CFBundle * wxCFBundleRef;
|
||||
class WXDLLIMPEXP_BASE wxStandardPathsCF : public wxStandardPathsCFBase
|
||||
{
|
||||
public:
|
||||
wxStandardPathsCF();
|
||||
virtual ~wxStandardPathsCF();
|
||||
|
||||
// wxMac specific: allow user to specify a different bundle
|
||||
@ -57,6 +55,10 @@ public:
|
||||
virtual wxString GetDocumentsDir() const;
|
||||
|
||||
protected:
|
||||
// Ctor is protected, use wxStandardPaths::Get() instead of instantiating
|
||||
// objects of this class directly.
|
||||
wxStandardPathsCF();
|
||||
|
||||
// this function can be called with any of CFBundleCopyXXXURL function
|
||||
// pointer as parameter
|
||||
wxString GetFromFunc(wxCFURLRef (*func)(wxCFBundleRef)) const;
|
||||
|
Reference in New Issue
Block a user