]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiWorkArea.h
- LyX is dead slow, so the least we can do is use anti-alised text
[lyx.git] / src / frontends / qt4 / GuiWorkArea.h
index c6ebce0b6867f7b9b7a4e3f891b26909c030e56a..c8aaac8b8e94d2be3331a3277b11b3ae404b18cd 100644 (file)
 
 #include <QAbstractScrollArea>
 #include <QMouseEvent>
-#include <QWheelEvent>
 #include <QResizeEvent>
 #include <QKeyEvent>
-#include <QPaintEvent>
 #include <QTimer>
-#include <QImage>
 #include <QPixmap>
 
 #include <queue>
 
-class Painter;
-
 class QWidget;
 class QDragEnterEvent;
 class QDropEvent;
-class QMouseEvent;
+class QWheelEvent;
+class QPaintEvent;
 
 namespace lyx {
+
+class Painter;
+
 namespace frontend {
 
 class GuiView;
@@ -95,13 +94,11 @@ class GuiWorkArea: public QAbstractScrollArea, public WorkArea
        Q_OBJECT
 
 public:
-
+       ///
        GuiWorkArea(int width, int height, LyXView & lyx_view);
 
-       virtual ~GuiWorkArea();
        /// return the width of the content pane
        virtual int width() const { return viewport()->width(); }
-
        /// return the height of the content pane
        virtual int height() const { return viewport()->height(); }
        ///
@@ -122,15 +119,6 @@ public:
        /// update the passed area.
        void update(int x, int y, int w, int h);
 
-       /// return a screen copy of the defined area.
-       QPixmap copyScreen(int x, int y, int w, int h) const;
-
-       /// Draw a pixmap onto the backing pixmap.
-       /**
-       QPixmap is implicitely shared so no need to pass by reference.
-       */
-       void drawScreen(int x, int y, QPixmap pixmap);
-
        /// copies specified area of pixmap to screen
        virtual void expose(int x, int y, int exp_width, int exp_height);
 
@@ -160,10 +148,6 @@ protected:
        void keyPressEvent(QKeyEvent * e);
        /// IM events
        void inputMethodEvent(QInputMethodEvent * e);
-       /// focus in
-       void focusInEvent(QFocusEvent * ev);
-       /// focus out
-       void focusOutEvent(QFocusEvent * ev);
 
 public Q_SLOTS: