bool TOOL_MANAGER::dispatchActivation( const TOOL_EVENT& aEvent ) { if( aEvent.IsActivate() ) { std::map<std::string, TOOL_STATE*>::iterator tool = m_toolNameIndex.find( *aEvent.GetCommandStr() ); if( tool != m_toolNameIndex.end() ) { runTool( tool->second->theTool ); return true; } } return false; }
bool TOOL_EVT_UTILS::IsCancelInteractive( const TOOL_EVENT& aEvt ) { return aEvt.IsAction( &ACTIONS::cancelInteractive ) || aEvt.IsActivate() || aEvt.IsCancel(); }