summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qpdf/QPEOutputDev.h
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/qpdf/QPEOutputDev.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/qpdf/QPEOutputDev.h49
1 files changed, 49 insertions, 0 deletions
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