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"
24 * Qt-specific key press.
26 * This is some really sick stuff.
28 class QLyXKeySym : public LyXKeySym {
32 virtual ~QLyXKeySym() {}
34 /// delayed constructor
35 void set(QKeyEvent * ev);
37 /// set from a LyX symbolic name
38 virtual void init(std::string const & symbolname);
40 /// Is this a valid key?
41 virtual bool isOK() const;
43 /// Is this a modifier key only?
44 virtual bool isModifier() const;
46 /// return the LyX symbolic name
47 virtual std::string getSymbolName() const;
49 /// Is this normal insertable text ? (last ditch attempt only)
50 virtual bool isText() const;
53 * Return the value of the keysym into the UCS-4 encoding.
54 * This converts the LyXKeySym to a 32-bit encoded character.
56 virtual size_t getUCSEncoded() const;
58 /// Return a human-readable version of a key+modifier pair.
59 virtual std::string const print(key_modifier::state mod) const;
62 QString const qprint(key_modifier::state mod) const;
71 /// the event string value
75 #endif // QLYXKEYSYM_H