Added wxAcceleratorEntry::ToRawString().
This function can be used to obtain language/locale-independent representation of an accelerator. This is particularly useful for storing it in configuration files. Closes #14228. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -114,6 +114,20 @@ public:
|
||||
*/
|
||||
wxString ToString() const;
|
||||
|
||||
/**
|
||||
Returns a textual representation of this accelerator which is
|
||||
appropriate for saving in configuration files.
|
||||
|
||||
Unlike the string returned by ToString(), this one is never translated
|
||||
so, while it's not suitable for showing to the user, it can be used to
|
||||
uniquely identify the accelerator independently of the user language.
|
||||
|
||||
The returned string can still be parsed by FromString().
|
||||
|
||||
@since 2.9.4
|
||||
*/
|
||||
wxString ToRawString() const;
|
||||
|
||||
/**
|
||||
Parses the given string and sets the accelerator accordingly.
|
||||
|
||||
|
Reference in New Issue
Block a user