]> git.lyx.org Git - lyx.git/blobdiff - src/kbsequence.C
QComboBox::textChanged is a Qt3 support signal only, QComboBox::editTextChanged is...
[lyx.git] / src / kbsequence.C
index 2cae7938db17f0f892c18f35896030cc78a2c15a..dc1706dda6939b84980c55bc396ddbecf97b6545 100644 (file)
 #include "frontends/LyXKeySym.h"
 #include "frontends/LyXKeySymFactory.h"
 
+
+namespace lyx {
+
 using std::make_pair;
+using std::string;
 
 
 FuncRequest const &
@@ -136,7 +140,7 @@ string const kb_sequence::print() const
        KeySequence::size_type i, length = sequence.size();
 
        for (i = 0; i < length; ++i) {
-               buf += kb_keymap::printKeysym(sequence[i], modifiers[i].first);
+               buf += sequence[i]->print(modifiers[i].first);
 
                // append a blank
                if (i + 1 < length) {
@@ -156,7 +160,7 @@ string const kb_sequence::printOptions() const
        if (!curmap)
                return buf;
 
-       buf += _("   options: ");
+       buf += to_utf8(_("   options: "));
        buf += curmap->print();
        return buf;
 }
@@ -179,3 +183,6 @@ void kb_sequence::clear()
        sequence.clear();
        reset();
 }
+
+
+} // namespace lyx