Exemplo n.º 1
0
void Hotkey::AddOptions(OptionsDB & db)
{
    if(! s_hotkeys)
        return;
    for(std::map<std::string, Hotkey>::const_iterator i = s_hotkeys->begin();
        i != s_hotkeys->end(); i++) {
        const Hotkey & sb = i->second;
        std::string n = "UI.hotkeys.";
        n += sb.m_name;
        db.Add(n, UserString(UserStringForHotkey(sb.m_name)), sb.ToString(),Validator<std::string>());
    }
}
Exemplo n.º 2
0
void Hotkey::AddOptions(OptionsDB& db) {
    if (!s_hotkeys)
        return;
    for (std::map<std::string, Hotkey>::const_iterator i = s_hotkeys->begin();
         i != s_hotkeys->end(); i++)
    {
        const Hotkey& hotkey = i->second;
        std::string n = "UI.hotkeys.";
        n += hotkey.m_name;
        db.Add(n, hotkey.GetDescription(),
               hotkey.ToString(), Validator<std::string>());
    }
}