summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qpdf/QPEOutputDev.h
authorsandman <sandman>2002-04-13 00:47:20 (UTC)
committer sandman <sandman>2002-04-13 00:47:20 (UTC)
commit98a1e3f36567639344f12932b629e526a8783aa8 (patch) (unidiff)
tree0433d296857faceeafc54f7deabddb621f45a933 /noncore/unsupported/qpdf/QPEOutputDev.h
parent7e31b1fba119f69929d6744d7295555ff1727f4f (diff)
downloadopie-98a1e3f36567639344f12932b629e526a8783aa8.zip
opie-98a1e3f36567639344f12932b629e526a8783aa8.tar.gz
opie-98a1e3f36567639344f12932b629e526a8783aa8.tar.bz2
CVS import of QPdf
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