104 bool InvokeTool(
const std::string& aToolName );
149 template<
typename T, std::enable_if_t<!std::is_convertible_v<T*, COMMIT*>>* =
nullptr>
150 bool RunAction(
const std::string& aActionName, T aParam )
153 std::any a(
static_cast<T
>( aParam ) );
155 return doRunAction( aActionName,
true, a,
nullptr );
163 return doRunAction( aActionName,
true, a,
nullptr );
177 template<
typename T, std::enable_if_t<!std::is_convertible_v<T, COMMIT*>>* =
nullptr>
181 std::any a(
static_cast<T
>( aParam ) );
200 std::any a(
static_cast<T
>( aParam ) );
238 std::any a(
static_cast<T
>( aParam ) );
240 return doRunAction( aActionName,
false, a,
nullptr );
248 return doRunAction( aActionName,
false, a,
nullptr );
265 std::any a(
static_cast<T
>( aParam ) );
326 std::map<const char*, TOOL_BASE*>::iterator tool =
m_toolTypes.find(
typeid( T ).
name() );
329 return static_cast<T*
>( tool->second );
554 typedef std::pair<TOOL_EVENT_LIST, TOOL_STATE_FUNC>
TRANSITION;
560 bool doRunAction(
const std::string& aActionName,
bool aNow,
const std::any& aParam,
COMMIT* aCommit );
Manage TOOL_ACTION objects.
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
Represent a set of changes (additions, deletions or modifications) of a data model (e....
A base class for most all the KiCad significant classes used in schematics and boards.
An interface for classes handling user events controlling the view behavior such as zooming,...
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
The Cairo implementation of the graphics abstraction layer.
Structure to keep VIEW_CONTROLS settings for easy store/restore operations.