diff options
author | Ken Moore <ken@ixsystems.com> | 2017-03-13 15:41:39 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-03-13 15:41:39 -0400 |
commit | cbef967cead76a6e465d534284acdd1927ad632e (patch) | |
tree | 74e336cb732edb37495f1312ce15135830c7ec51 /src-qt5/desktop-utils/lumina-pdf/mainUI.h | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-cbef967cead76a6e465d534284acdd1927ad632e.tar.gz lumina-cbef967cead76a6e465d534284acdd1927ad632e.tar.bz2 lumina-cbef967cead76a6e465d534284acdd1927ad632e.zip |
Add a new desktop application: lumina-pdf
This is a basic PDF file viewer application, with printing capabilities.
NOTE: This is not quite done yet - the basic PDF viewer works if an input file is supplied, but I have not finished adding all the normal window operations around it yet (menu bar with close, open file options, progress bar for loading status rather than using a message box, etc...)
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/mainUI.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/mainUI.h | 33 |
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 |