]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QWorkArea.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QWorkArea.h
index 0f6089df4aa7f834785bf6411bc9bf27ae86c354..d397a91bc24ff5450b67d957712863651e376de3 100644 (file)
@@ -1,11 +1,13 @@
 // -*- C++ -*-
 /**
  * \file QWorkArea.h
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author unknown
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef QWORKAREA_H
 #pragma interface
 #endif
 
-#include <utility>
-
 #include "WorkArea.h"
 #include "QLPainter.h"
 #include "QContentPane.h"
+
 #include <qwidget.h>
 #include <qscrollbar.h>
 #include <qpixmap.h>
 
+
 /**
  * Qt-specific implementation of the work area
  * (buffer view GUI)
  * Hopefully soon we can just use QScrollView ...
  */
 class QWorkArea : public WorkArea, public QWidget {
-       friend class QContentPane;
 public:
+       friend class QContentPane;
 
        QWorkArea(int x, int y, int w, int h);
 
-       // FIXME:
-       virtual void greyOut() const { }
-
        virtual ~QWorkArea();
        /// return this widget's painter
        virtual Painter & getPainter() { return painter_; }
@@ -51,17 +46,9 @@ public:
        virtual int workWidth() const { return content_->width(); }
        /// return the height of the content pane
        virtual int workHeight() const { return content_->height(); }
-       /// resize this widget
-       virtual void resize(int xpos, int ypos, int width, int height);
-       /// FIXME: makes no sense ?
-       virtual void redraw() const { }
-       /// set focus to this widget
-       virtual void setFocus() const { /* FIXME */ }
-       /// does this widget have the focus ?
-       virtual bool hasFocus() const { /* FIXME */ return true; }
-       /// 
+       ///
        virtual void setScrollbarParams(int height, int pos, int line_height);
+
        /// a selection exists
        virtual void haveSelection(bool) const;
        ///
@@ -74,15 +61,14 @@ public:
 
        /// get the content pane widget
        QWidget * getContent() const { return content_; }
-
 private:
        /// scroll bar
        QScrollBar * scrollbar_;
        /// content
        QContentPane * content_;
+
        /// our painter
        QLPainter painter_;
 };
+
 #endif // QWORKAREA_H