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.
17 #include "support/std_string.h"
18 #include "frontends/LyXKeySym.h"
25 * Qt-specific key press.
27 * This is some really sick stuff.
29 class QLyXKeySym : public LyXKeySym {
33 virtual ~QLyXKeySym() {}
35 /// delayed constructor
36 void set(QKeyEvent * ev);
38 /// set from a LyX symbolic name
39 virtual void init(string const & symbolname);
41 /// Is this a valid key?
42 virtual bool isOK() const;
44 /// Is this a modifier key only?
45 virtual bool isModifier() const;
47 /// return the LyX symbolic name
48 virtual string getSymbolName() const;
50 /// Is this normal insertable text ? (last ditch attempt only)
51 virtual bool isText() const;
54 * Return the value of the keysym into the local ISO encoding.
55 * This converts the LyXKeySym to a 8-bit encoded character.
56 * This relies on user to use the right encoding.
58 virtual char getISOEncoded(string const & encoding) const;
66 /// the event string value
70 #endif // QLYXKEYSYM_H