4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Asger and Juergen
10 * Full author contact details are available in file CREDITS
21 #include "frontends/LyXKeySym.h"
28 * Qt-specific key press.
30 * This is some really sick stuff.
32 class QLyXKeySym : public LyXKeySym {
36 virtual ~QLyXKeySym() {}
38 /// delayed constructor
39 void set(QKeyEvent * ev);
41 /// set from a LyX symbolic name
42 virtual void init(string const & symbolname);
44 /// Is this a valid key?
45 virtual bool isOK() const;
47 /// Is this a modifier key only?
48 virtual bool isModifier() const;
50 /// return the LyX symbolic name
51 virtual string getSymbolName() const;
53 /// Is this normal insertable text ? (last ditch attempt only)
54 virtual bool isText() const;
57 * Return the value of the keysym into the local ISO encoding.
58 * This converts the LyXKeySym to a 8-bit encoded character.
59 * This relies on user to use the right encoding.
61 virtual char getISOEncoded(string const & encoding) const;
69 /// the event string value
73 #endif // QLYXKEYSYM_H