]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiWorkArea.h
rename a few view functions from foo() to fooView()
[lyx.git] / src / frontends / qt4 / GuiWorkArea.h
index 73ca1426971de0d4818865045abe7919339b3790..2bafbeb5b3669ccbf5322bcbd6e9f63876cea3be 100644 (file)
@@ -15,8 +15,8 @@
 
 #include "frontends/WorkArea.h"
 
-#include "funcrequest.h"
-#include "frontends/Timeout.h"
+#include "FuncRequest.h"
+#include "support/Timeout.h"
 
 #include <QAbstractScrollArea>
 #include <QMouseEvent>
@@ -36,9 +36,6 @@ class QPaintEvent;
 namespace lyx {
 namespace frontend {
 
-class GuiView;
-class QLPainter;
-
 /// for emulating triple click
 class double_click {
 public:
@@ -88,10 +85,11 @@ class GuiWorkArea : public QAbstractScrollArea, public WorkArea
 
 public:
        ///
-       GuiWorkArea(int width, int height, int id, LyXView & lyx_view);
+       GuiWorkArea(Buffer & buffer, LyXView & lv);
 
        ///
        bool hasFocus() const { return QAbstractScrollArea::hasFocus(); }
+       bool isVisible() const { return QAbstractScrollArea::isVisible(); }
 
        /// return the width of the content pane
        virtual int width() const { return viewport()->width(); }
@@ -115,11 +113,6 @@ public:
        virtual void removeCursor();
 
 private:
-       void doGreyOut(QLPainter & pain);
-       ///
-       void dragEnterEvent(QDragEnterEvent * ev);
-       ///
-       void dropEvent(QDropEvent * ev);
        ///
        void focusInEvent(QFocusEvent *);
        ///
@@ -165,7 +158,7 @@ private:
        ///
        double_click dc_event_;
 
-       ///     
+       ///
        CursorWidget * cursor_;
        ///
        void updateScreen();