4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Asger and Jürgen
10 * Full author contact details are available in file CREDITS.
16 #include "frontends/LyXKeySym.h"
23 * Qt-specific key press.
25 * This is some really sick stuff.
27 class QLyXKeySym : public LyXKeySym {
31 virtual ~QLyXKeySym() {}
33 /// delayed constructor
34 void set(QKeyEvent * ev);
36 /// set from a LyX symbolic name
37 virtual void init(std::string const & symbolname);
39 /// Is this a valid key?
40 virtual bool isOK() const;
42 /// Is this a modifier key only?
43 virtual bool isModifier() const;
45 /// return the LyX symbolic name
46 virtual std::string getSymbolName() const;
48 /// Is this normal insertable text ? (last ditch attempt only)
49 virtual bool isText() const;
52 * Return the value of the keysym into the local ISO encoding.
53 * This converts the LyXKeySym to a 8-bit encoded character.
54 * This relies on user to use the right encoding.
56 virtual char getISOEncoded(std::string const & encoding) const;
64 /// the event string value
68 #endif // QLYXKEYSYM_H