28#ifndef __TOOL_ACTION_H
29#define __TOOL_ACTION_H
41enum class BITMAPS :
unsigned int;
69 static int groupIDs = 0;
273 int aDefaultHotKey = 0,
const std::string& aLegacyHotKeyName =
"",
274 const wxString& aMenuText = wxEmptyString,
275 const wxString& aTooltip = wxEmptyString,
315 void SetHotKey(
int aKeycode,
int aKeycodeAlt = 0 );
357 wxString
GetTooltip(
bool aIncludeHotkey =
true )
const;
375 "Attempted to get a parameter from an action with no parameter." );
381 param = ki::any_cast<T>(
m_param );
386 wxString::Format(
"Requested parameter type %s from action with "
387 "parameter type %s.",
BITMAPS
A list of all bitmap identifiers.
Manage TOOL_ACTION objects.
A type-safe container of any type.
bool has_value() const noexcept
Report whether there is a contained object or not.
const std::type_info & type() const noexcept
The typeid of the contained object, or typeid(void) if empty.
Exception class thrown by a failed any_cast.
An implementation of std::any_cast, which uses type_info::hash_code to check validity of cast types.