4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
7 * \author Asger and Juergen
8 * \author John Levon <moz@compsoc.man.ac.uk>
19 #include "frontends/LyXKeySym.h"
26 * Qt-specific key press.
28 * This is some really sick stuff.
30 class QLyXKeySym : public LyXKeySym {
34 virtual ~QLyXKeySym() {}
36 /// delayed constructor
37 void set(QKeyEvent * ev);
39 /// set from a LyX symbolic name
40 virtual void init(string const & symbolname);
42 /// Is this a valid key?
43 virtual bool isOK() const;
45 /// Is this a modifier key only?
46 virtual bool isModifier() const;
48 /// return the LyX symbolic name
49 virtual string getSymbolName() 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() const;
58 virtual bool operator==(LyXKeySym const & k) const;
61 /// return true if bogon (see source)
62 bool is_qt_bogon() const;
64 /// return the fixed bogon (see source)
65 char debogonify() const;
69 /// the event string value
75 #endif // QLYXKEYSYM_H