diff options
Diffstat (limited to 'Userland/Applications/PDFViewer/PDFViewerWidget.h')
-rw-r--r-- | Userland/Applications/PDFViewer/PDFViewerWidget.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Applications/PDFViewer/PDFViewerWidget.h b/Userland/Applications/PDFViewer/PDFViewerWidget.h index 3bf3a7d42a..f3a520bee3 100644 --- a/Userland/Applications/PDFViewer/PDFViewerWidget.h +++ b/Userland/Applications/PDFViewer/PDFViewerWidget.h @@ -10,6 +10,7 @@ #include "PDFViewer.h" #include "SidebarWidget.h" #include <LibGUI/Action.h> +#include <LibGUI/ActionGroup.h> #include <LibGUI/TextBox.h> #include <LibGUI/Widget.h> @@ -22,12 +23,13 @@ public: ~PDFViewerWidget() override = default; void initialize_menubar(GUI::Window&); - void create_toolbar(); void open_file(Core::File&); private: PDFViewerWidget(); + void initialize_toolbar(GUI::Toolbar&); + RefPtr<PDFViewer> m_viewer; RefPtr<SidebarWidget> m_sidebar; RefPtr<NumericInput> m_page_text_box; @@ -40,6 +42,9 @@ private: RefPtr<GUI::Action> m_reset_zoom_action; RefPtr<GUI::Action> m_rotate_counterclockwise_action; RefPtr<GUI::Action> m_rotate_clockwise_action; + GUI::ActionGroup m_page_view_action_group; + RefPtr<GUI::Action> m_page_view_mode_single; + RefPtr<GUI::Action> m_page_view_mode_multiple; bool m_sidebar_open { false }; ByteBuffer m_buffer; |