#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;
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
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.
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:
///
kb_sequence cancel_meta_seq;
///
- unsigned meta_fake_bit;
+ key_modifier::state meta_fake_bit;
///
void moveCursorUpdate(bool flag = true, bool selecting = false);
///
inline
bool LyXFunc::wasMetaKey() const
{
- return (meta_fake_bit != 0);
+ return (meta_fake_bit != key_modifier::none);
}