mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
PDFViewer: Add a toolbar
The toolbar has an option to toggle the sidebar, a number input to set the current page, and two buttons to go up and down by one page
This commit is contained in:
parent
cea7dbce42
commit
cf3eb27108
Notes:
sideshowbarker
2024-07-18 17:26:00 +09:00
Author: https://github.com/mattco98
Commit: cf3eb27108
Pull-request: https://github.com/SerenityOS/serenity/pull/7436
Reviewed-by: https://github.com/alimpfard
6 changed files with 186 additions and 10 deletions
|
@ -41,6 +41,10 @@ class PDFViewer : public GUI::AbstractScrollableWidget {
|
|||
public:
|
||||
virtual ~PDFViewer() override = default;
|
||||
|
||||
ALWAYS_INLINE u32 current_page() const { return m_current_page_index; }
|
||||
ALWAYS_INLINE void set_current_page(u32 current_page) { m_current_page_index = current_page; }
|
||||
|
||||
ALWAYS_INLINE const RefPtr<PDF::Document>& document() const { return m_document; }
|
||||
void set_document(RefPtr<PDF::Document>);
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue