]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.h
Create a grfx::Loader class and so move large chunks of code out of
[lyx.git] / src / lyxfunc.h
index ec8898c242102c5607fd1a27bf6d83bb6475184f..9f72d2c406e12ce607312015f81a2e9b5f581c58 100644 (file)
@@ -6,14 +6,18 @@
 #pragma interface
 #endif
 
-#include <X11/Xlib.h>
-#include <sigc++/signal_system.h>
 
 #include "commandtags.h" // for kb_action enum
 #include "FuncStatus.h"
 #include "kbsequence.h"
 #include "LString.h"
 
+#include "frontends/mouse_state.h"
+#include "frontends/key_state.h"
+#include "frontends/LyXKeySym.h"
+
+#include <boost/signals/trackable.hpp>
+
 class LyXView;
 class LyXText;
 
@@ -24,7 +28,7 @@ class LyXText;
     keyboard or from the GUI. All GUI objects, including buttons and
     menus should use this class and never call kernel functions directly.
 */
-class LyXFunc : public SigC::Object {
+class LyXFunc : public boost::signals::trackable {
 public:
        ///
        explicit
@@ -52,7 +56,7 @@ public:
        void initMiniBuffer();
 
        ///
-       void processKeySym(KeySym k, unsigned int state);
+       void processKeySym(LyXKeySymPtr key, key_modifier::state state);
 
        /// we need one internal which is called from inside LyXAction and
        /// can contain the string argument.
@@ -76,7 +80,7 @@ public:
        string const getMessage() const { return dispatch_buffer; }
        /// Buffer to store result messages
        string const getStatusMessage() const { return status_buffer; }
-       /// Handle a accented char keysequenze
+       /// Handle a accented char key sequence
        void handleKeyFunc(kb_action action);
 
 private:
@@ -89,7 +93,7 @@ private:
        ///
        kb_sequence cancel_meta_seq;
        ///
-       unsigned meta_fake_bit;
+       key_modifier::state meta_fake_bit;
        ///
        void moveCursorUpdate(bool flag = true, bool selecting = false);
        ///
@@ -139,7 +143,7 @@ private:
 inline
 bool LyXFunc::wasMetaKey() const
 {
-       return (meta_fake_bit != 0);
+       return (meta_fake_bit != key_modifier::none);
 }