]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
redraw fix 1.
[lyx.git] / src / BufferView.h
index da22d8781a682953241d8962ca91b69123d7dfd9..0c91f1c3808f2c21d70619f96105dc22d86186d7 100644 (file)
@@ -25,7 +25,7 @@ class LyXView;
 class LyXText;
 class TeXErrors;
 class Buffer;
-class LScreen;
+class LyXScreen;
 class Language;
 class Painter;
 class UpdatableInset;
@@ -52,17 +52,19 @@ public:
        ///
        Buffer * buffer() const;
        ///
-       Painter & painter();
+       Painter & painter() const;
        ///
-       LScreen & screen() const;
+       LyXScreen & screen() const;
        ///
        void buffer(Buffer * b);
        ///
-       void resize(int, int, int, int);
-       ///
        void resize();
-       ///
-       void redraw();
+       /**
+        * Repaint the pixmap. Used for when we don't want
+        * to go through the full update() logic, just a simple
+        * repaint of the whole screen.
+        */
+       void repaint();
        ///
        bool fitCursor();
        ///
@@ -76,8 +78,6 @@ public:
        ///
        void redoCurrentBuffer();
        ///
-       int resizeCurrentBuffer();
-       ///
        void cursorPrevious(LyXText *);
        ///
        void cursorNext(LyXText *);
@@ -117,12 +117,6 @@ public:
        int sly;
        ///
        void insetUnlock();
-#if 0
-       ///
-       void insetSleep();
-       ///
-       void insetWakeup();
-#endif
        ///
        void replaceWord(string const & replacestring);
        ///
@@ -187,12 +181,8 @@ public:
        ///
        void center();
 
-       ///
-       bool focus() const;
-       ///
-       void focus(bool);
-       /// A callback for the slider in the scrollbar.
-       void scrollCB(double);
+       /// Scroll the view by a number of pixels
+       void scrollDocView(int);
 
        ///
        void setState();