3 * Copyright 2002 the LyX Team
4 * Read the file COPYING
6 * \author Asger and Juergen
7 * \author John Levon <moz@compsoc.man.ac.uk>
13 #pragma implementation
16 #include "QLyXKeySym.h"
21 QLyXKeySym::QLyXKeySym()
22 : LyXKeySym(), key_(0), text_("")
27 void QLyXKeySym::set(int key, QString const & text)
34 void QLyXKeySym::init(string const & symbolname)
37 key_ = string_to_qkey(symbolname);
41 bool QLyXKeySym::isOK() const
48 bool QLyXKeySym::isModifier() const
50 return q_is_modifier(key_);
54 string QLyXKeySym::getSymbolName() const
57 return qkey_to_string(key_);
61 char QLyXKeySym::getISOEncoded() const
64 return text_.latin1()[0];
68 bool QLyXKeySym::operator==(LyXKeySym const & k) const
70 QLyXKeySym const & o = static_cast<QLyXKeySym const &>(k);
73 return o.key_ == key_ /*&& o.text_ == text_*/;