1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

PDFViewer: Add zoom in/out/reset menu actions

Make PDFViewer::zoom_in() & ::zoom_out() public and add menu and toolbar
actions. Also add an action for zoom reset.
This commit is contained in:
Marcus Nilsson 2022-01-02 21:58:51 +01:00 committed by Andreas Kling
parent 45085122ee
commit 3af71c406d
4 changed files with 50 additions and 8 deletions

View file

@ -35,6 +35,10 @@ private:
RefPtr<GUI::Action> m_go_to_prev_page_action;
RefPtr<GUI::Action> m_go_to_next_page_action;
RefPtr<GUI::Action> m_toggle_sidebar_action;
RefPtr<GUI::Action> m_zoom_in_action;
RefPtr<GUI::Action> m_zoom_out_action;
RefPtr<GUI::Action> m_reset_zoom_action;
bool m_sidebar_open { false };
ByteBuffer m_buffer;
};