mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
PDFViewer: Let users change clipping paths visibility
Now that the Renderer accepts preferences, PDFViewer can offer ways for changing these preferences. The first step in this direction is to add a checkbox that allows toggling whether clipping paths are visible or not. A Config item has also been added to remember this setting.
This commit is contained in:
parent
e92ec26771
commit
bc7da24fe6
4 changed files with 26 additions and 4 deletions
|
@ -6,12 +6,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "AK/RefPtr.h"
|
||||
#include "NumericInput.h"
|
||||
#include "PDFViewer.h"
|
||||
#include "SidebarWidget.h"
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/ActionGroup.h>
|
||||
#include <LibGUI/TextBox.h>
|
||||
#include <LibGUI/CheckBox.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
|
||||
class PDFViewer;
|
||||
|
@ -45,6 +46,7 @@ private:
|
|||
GUI::ActionGroup m_page_view_action_group;
|
||||
RefPtr<GUI::Action> m_page_view_mode_single;
|
||||
RefPtr<GUI::Action> m_page_view_mode_multiple;
|
||||
RefPtr<GUI::CheckBox> m_show_clipping_paths;
|
||||
|
||||
bool m_sidebar_open { false };
|
||||
ByteBuffer m_buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue