mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 01:59:52 -06:00
wxWidgets3: update to svn r70933
This commit is contained in:
@ -474,6 +474,8 @@ public:
|
||||
//
|
||||
virtual wxDataViewItem GetCurrentItem() const;
|
||||
virtual void SetCurrentItem(const wxDataViewItem& item);
|
||||
virtual wxDataViewColumn *GetCurrentColumn() const;
|
||||
virtual int GetSelectedItemsCount() const;
|
||||
virtual int GetSelections(wxDataViewItemArray& sel) const;
|
||||
virtual bool IsSelected(const wxDataViewItem& item) const;
|
||||
virtual void Select(const wxDataViewItem& item);
|
||||
@ -496,6 +498,8 @@ public:
|
||||
wxDataViewColumn*& columnPtr) const;
|
||||
virtual void SetRowHeight(const wxDataViewItem& item, unsigned int height);
|
||||
virtual void OnSize();
|
||||
|
||||
virtual void StartEditor( const wxDataViewItem & item, unsigned int column );
|
||||
|
||||
// drag & drop helper methods
|
||||
wxDataFormat GetDnDDataFormat(wxDataObjectComposite* dataObjects);
|
||||
|
@ -3,7 +3,7 @@
|
||||
// Purpose: declaration of wxGUIEventLoop for wxOSX/Cocoa
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2008-12-28
|
||||
// RCS-ID: $Id: evtloop.h 67129 2011-03-05 12:21:20Z SC $
|
||||
// RCS-ID: $Id: evtloop.h 68301 2011-07-19 16:17:44Z SC $
|
||||
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -21,6 +21,8 @@ public:
|
||||
|
||||
void EndModalSession();
|
||||
|
||||
virtual void WakeUp();
|
||||
|
||||
protected:
|
||||
virtual int DoDispatchTimeout(unsigned long timeout);
|
||||
|
||||
@ -31,7 +33,12 @@ protected:
|
||||
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
|
||||
|
||||
void* m_modalSession;
|
||||
|
||||
wxWindow* m_modalWindow;
|
||||
|
||||
WXWindow m_dummyWindow;
|
||||
|
||||
int m_modalNestedLevel;
|
||||
};
|
||||
|
||||
#endif // _WX_OSX_COCOA_EVTLOOP_H_
|
||||
|
@ -6,7 +6,7 @@
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 1998-01-01
|
||||
// RCS-ID: $Id: private.h 67233 2011-03-18 15:45:51Z SC $
|
||||
// RCS-ID: $Id: private.h 70863 2012-03-10 13:13:51Z SC $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -145,13 +145,13 @@ public :
|
||||
virtual unsigned int draggingUpdated(void* sender, WXWidget slf, void* _cmd);
|
||||
virtual bool performDragOperation(void* sender, WXWidget slf, void* _cmd);
|
||||
virtual void mouseEvent(WX_NSEvent event, WXWidget slf, void* _cmd);
|
||||
virtual void cursorUpdate(WX_NSEvent event, WXWidget slf, void* _cmd);
|
||||
virtual void keyEvent(WX_NSEvent event, WXWidget slf, void* _cmd);
|
||||
virtual void insertText(NSString* text, WXWidget slf, void* _cmd);
|
||||
virtual bool performKeyEquivalent(WX_NSEvent event, WXWidget slf, void* _cmd);
|
||||
virtual bool acceptsFirstResponder(WXWidget slf, void* _cmd);
|
||||
virtual bool becomeFirstResponder(WXWidget slf, void* _cmd);
|
||||
virtual bool resignFirstResponder(WXWidget slf, void* _cmd);
|
||||
virtual void resetCursorRects(WXWidget slf, void* _cmd);
|
||||
virtual bool isFlipped(WXWidget slf, void* _cmd);
|
||||
virtual void drawRect(void* rect, WXWidget slf, void* _cmd);
|
||||
|
||||
@ -239,6 +239,8 @@ public :
|
||||
virtual void SetModified(bool modified);
|
||||
virtual bool IsModified() const;
|
||||
|
||||
virtual void SetRepresentedFilename(const wxString& filename);
|
||||
|
||||
wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
|
||||
|
||||
CGWindowLevel GetWindowLevel() const { return m_macWindowLevel; }
|
||||
@ -352,6 +354,21 @@ protected :
|
||||
- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
|
||||
@end
|
||||
|
||||
// This interface must be exported in shared 64 bit multilib build but
|
||||
// using WXEXPORT with Objective C interfaces doesn't work with old (4.0.1)
|
||||
// gcc when using 10.4 SDK. It does work with newer gcc even in 32 bit
|
||||
// builds but seems to be unnecessary there so to avoid the expense of a
|
||||
// configure check verifying if this does work or not with the current
|
||||
// compiler we just only use it for 64 bit builds where this is always
|
||||
// supported.
|
||||
//
|
||||
// NB: Currently this is the only place where we need to export an
|
||||
// interface but if we need to do it elsewhere we should define a
|
||||
// WXEXPORT_OBJC macro once and reuse it in all places it's needed
|
||||
// instead of duplicating this preprocessor check.
|
||||
#ifdef __LP64__
|
||||
WXEXPORT
|
||||
#endif // 64 bit builds
|
||||
@interface wxNSAppController : NSObject wxOSX_10_6_AND_LATER(<NSApplicationDelegate>)
|
||||
{
|
||||
}
|
||||
|
51
Externals/wxWidgets3/include/wx/osx/cocoa/private/date.h
vendored
Normal file
51
Externals/wxWidgets3/include/wx/osx/cocoa/private/date.h
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/cocoa/private/date.h
|
||||
// Purpose: NSDate-related helpers
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2011-12-19
|
||||
// RCS-ID: $Id: date.h 70070 2011-12-20 21:27:09Z VZ $
|
||||
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_OSX_COCOA_PRIVATE_DATE_H_
|
||||
#define _WX_OSX_COCOA_PRIVATE_DATE_H_
|
||||
|
||||
#include "wx/datetime.h"
|
||||
|
||||
namespace wxOSXImpl
|
||||
{
|
||||
|
||||
// Functions to convert between NSDate and wxDateTime.
|
||||
|
||||
// Returns an NSDate corresponding to the given wxDateTime which can be invalid
|
||||
// (in which case nil is returned).
|
||||
inline NSDate* NSDateFromWX(const wxDateTime& dt)
|
||||
{
|
||||
if ( !dt.IsValid() )
|
||||
return nil;
|
||||
|
||||
// Get the internal representation as a double used by NSDate.
|
||||
double ticks = dt.GetValue().ToDouble();
|
||||
|
||||
// wxDateTime uses milliseconds while NSDate uses (fractional) seconds.
|
||||
return [NSDate dateWithTimeIntervalSince1970:ticks/1000.];
|
||||
}
|
||||
|
||||
|
||||
// Returns wxDateTime corresponding to the given NSDate (which may be nil).
|
||||
inline wxDateTime NSDateToWX(const NSDate* d)
|
||||
{
|
||||
if ( !d )
|
||||
return wxDefaultDateTime;
|
||||
|
||||
// Reverse everything done above.
|
||||
wxLongLong ll;
|
||||
ll.Assign([d timeIntervalSince1970]*1000);
|
||||
wxDateTime dt(ll);
|
||||
return dt;
|
||||
}
|
||||
|
||||
} // namespace wxOSXImpl
|
||||
|
||||
#endif // _WX_OSX_COCOA_PRIVATE_DATE_H_
|
@ -4,7 +4,7 @@
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Created: 03/02/99
|
||||
// RCS-ID: $Id: textimpl.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// RCS-ID: $Id: textimpl.h 70354 2012-01-15 15:53:56Z SC $
|
||||
// Copyright: (c) Stefan Csomor
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -28,6 +28,9 @@ public :
|
||||
wxNSTextFieldControl( wxWindow *wxPeer, wxTextEntry *entry, WXWidget w );
|
||||
virtual ~wxNSTextFieldControl();
|
||||
|
||||
virtual bool CanClipMaxLength() const { return true; }
|
||||
virtual void SetMaxLength(unsigned long len);
|
||||
|
||||
virtual wxString GetStringValue() const ;
|
||||
virtual void SetStringValue( const wxString &str) ;
|
||||
virtual void Copy() ;
|
||||
@ -105,6 +108,9 @@ public :
|
||||
virtual wxString GetStringAtIndex(int pos) const;
|
||||
|
||||
virtual int FindString(const wxString& text) const;
|
||||
virtual void Popup();
|
||||
virtual void Dismiss();
|
||||
|
||||
private:
|
||||
NSComboBox* m_comboBox;
|
||||
};
|
||||
|
Reference in New Issue
Block a user