]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/WorkArea.h
Move Color::color enum to ColorCode.h
[lyx.git] / src / frontends / WorkArea.h
index e9ccfe803ea49a53fcf2f686ccfbf2b54eea4188..74a875f241f83141cd65b1589b14f4c662d8a192 100644 (file)
 #ifndef BASE_WORKAREA_H
 #define BASE_WORKAREA_H
 
-#include "frontends/key_state.h"
+#include "frontends/KeyModifier.h"
+#include "frontends/Delegates.h"
 
 #include "support/Timeout.h"
 #include "support/docstring.h"
 
-#include <boost/signals/trackable.hpp>
-
 #undef CursorShape
 
 namespace lyx {
@@ -52,7 +51,8 @@ enum CursorShape {
  * It works in concert with the BaseScreen class to update the
  * widget view of a document.
  */
-class WorkArea : public boost::signals::trackable {
+class WorkArea
+{
 public:
        ///
        WorkArea(Buffer & buffer, LyXView & lv);
@@ -98,18 +98,18 @@ public:
 
        /// Process Key pressed event.
        /// This needs to be public because it is accessed externally by GuiView.
-       void processKeySym(KeySymbol const & key, key_modifier::state state);
+       void processKeySym(KeySymbol const & key, KeyModifier mod);
+
+       /// close this work area.
+       /// Slot for Buffer::closing signal.
+       void close();
 
 protected:
        /// cause the display of the given area of the work area
        virtual void expose(int x, int y, int w, int h) = 0;
        ///
-       void dispatch(FuncRequest const & cmd0,
-               key_modifier::state = key_modifier::none);
+       void dispatch(FuncRequest const & cmd0, KeyModifier = NoModifier);
 
-       /// close this work area.
-       /// Slot for Buffer::closing boost signal.
-       void close();
        ///
        void resizeBufferView();
        /// hide the visible cursor, if it is visible
@@ -136,11 +136,6 @@ private:
 
        ///
        Timeout cursor_timeout_;
-
-       /// buffer changed signal connection
-       boost::signals::connection bufferChangedConnection_;
-       /// buffer closing signal connection
-       boost::signals::connection bufferClosingConnection_;
 };
 
 } // namespace frontend