34#ifndef SYMBOLSHORTCUTS_H
35#define SYMBOLSHORTCUTS_H
61wxString
JoinSymbols(
const std::vector<wxString> &symbols);
118 const wxKeyEvent &event);
bool IsUsableShortcut(int flags, int keyCode)
Would this shortcut leave ordinary typing alone?
Definition: SymbolShortcuts.cpp:146
std::vector< wxString > SplitIntoSymbols(const wxString &text)
Splits text into the symbols a sidebar shows as one button each.
Definition: SymbolShortcuts.cpp:87
wxString NormalizeShortcut(const wxString &shortcut)
Brings a shortcut a human typed into the raw form we store.
Definition: SymbolShortcuts.cpp:152
wxString SerializeSymbolShortcuts(const std::vector< SymbolShortcut > &shortcuts)
The inverse of ParseSymbolShortcuts().
Definition: SymbolShortcuts.cpp:136
wxString SymbolForKeyEvent(const std::vector< SymbolShortcut > &shortcuts, const wxKeyEvent &event)
The symbol whose shortcut the key event is, or an empty string.
Definition: SymbolShortcuts.cpp:200
std::vector< SymbolShortcut > ParseSymbolShortcuts(const wxString &stored)
Reads the shortcuts list the configuration stores.
Definition: SymbolShortcuts.cpp:122
wxString ShortcutFromKeyEvent(const wxKeyEvent &event)
The shortcut a key press is, in raw form, or an empty string.
Definition: SymbolShortcuts.cpp:161
bool SameShortcut(const wxString &a, const wxString &b)
Do the two raw shortcuts name the same key combination?
Definition: SymbolShortcuts.cpp:187
wxString ShortcutForDisplay(const wxString &rawShortcut)
The shortcut in the user's language, for display ("Strg+Alt+T").
Definition: SymbolShortcuts.cpp:193
wxString JoinSymbols(const std::vector< wxString > &symbols)
Joins symbols into a string SplitIntoSymbols() splits into the same symbols.
Definition: SymbolShortcuts.cpp:109
A symbol and the keyboard shortcut that types it.
Definition: SymbolShortcuts.h:65
wxString shortcut
The shortcut, as wxAcceleratorEntry::ToRawString() writes it ("Ctrl+Alt+T").
Definition: SymbolShortcuts.h:72