]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt2/QLyXKeySym.h
Replace LString.h with support/std_string.h,
[features.git] / src / frontends / qt2 / QLyXKeySym.h
index 538e81fad618082f8a3455cc32fd90d28b9bd94f..9c666b98b833dcce4f064d323ba1e8c76574ad78 100644 (file)
@@ -1,27 +1,26 @@
 // -*- C++ -*-
 /**
  * \file QLyXKeySym.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Asger and Juergen
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef QLYXKEYSYM_H
 #define QLYXKEYSYM_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
-#include "LString.h"
+#include "support/std_string.h"
 #include "frontends/LyXKeySym.h"
 
 #include <qstring.h>
 
 class QKeyEvent;
+
 /**
  * Qt-specific key press.
  *
@@ -44,32 +43,28 @@ public:
 
        /// Is this a modifier key only?
        virtual bool isModifier() const;
-       
+
        /// return the LyX symbolic name
        virtual string getSymbolName() const;
 
+       /// Is this normal insertable text ? (last ditch attempt only)
+       virtual bool isText() const;
+
        /**
         * Return the value of the keysym into the local ISO encoding.
         * This converts the LyXKeySym to a 8-bit encoded character.
         * This relies on user to use the right encoding.
         */
-       virtual char getISOEncoded() const;
-
-       virtual bool operator==(LyXKeySym const & k) const;
-
+       virtual char getISOEncoded(string const & encoding) const;
+       ///
+       int key() const {
+               return key_;
+       }
 private:
-       /// return true if bogon (see source)
-       bool is_qt_bogon() const;
-
-       /// return the fixed bogon (see source)
-       char debogonify() const;
        /// the Qt sym value
        int key_;
-       /// the event string value 
+       /// the event string value
        QString text_;
-       /// hack-o-rama
-       int ascii_; 
 };
 
 #endif // QLYXKEYSYM_H