]> git.lyx.org Git - lyx.git/blobdiff - src/KeySequence.h
Fulfill promise to Andre: TextClass_ptr --> TextClassPtr.
[lyx.git] / src / KeySequence.h
index 7774f0a0ab6140233fd41f01de1ba70078266eae..e39d6e2d35633b821a978b950556492c764d8ef9 100644 (file)
@@ -28,10 +28,11 @@ class FuncRequest;
 /// Holds a key sequence and the current and standard keymaps
 class KeySequence {
 public:
-       typedef std::vector<KeySymbolPtr> Sequence;
+       typedef std::vector<KeySymbol> Sequence;
 
        friend class KeyMap;
 
+       KeySequence() : stdmap(0), curmap(0), deleted_(true) {}
        ///
        KeySequence(KeyMap * std, KeyMap * cur)
                : stdmap(std), curmap(cur), deleted_(false) {}
@@ -45,7 +46,7 @@ public:
         * @return the action matching this key sequence or LFUN_UNKNOWN_ACTION
         */
        FuncRequest const &
-       addkey(KeySymbolPtr keysym, key_modifier::state mod,
+       addkey(KeySymbol const & keysym, key_modifier::state mod,
               key_modifier::state nmod = key_modifier::none);
 
        /**
@@ -63,8 +64,8 @@ public:
 
        /**
         * Return the current sequence as a string.
-        * @param forgui true if the string should use translations and 
-        *   special characters. 
+        * @param forgui true if the string should use translations and
+        *   special characters.
         * @see parse()
         */
        docstring const print(bool forgui) const;
@@ -72,8 +73,8 @@ public:
        /**
         * Return the current sequence and available options as
         * a string. No options are added if no curmap kb map exists.
-        * @param forgui true if the string should use translations and 
-        *   special characters. 
+        * @param forgui true if the string should use translations and
+        *   special characters.
         */
        docstring const printOptions(bool forgui) const;