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"
22 * Qt-specific key press.
24 * This is some really sick stuff.
26 class QLyXKeySym : public LyXKeySym {
30 virtual ~QLyXKeySym() {}
32 /// delayed constructor
33 void set(int key, bool shift);
35 /// set from a LyX symbolic name
36 virtual void init(string const & symbolname);
38 /// Is this a valid key?
39 virtual bool isOK() const;
41 /// Is this a modifier key only?
42 virtual bool isModifier() const;
44 /// return the LyX symbolic name
45 virtual string getSymbolName() const;
48 * Return the value of the keysym into the local ISO encoding.
49 * This converts the LyXKeySym to a 8-bit encoded character.
50 * This relies on user to use the right encoding.
52 virtual char getISOEncoded() const;
54 virtual bool operator==(LyXKeySym const & k) const;
63 #endif // QLYXKEYSYM_H