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) (side-by-side diff)
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) (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