summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qpdf/qpdf.h
Unidiff
Diffstat (limited to 'noncore/unsupported/qpdf/qpdf.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/qpdf/qpdf.h94
1 files changed, 94 insertions, 0 deletions
diff --git a/noncore/unsupported/qpdf/qpdf.h b/noncore/unsupported/qpdf/qpdf.h
new file mode 100644
index 0000000..b4ce554
--- a/dev/null
+++ b/noncore/unsupported/qpdf/qpdf.h
@@ -0,0 +1,94 @@
1#ifndef __QPDF_H__
2#define __QPDF_H__
3
4#include "aconf.h"
5
6#include <qmainwindow.h>
7
8
9class QPEOutputDev;
10class PDFDoc;
11
12class DocLnk;
13class FileSelector;
14class QWidgetStack;
15class QLineEdit;
16
17
18class QPdfDlg : public QMainWindow {
19 Q_OBJECT
20
21public:
22 QPdfDlg ( );
23 virtual ~QPdfDlg ( );
24
25public slots:
26 void firstPage ( );
27 void prevPage ( );
28 void nextPage ( );
29 void lastPage ( );
30
31 void gotoPage ( int n );
32
33 void setZoom ( int z );
34
35 void gotoPageDialog ( );
36
37 void toggleFullscreen ( );
38 void toggleFindBar ( );
39
40 void findText ( const QString & );
41 void findText ( );
42
43 void openFile ( );
44 void openFile ( const QString & );
45 void openFile ( const DocLnk & );
46
47 void setDocument ( const QString & );
48
49private slots:
50 void delayedInit ( );
51 void closeFileSelector ( );
52
53 void updateCaption ( );
54
55 void copyToClipboard ( const QRect & );
56
57protected:
58 void setFullscreen ( bool b = true );
59
60 void setBusy ( bool b = true );
61 bool busy ( ) const;
62
63 void renderPage ( );
64
65 virtual void resizeEvent ( QResizeEvent *e );
66 virtual void focusInEvent ( QFocusEvent *e );
67
68private:
69 QWidgetStack *m_stack;
70 QPEOutputDev *m_outdev;
71 FileSelector *m_filesel;
72
73 QToolBar *m_tb_menu, *m_tb_tool, *m_tb_find;
74 QLineEdit *m_findedit;
75 QPopupMenu *m_pm_zoom;
76
77 QToolButton *m_to_find, *m_to_full;
78
79 bool m_fullscreen;
80
81 bool m_busy;
82 bool m_renderok;
83
84 int m_currentpage;
85 int m_pages;
86 int m_zoom;
87
88 PDFDoc *m_doc;
89
90 QString m_currentdoc;
91};
92
93
94#endif