]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/WorkArea.h
Extracted from r14281
[lyx.git] / src / frontends / WorkArea.h
index 113f2ce9367b3de3db08eb95b97db04c3c057261..c8a846c9f537dc9924e6225708d3c61aab3e94ca 100644 (file)
@@ -18,9 +18,9 @@
 
 #include "frontends/key_state.h"
 #include "frontends/LyXKeySym.h"
+#include "frontends/Timeout.h"
 
 class BufferView;
-class ViewMetricsInfo;
 
 namespace lyx {
 namespace frontend {
@@ -42,6 +42,11 @@ public:
 
        void setBufferView(BufferView * buffer_view);
 
+       ///
+       BufferView & bufferView();
+       ///
+       BufferView const & bufferView() const;
+
        /// return the painter object for this work area
        virtual Painter & getPainter() = 0;
 
@@ -60,7 +65,10 @@ public:
        virtual void setScrollbarParams(int height, int pos, int line_height) = 0;
 
        /// redraw the screen, without using existing pixmap
-       virtual void redraw(BufferView & bv, ViewMetricsInfo const & vi);
+       virtual void redraw();
+
+       ///
+       void processKeySym(LyXKeySymPtr key, key_modifier::state state);
 
        /// grey out (no buffer)
        void greyOut();
@@ -71,6 +79,13 @@ public:
        /// hide the cursor
        virtual void removeCursor() = 0;
 
+       /// Show the cursor
+       void showCursor();
+       /// Hide the cursor
+       void hideCursor();
+       /// toggle the cursor's visibility
+       void toggleCursor();
+
 protected:
        /// cause the display of the given area of the work area
        virtual void expose(int x, int y, int w, int h) = 0;
@@ -84,6 +99,12 @@ private:
 
        ///
        bool greyed_out_;
+
+       ///
+       bool cursor_visible_;
+
+       ///
+       Timeout cursor_timeout_;
 };
 
 } // namespace frontend