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:
Matthew Olsson 2021-05-23 22:34:44 -07:00 committed by Ali Mohammad Pur
commit cf3eb27108
Notes: sideshowbarker 2024-07-18 17:26:00 +09:00
6 changed files with 186 additions and 10 deletions

View file

@ -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: