28 #ifndef __TOOL_MANAGER_H 29 #define __TOOL_MANAGER_H 96 bool InvokeTool(
const std::string& aToolName );
141 bool RunAction(
const std::string& aActionName,
bool aNow =
false, T aParam =
NULL )
143 return RunAction( aActionName, aNow, reinterpret_cast<void*>( aParam ) );
146 bool RunAction(
const std::string& aActionName,
bool aNow,
void* aParam );
148 bool RunAction(
const std::string& aActionName,
bool aNow =
false )
166 template <
typename T>
169 return RunAction( aAction, aNow, reinterpret_cast<void*>( aParam ) );
179 const std::map<std::string, TOOL_ACTION*>&
GetActions();
221 std::map<const char*, TOOL_BASE*>::iterator tool =
m_toolTypes.find(
typeid( T ).
name() );
224 return static_cast<T*>( tool->second );
452 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.
Structure to keep VIEW_CONTROLS settings for easy store/restore operations.
An interface for classes handling user events controlling the view behavior such as zooming,...
A base class for most all the KiCad significant classes used in schematics and boards.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...