From 98a1e3f36567639344f12932b629e526a8783aa8 Mon Sep 17 00:00:00 2001 From: sandman Date: Sat, 13 Apr 2002 00:47:20 +0000 Subject: CVS import of QPdf --- (limited to 'noncore/unsupported/qpdf/QPEOutputDev.h') diff --git a/noncore/unsupported/qpdf/QPEOutputDev.h b/noncore/unsupported/qpdf/QPEOutputDev.h new file mode 100644 index 0000000..7f1e527 --- a/dev/null +++ b/noncore/unsupported/qpdf/QPEOutputDev.h @@ -0,0 +1,49 @@ +#ifndef __QPE_OUTPUTDEV_H__ +#define __QPE_OUTPUTDEV_H__ + +#include "QOutputDev.h" + +class QLabel; +class QBusyBar; + +class QPEOutputDev : public QOutputDev { + Q_OBJECT + +public: + QPEOutputDev ( QWidget *parent = 0, const char *name = 0 ); + + void setPageCount ( int actp, int maxp ); + + virtual void setBusy ( bool b = true ); + virtual bool isBusy ( ) const; + + QRect selection ( ) const; + void setSelection ( const QRect &r, bool scrollto = false ); + + virtual void startPage ( int pn, GfxState *gs ); + +signals: + void selectionChanged ( const QRect &sel ); + +protected: + virtual void setHBarGeometry ( QScrollBar &hbar, int x, int y, int w, int h ); + + virtual void keyPressEvent ( QKeyEvent *e ); + virtual void viewportMousePressEvent ( QMouseEvent *e ); + virtual void viewportMouseMoveEvent ( QMouseEvent *e ); + virtual void viewportMouseReleaseEvent ( QMouseEvent *e ); + + virtual void drawContents ( QPainter *p, int, int, int, int ); + +private: + QLabel *m_counter; + QBusyBar *m_busybar; + bool m_isbusy; + + QRect m_selection; + QPoint m_selectionstart; + QPoint m_selectioncursor; + bool m_selectiondrag; +}; + +#endif \ No newline at end of file -- cgit v0.9.0.2