37#include <wx/translation.h>
40 int aDefaultHotKey,
const std::string& aLegacyHotKeyName,
41 const wxString& aLabel,
const wxString& aTooltip,
92 if( aArgs.
m_uiid.has_value() )
101 if( aArgs.
m_group.has_value() )
104 if( aArgs.
m_icon.has_value() )
150 return wxEmptyString;
168 label.Replace( wxS(
"&" ), wxS(
"&&" ) );
185 wxString tooltip = wxGetTranslation(
m_tooltip );
218 int dotCount = std::count(
m_name.begin(),
m_name.end(),
'.' );
BITMAPS
A list of all bitmap identifiers.
static std::list< TOOL_ACTION * > & GetActionList()
Return list of TOOL_ACTIONs.
bool has_value() const noexcept
Report whether there is a contained object or not.
wxString AddHotkeyName(const wxString &aText, int aHotKey, HOTKEY_ACTION_TYPE aStyle)
wxString KeyNameFromKeyCode(int aKeycode, bool *aIsFound)
Return the key name from the key code.
wxString TowxString(const std::string_view &view)