]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/XLyXKeySym.h
Really dull and boring header shit
[lyx.git] / src / frontends / xforms / XLyXKeySym.h
1 // -*- C++ -*-
2 /**
3  * \file XLyXKeySym.h
4  * Read the file COPYING
5  *
6  * \author Asger and Juergen
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef XLYXKEYSYM_H
12 #define XLYXKEYSYM_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "LString.h"
19 #include <X11/Xlib.h>
20 #include "frontends/LyXKeySym.h"
21
22 /**
23  * This is the XForms (X11) version of LyXKeySym.
24  */
25 class XLyXKeySym : public LyXKeySym {
26 public:
27         XLyXKeySym();
28
29         /// X11 specific initialization with an X11 KeySym
30         void initFromKeySym(KeySym);
31
32         virtual void init(string const & symbolname);
33
34         virtual ~XLyXKeySym() {}
35
36         /// Is this a valid key?
37         virtual bool isOK() const;
38
39         /// Is this a modifier key only?
40         virtual bool isModifier() const;
41         
42         virtual string getSymbolName() const;
43
44         /**
45          * Return the value of the keysym into the local ISO encoding.
46          * This converts the LyXKeySym to a 8-bit encoded character.
47          * This relies on user to use the right encoding.
48          */
49         virtual char getISOEncoded() const;
50
51         virtual bool operator==(LyXKeySym const & k) const;
52
53 private:
54         unsigned int keysym;
55 };
56
57 #endif // XLYXKEYSYM_H