28#ifndef __TOOL_MANAGER_H
29#define __TOOL_MANAGER_H
97 bool InvokeTool(
const std::string& aToolName );
142 bool RunAction(
const std::string& aActionName,
bool aNow =
false, T aParam = NULL )
144 return RunAction( aActionName, aNow,
reinterpret_cast<void*
>( aParam ) );
147 bool RunAction(
const std::string& aActionName,
bool aNow,
void* aParam );
149 bool RunAction(
const std::string& aActionName,
bool aNow =
false )
151 return RunAction( aActionName, aNow, (
void*) NULL );
167 template <
typename T>
170 return RunAction( aAction, aNow,
reinterpret_cast<void*
>( aParam ) );
177 return RunAction( aAction, aNow, (
void*) NULL );
220 std::map<const char*, TOOL_BASE*>::iterator tool =
m_toolTypes.find(
typeid( T ).
name() );
223 return static_cast<T*
>( tool->second );
448 typedef std::pair<TOOL_EVENT_LIST, TOOL_STATE_FUNC>
TRANSITION;
Manage TOOL_ACTION objects.
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
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...
Structure to keep VIEW_CONTROLS settings for easy store/restore operations.