aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/mainUI.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/mainUI.h')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/mainUI.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/mainUI.h b/src-qt5/desktop-utils/lumina-pdf/mainUI.h
new file mode 100644
index 00000000..34bbc801
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-pdf/mainUI.h
@@ -0,0 +1,33 @@
+//===========================================
+// Lumina Desktop source code
+// Copyright (c) 2017, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifndef _LUMINA_PDF_VIEWER_MAIN_WINDOW_H
+#define _LUMINA_PDF_VIEWER_MAIN_WINDOW_H
+
+#include <QPrintPreviewDialog>
+#include <QPrinter>
+
+#include <poppler-qt5.h>
+
+class MainUI : public QPrintPreviewDialog{
+ Q_OBJECT
+public:
+ MainUI();
+ ~MainUI();
+
+ void loadFile(QString path);
+
+ virtual void done(int);
+
+private:
+ Poppler::Document *DOC;
+
+private slots:
+ void paintOnWidget(QPrinter *PRINTER);
+ void OpenNewFile();
+
+};
+#endif
bgstack15