]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/qscreen.h
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[lyx.git] / src / frontends / qt4 / qscreen.h
1 // -*- C++ -*-
2 /**
3  * \file qscreen.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QSCREEN_H
13 #define QSCREEN_H
14
15
16 #include "screen.h"
17
18 #include <QPixmap>
19
20 class QColor;
21
22 class QWorkArea;
23 class WorkArea;
24
25
26 /**
27  * Qt implementation of toolkit-specific parts of LyXScreen.
28  */
29 class QScreen : public LyXScreen {
30 public:
31         QScreen(QWorkArea &);
32
33         virtual ~QScreen();
34
35 protected:
36         /// get the work area
37         virtual WorkArea & workarea() const;
38
39         /// copies specified area of pixmap to screen
40         virtual void expose(int x, int y, int exp_width, int exp_height);
41
42         /// paint the cursor and store the background
43         virtual void showCursor(int x, int y, int h, Cursor_Shape shape);
44
45         /// hide the cursor
46         virtual void removeCursor();
47
48 private:
49         /// our owning widget
50         QWorkArea & owner_;
51
52         QPixmap nocursor_;
53         QPixmap hcursor_;
54         QPixmap vcursor_;
55
56         //@{ the cursor pixmap position/size
57         int cursor_x_;
58         int cursor_y_;
59         int cursor_w_;
60         int cursor_h_;
61         //@}
62
63         QColor cursor_color_;
64 };
65
66 #endif // QSCREEN_H