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