summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qpdf/QPEOutputDev.h
Unidiff
Diffstat (limited to 'noncore/unsupported/qpdf/QPEOutputDev.h') (more/less context) (show 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 @@
1#ifndef __QPE_OUTPUTDEV_H__
2#define __QPE_OUTPUTDEV_H__
3
4#include "QOutputDev.h"
5
6class QLabel;
7class QBusyBar;
8
9class QPEOutputDev : public QOutputDev {
10 Q_OBJECT
11
12public:
13 QPEOutputDev ( QWidget *parent = 0, const char *name = 0 );
14
15 void setPageCount ( int actp, int maxp );
16
17 virtual void setBusy ( bool b = true );
18 virtual bool isBusy ( ) const;
19
20 QRect selection ( ) const;
21 void setSelection ( const QRect &r, bool scrollto = false );
22
23 virtual void startPage ( int pn, GfxState *gs );
24
25signals:
26 void selectionChanged ( const QRect &sel );
27
28protected:
29 virtual void setHBarGeometry ( QScrollBar &hbar, int x, int y, int w, int h );
30
31 virtual void keyPressEvent ( QKeyEvent *e );
32 virtual void viewportMousePressEvent ( QMouseEvent *e );
33 virtual void viewportMouseMoveEvent ( QMouseEvent *e );
34 virtual void viewportMouseReleaseEvent ( QMouseEvent *e );
35
36 virtual void drawContents ( QPainter *p, int, int, int, int );
37
38private:
39 QLabel *m_counter;
40 QBusyBar *m_busybar;
41 bool m_isbusy;
42
43 QRect m_selection;
44 QPoint m_selectionstart;
45 QPoint m_selectioncursor;
46 bool m_selectiondrag;
47};
48
49#endif \ No newline at end of file