blob: d7de8485563047f70affffa6678cff772738888d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
//===========================================
// 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
|