summaryrefslogtreecommitdiff
path: root/src/mainwindow/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow/mainwindow.h')
-rw-r--r--src/mainwindow/mainwindow.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mainwindow/mainwindow.h b/src/mainwindow/mainwindow.h
new file mode 100644
index 0000000..14ceb49
--- /dev/null
+++ b/src/mainwindow/mainwindow.h
@@ -0,0 +1,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