// -*- C++ -*-
-/* ======================================================================= *\
- File : kbmap.h, kbmap.h,v 1.3 1996/12/10 04:35:57 larsbj Exp
- Author : chb, 30.Oct.1995
- Docu : see kbmap.C
- Purpose: class definitions for XKeyEvent keymap handling
- \* ==================================================================== */
+/**
+ * \file kbmap.h
+ * Copyright 1995-2002 the LyX Team
+ * Read the file COPYING
+ *
+ * \author Lars Gullik Bjønnes <larsbj@lyx.org>
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
#ifndef KBMAP_H
#define KBMAP_H
/// print all available keysyms
string const print() const;
-
+
/**
* Look up a key press in the keymap.
* @param key the keysym
struct kb_key {
/// Keysym
unsigned int code;
-
+
/// Modifier masks
unsigned int mod;
-
+
/// Keymap for prefix keys
boost::shared_ptr<kb_keymap> table;
-
+
/// Action for !prefix keys
int action;
};
* @param r internal recursion level
*/
void defkey(kb_sequence * seq, int action, unsigned int r = 0);
-
+
/// Returns a string of the given key
string const printKey(kb_key const & key) const;
Table table;
};
-#endif
+#endif // KBMAP_H