28 #ifndef __TOOL_MANAGER_H 29 #define __TOOL_MANAGER_H 98 bool InvokeTool(
const std::string& aToolName );
143 bool RunAction(
const std::string& aActionName,
bool aNow =
false, T aParam = NULL )
145 return RunAction( aActionName, aNow, reinterpret_cast<void*>( aParam ) );
148 bool RunAction(
const std::string& aActionName,
bool aNow,
void* aParam );
150 bool RunAction(
const std::string& aActionName,
bool aNow =
false )
152 return RunAction( aActionName, aNow, (
void*) NULL );
168 template <
typename T>
171 return RunAction( aAction, aNow, reinterpret_cast<void*>( aParam ) );
178 return RunAction( aAction, aNow, (
void*) NULL );
181 const std::map<std::string, TOOL_ACTION*>&
GetActions()
const;
223 std::map<const char*, TOOL_BASE*>::iterator tool =
m_toolTypes.find(
typeid( T ).
name() );
226 return static_cast<T*>( tool->second );
446 typedef std::pair<TOOL_EVENT_LIST, TOOL_STATE_FUNC>
TRANSITION;
583 #endif // __TOOL_MANAGER_H
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...