diff options
author | Ken Moore <ken@ixsystems.com> | 2017-04-27 23:48:24 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-04-27 23:48:24 -0400 |
commit | 8eba2f4ad58f6f9cc087e544e5f69a3285a99f10 (patch) | |
tree | e17acae30ebd4ca46d93b9589947202b8d8be8c1 /src-qt5/experimental/lumina-pdf/mainUI.h | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-8eba2f4ad58f6f9cc087e544e5f69a3285a99f10.tar.gz lumina-8eba2f4ad58f6f9cc087e544e5f69a3285a99f10.tar.bz2 lumina-8eba2f4ad58f6f9cc087e544e5f69a3285a99f10.zip |
Move the unfinished utilities in Lumina over to an "experimental" directory.
Diffstat (limited to 'src-qt5/experimental/lumina-pdf/mainUI.h')
-rw-r--r-- | src-qt5/experimental/lumina-pdf/mainUI.h | 52 |
1 files changed, 52 insertions, 0 deletions
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 <QPrintPreviewWidget> +#include <QPrintDialog> +#include <QPrinter> +#include <QMainWindow> +#include <QProgressBar> + +#include <poppler-qt5.h> + +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 |