Ejemplo n.º 1
0
void Shortcuts_foreach(Shortcuts& shortcuts, CommandVisitor& visitor)
{
  for(Shortcuts::iterator i = shortcuts.begin(); i != shortcuts.end(); ++i)
  {
    visitor.visit((*i).first.c_str(), (*i).second.first);
  }
}
Ejemplo n.º 2
0
void GlobalShortcuts_reportUnregistered(){
	for ( Shortcuts::iterator i = g_shortcuts.begin(); i != g_shortcuts.end(); ++i )
	{
		if ( ( *i ).second.first.key != 0 && !( *i ).second.second ) {
			globalOutputStream() << "shortcut not registered: " << ( *i ).first.c_str() << "\n";
		}
	}
}