X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt2%2Fqscreen.h;h=141692d0c2d2c486538c0aa9193850e1cdd67a14;hb=1fcedd4b635807e7046342f324d054c04c37f054;hp=6e3cc4845366ba35c3ca007e776f0bea009e2bd0;hpb=be865e22f25a96736a27bed7cbb6f853f7d51fc6;p=lyx.git diff --git a/src/frontends/qt2/qscreen.h b/src/frontends/qt2/qscreen.h index 6e3cc48453..141692d0c2 100644 --- a/src/frontends/qt2/qscreen.h +++ b/src/frontends/qt2/qscreen.h @@ -1,26 +1,25 @@ // -*- C++ -*- /** * \file qscreen.h - * Copyright 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 John Levon + * \author John Levon + * + * Full author contact details are available in file CREDITS */ #ifndef QSCREEN_H #define QSCREEN_H -#ifdef __GNUG__ -#pragma interface -#endif -#include - #include "screen.h" -#include "QWorkArea.h" - #include - +#include + +class WorkArea; + + /** * Qt implementation of toolkit-specific parts of LyXScreen. */ @@ -34,10 +33,10 @@ public: * draw the screen from a given position * @param y the text position to draw from * - * Uses as much of the already printed pixmap as possible + * Uses as much of the already printed pixmap as possible */ virtual void draw(LyXText *, BufferView *, unsigned int y); - + /** * showManualCursor - display the caret on the work area * @param text the lyx text containing the cursor @@ -50,24 +49,24 @@ public: virtual void showManualCursor(LyXText const *, int x, int y, int asc, int desc, Cursor_Shape shape); - + /// unpaint the cursor painted by showManualCursor() virtual void hideCursor(); - + protected: /// get the work area virtual WorkArea & workarea() const { return owner_; } - + /// repaint the whole content immediately void repaint(); - + /// copies specified area of pixmap to screen - virtual void expose(int x, int y, int exp_width, int exp_height); + virtual void expose(int x, int y, int exp_width, int exp_height); private: /// our owning widget QWorkArea & owner_; - + /// the mini-pixmap used for backing store for the blinking cursor boost::scoped_ptr nocursor_pixmap_;