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;
374 wxASSERT_MSG(
m_param.has_value(),
"Attempted to get a parameter from an action with no parameter." );
380 param = std::any_cast<T>(
m_param );
382 catch(
const std::bad_any_cast& e )
385 wxString::Format(
"Requested parameter type %s from action with parameter type %s.",
BITMAPS
A list of all bitmap identifiers.
Manage TOOL_ACTION objects.