#include "FuncRequest.h"
#include "qt_helpers.h"
+#include "LyXRC.h"
#include "support/docstring.h"
#include "support/Timeout.h"
#include <QAbstractScrollArea>
#include <QMouseEvent>
+#include <QImage>
#include <QPixmap>
#include <QTimer>
void resizeBufferView();
/// paint the cursor and store the background
- virtual void showCursor(int x, int y, int h,
+ void showCursor(int x, int y, int h,
bool l_shape, bool rtl, bool completable);
/// hide the cursor
- virtual void removeCursor();
+ void removeCursor();
///
void dispatch(FuncRequest const & cmd0, KeyModifier = NoModifier);
/// hide the visible cursor, if it is visible
void updateCursorShape();
///
void setCursorShape(Qt::CursorShape shape);
+
+ void resetScreen()
+ {
+ delete screen_;
+ if (lyxrc.use_qimage) {
+ screen_ = new QImage(p->viewport()->width(), p->viewport()->height(),
+ QImage::Format_ARGB32_Premultiplied);
+ } else {
+ screen_ = new QPixmap(p->viewport()->width(), p->viewport()->height());
+ }
+ }
///
GuiWorkArea * p;
-
+ ///
+ QPaintDevice * screen_;
///
BufferView * buffer_view_;
/// Read only Buffer status cache.
///
CursorWidget * cursor_;
///
- QPixmap screen_;
- ///
bool need_resize_;
///
bool schedule_redraw_;
/// pressed. This is used to get the correct context menu
/// when the menu is actually shown (after releasing on Windows)
/// and after the DEPM has done its job.
- docstring context_menu_name_;
+ std::string context_menu_name_;
}; // GuiWorkArea
} // namespace frontend