From 8eba2f4ad58f6f9cc087e544e5f69a3285a99f10 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 27 Apr 2017 23:48:24 -0400 Subject: Move the unfinished utilities in Lumina over to an "experimental" directory. --- src-qt5/experimental/lumina-pdf/mainUI.h | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src-qt5/experimental/lumina-pdf/mainUI.h (limited to 'src-qt5/experimental/lumina-pdf/mainUI.h') diff --git a/src-qt5/experimental/lumina-pdf/mainUI.h b/src-qt5/experimental/lumina-pdf/mainUI.h new file mode 100644 index 00000000..1bd1699b --- /dev/null +++ b/src-qt5/experimental/lumina-pdf/mainUI.h @@ -0,0 +1,52 @@ +//=========================================== +// 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 +#include +#include +#include +#include + +#include + +namespace Ui{ + class MainUI; +}; + +class MainUI : public QMainWindow{ + Q_OBJECT +public: + MainUI(); + ~MainUI(); + + void loadFile(QString path); + + +private: + Poppler::Document *DOC; + QPrintPreviewWidget *WIDGET; + Ui::MainUI *ui; + QPrinter* Printer; + QPrintDialog *PrintDLG; + + QString lastdir; + + //Other Interface elements + QProgressBar *progress; + QAction *progAct; //action associated with the progressbar + + +private slots: + void paintOnWidget(QPrinter *PRINTER); + + //Button Slots + void OpenNewFile(); + +}; +#endif -- cgit