summaryrefslogtreecommitdiff
path: root/Userland/Applications/PDFViewer/PDFViewerWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/PDFViewer/PDFViewerWidget.h')
-rw-r--r--Userland/Applications/PDFViewer/PDFViewerWidget.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Userland/Applications/PDFViewer/PDFViewerWidget.h b/Userland/Applications/PDFViewer/PDFViewerWidget.h
new file mode 100644
index 0000000000..8f897d9720
--- /dev/null
+++ b/Userland/Applications/PDFViewer/PDFViewerWidget.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2021, Matthew Olsson <mattco@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include "PDFViewer.h"
+#include <LibGUI/Widget.h>
+
+class PDFViewer;
+
+class PDFViewerWidget final : public GUI::Widget {
+ C_OBJECT(PDFViewerWidget)
+public:
+ ~PDFViewerWidget() override;
+ void open_file(const String& path);
+ void initialize_menubar(GUI::Menubar&);
+
+private:
+ PDFViewerWidget();
+
+ RefPtr<PDFViewer> m_viewer;
+ ByteBuffer m_buffer;
+ RefPtr<GUI::Action> m_open_action;
+};