|
| | NormalizedKeyString ()=default |
| |
| | NormalizedKeyString (const wxString &key) |
| |
| wxString | Display (bool usesSpecialChars=false) const |
| |
| | TaggedIdentifier ()=default |
| |
| | TaggedIdentifier (const TaggedIdentifier &)=default |
| | Copy allowed only for the same Tag class and case sensitivity. More...
|
| |
| | TaggedIdentifier (TaggedIdentifier &&)=default |
| | Move allowed only for the same Tag class and case sensitivity. More...
|
| |
| TaggedIdentifier & | operator= (const TaggedIdentifier &)=default |
| | Copy allowed only for the same Tag class and case sensitivity. More...
|
| |
| TaggedIdentifier & | operator= (TaggedIdentifier &&)=default |
| | Move allowed only for the same Tag class and case sensitivity. More...
|
| |
| template<typename Tag2 , bool b> |
| | TaggedIdentifier (const TaggedIdentifier< Tag2, b > &)=delete |
| | Copy prohibited for other Tag classes or case sensitivity. More...
|
| |
| template<typename Tag2 , bool b> |
| | TaggedIdentifier (TaggedIdentifier< Tag2, b > &&)=delete |
| | Move prohibited for other Tag classes or case sensitivity. More...
|
| |
| template<typename Tag2 , bool b> |
| TaggedIdentifier & | operator= (const TaggedIdentifier< Tag2, b > &)=delete |
| | Copy prohibited for other Tag classes or case sensitivity. More...
|
| |
| template<typename Tag2 , bool b> |
| TaggedIdentifier & | operator= (TaggedIdentifier< Tag2, b > &&)=delete |
| | Move prohibited for other Tag classes or case sensitivity. More...
|
| |
| | TaggedIdentifier (const Identifier &str) |
| |
| template<typename String , typename = typename String::TagType> |
| String | CONVERT () const |
| | Explicit conversion to another kind of TaggedIdentifier. More...
|
| |
| | Identifier ()=default |
| |
| | Identifier (const wxString &str) |
| | Allow implicit conversion to this class, but not from. More...
|
| |
| | Identifier (const wxChar *str) |
| | Allow implicit conversion to this class, but not from. More...
|
| |
| | Identifier (const char *str) |
| | Allow implicit conversion to this class, but not from. More...
|
| |
| | Identifier (const Identifier &)=default |
| |
| | Identifier (wxString &&str) |
| |
| | Identifier (Identifier &&id) |
| |
| | Identifier (std::initializer_list< Identifier > components, wxChar separator) |
| | Convenience for building concatenated identifiers. More...
|
| |
| | Identifier ()=default |
| |
| | Identifier (const wxString &str) |
| | Allow implicit conversion to this class, but not from. More...
|
| |
| | Identifier (const wxChar *str) |
| | Allow implicit conversion to this class, but not from. More...
|
| |
| | Identifier (const char *str) |
| | Allow implicit conversion to this class, but not from. More...
|
| |
| | Identifier (const Identifier &)=default |
| |
| Identifier & | operator= (const Identifier &)=default |
| |
| | Identifier (wxString &&str) |
| |
| | Identifier (Identifier &&id) |
| |
| Identifier & | operator= (Identifier &&id) |
| |
| void | swap (Identifier &id) |
| |
| | Identifier (std::initializer_list< Identifier > components, wxChar separator) |
| | Convenience for building concatenated identifiers. More...
|
| |
| bool | empty () const |
| |
| size_t | size () const |
| |
| size_t | length () const |
| |
| const wxString & | GET () const |
| | Explicit conversion to wxString, meant to be ugly-looking and demanding of a comment why it's correct. More...
|
| |
| std::vector< Identifier > | split (wxChar separator) const |
| |
Definition at line 23 of file Keyboard.h.
| wxString NormalizedKeyString::Display |
( |
bool |
usesSpecialChars = false | ) |
const |
Definition at line 56 of file Keyboard.cpp.
57{
58 (void)usesSpecialChars;
59
60
61 auto newkey = this->
GET();
62#if defined(__WXMAC__)
63
64 if (!usesSpecialChars) {
65
66 newkey.Replace(
wxT(
"RawCtrl+"),
wxT(
"Control+"));
67 newkey.Replace(
wxT(
"Alt+"),
wxT(
"Option+"));
68 newkey.Replace(
wxT(
"Ctrl+"),
wxT(
"Command+"));
69 }
70 else {
71
72 newkey.Replace(
wxT(
"Shift+"),
wxT(
"\u21e7"));
73 newkey.Replace(
wxT(
"RawCtrl+"),
'^');
74 newkey.Replace(
wxT(
"Alt+"),
wxT(
"\u2325"));
75 newkey.Replace(
wxT(
"Ctrl+"),
wxT(
"\u2318"));
76 }
77
78#endif
79
80 return newkey;
81}
const wxString & GET() const
Explicit conversion to wxString, meant to be ugly-looking and demanding of a comment why it's correct...
References Identifier::GET(), and wxT().
Referenced by KeyView::CmpKeyNodeByKey(), KeyView::OnDrawItem(), KeyConfigPrefs::OnFilterKeyDown(), KeyConfigPrefs::OnHotkeyKeyDown(), KeyConfigPrefs::OnHotkeyKillFocus(), KeyView::OnKeyDown(), KeyConfigPrefs::OnSelected(), SelectHandle::Preview(), KeyView::RecalcExtents(), KeyView::RefreshBindings(), KeyView::RefreshLines(), and KeyView::SetKey().