mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Upgrade WX to r74856, mainly to support @2x.
This commit is contained in:
10
Externals/wxWidgets3/include/wx/accel.h
vendored
10
Externals/wxWidgets3/include/wx/accel.h
vendored
@ -4,7 +4,6 @@
|
||||
// Author: Julian Smart, Robert Roebling, Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 31.05.01 (extracted from other files)
|
||||
// RCS-ID: $Id: accel.h 68718 2011-08-16 11:55:39Z SC $
|
||||
// Copyright: (c) wxWidgets team
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -118,7 +117,12 @@ public:
|
||||
// returns a wxString for the this accelerator.
|
||||
// this function formats it using the <flags>-<keycode> format
|
||||
// where <flags> maybe a hyphen-separated list of "shift|alt|ctrl"
|
||||
wxString ToString() const;
|
||||
wxString ToString() const { return AsPossiblyLocalizedString(true); }
|
||||
|
||||
// same as above but without translating, useful if the string is meant to
|
||||
// be stored in a file or otherwise stored, instead of being shown to the
|
||||
// user
|
||||
wxString ToRawString() const { return AsPossiblyLocalizedString(false); }
|
||||
|
||||
// returns true if the given string correctly initialized this object
|
||||
// (i.e. if IsOk() returns true after this call)
|
||||
@ -126,6 +130,8 @@ public:
|
||||
|
||||
|
||||
private:
|
||||
wxString AsPossiblyLocalizedString(bool localized) const;
|
||||
|
||||
// common part of Create() and FromString()
|
||||
static bool ParseAccel(const wxString& str, int *flags, int *keycode);
|
||||
|
||||
|
Reference in New Issue
Block a user