blob: 14ceb4973d0af32fe7ee0dd75ccda9877ff40109 (
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
|
#ifndef CPDF_MAINWINDOW_H
#define CPDF_MAINWINDOW_H
#include <QMainWindow>
namespace Poppler {
class Document;
}
namespace Ui {
class MainWindow;
}
class InfoForm;
class ContentsForm;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
~MainWindow();
public slots:
void open(const QString &path);
void showPage(int pageNumber);
private:
Ui::MainWindow *ui = nullptr;
InfoForm *info = nullptr;
ContentsForm *contents = nullptr;
Poppler::Document *document = nullptr;
};
#endif // CPDF_MAINWINDOW_H
|