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