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"
24 * Qt-specific key press.
26 class QLyXKeySym : public LyXKeySym {
30 virtual ~QLyXKeySym() {}
32 /// delayed constructor
33 void set(int key, QString const & text);
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;
60 * The generated text from the symbol. This will only be
61 * filled when the QLyXKeySym is used to pass a key press
62 * event, not when stored in a kbsequence etc.
67 #endif // QLYXKEYSYM_H