X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FKeyMap.cpp;h=fe3092b50931cd50ab81d3169ebd9e3aff4a9d56;hb=cadae068974fb25e97c5b2c38774a73ee23e92fc;hp=bef688fe54eb3d383119304944a05cd4ec62e89a;hpb=5265a8c02c7223f72dda771fd776c104bc729487;p=lyx.git diff --git a/src/KeyMap.cpp b/src/KeyMap.cpp index bef688fe54..fe3092b509 100644 --- a/src/KeyMap.cpp +++ b/src/KeyMap.cpp @@ -20,7 +20,7 @@ #include "LyXAction.h" #include "Lexer.h" -#include "frontends/LyXKeySym.h" +#include "frontends/KeySymbol.h" #include "support/filetools.h" @@ -36,7 +36,7 @@ using std::endl; using std::string; -string const KeyMap::printKeySym(LyXKeySym const & key, +string const KeyMap::printKeySym(KeySymbol const & key, key_modifier::state mod) { string buf; @@ -171,7 +171,7 @@ bool KeyMap::read(string const & bind_file) FuncRequest const & -KeyMap::lookup(LyXKeySymPtr key, +KeyMap::lookup(KeySymbolPtr key, key_modifier::state mod, KeySequence * seq) const { static FuncRequest const unknown(LFUN_UNKNOWN_ACTION); @@ -226,7 +226,7 @@ docstring const KeyMap::print(bool forgui) const void KeyMap::defkey(KeySequence * seq, FuncRequest const & func, unsigned int r) { - LyXKeySymPtr code = seq->sequence[r]; + KeySymbolPtr code = seq->sequence[r]; if (!code->isOK()) return; @@ -253,7 +253,7 @@ void KeyMap::defkey(KeySequence * seq, FuncRequest const & func, unsigned int r) it->func.origin = FuncRequest::KEYBOARD; return; } else if (!it->table.get()) { - lyxerr << "Error: New binding for '" + lyxerr << "Error: New binding for '" << to_utf8(seq->print(false)) << "' is overriding old binding..." << endl; @@ -322,7 +322,7 @@ KeyMap::Bindings KeyMap::findbindings(FuncRequest const & func, } -std::pair +std::pair KeyMap::find1keybinding(FuncRequest const & func) const { Table::const_iterator end = table.end(); @@ -332,7 +332,7 @@ KeyMap::find1keybinding(FuncRequest const & func) const return std::make_pair(cit->code.get(), cit->mod.first); } - return std::make_pair(0, key_modifier::none); + return std::make_pair(0, key_modifier::none); }