Mustafa Quraish
eae21c7e31
PDFViewer: Use FileSystemAccessClient to open files
2021-09-04 03:32:30 +02:00
Andreas Kling
687a12d7fb
Userland: Add GUI::Window::add_menu() and use it everywhere
...
Applications previously had to create a GUI::Menubar object, add menus
to it, and then call GUI::Window::set_menubar().
This patch introduces GUI::Window::add_menu() which creates the menubar
automatically and adds items to it. Application code becomes slightly
simpler as a result. :^)
2021-07-21 21:24:26 +02:00
Andreas Kling
c7d891765c
LibGfx: Use "try_" prefix for static factory functions
...
Also mark them as [[nodiscard]].
2021-07-21 18:02:15 +02:00
FalseHonesty
4f0a75224c
PDFViewer: Update the page number when scrolling between pages
2021-06-22 06:26:44 +04:30
Matthew Olsson
69410d7f4e
PDFViewer: Switch back to up/down page icons
...
This time I remembered to actually commit the image files, oops :^)
2021-06-12 22:45:01 +04:30
Matthew Olsson
e7b70a1435
PDFViewer: Display error dialog if necessary instead of crashing
2021-06-12 22:45:01 +04:30
Matthew Olsson
1ef5071d1b
LibPDF: Harden the document/parser against errors
2021-06-12 22:45:01 +04:30
Linus Groh
d2149c153c
PDFViewer: Reset current page number to 1 when opening a file
...
Also use set_current_number() instead of set_text(), so we don't have to
create a string from the number ourselves.
2021-05-27 18:49:49 +01:00
Linus Groh
a8d47d648c
PDFViewer: Enable previous/next buttons conditionally
...
Instead of having both always enabled once a document is loaded, update
them on each page change and disable if appropriate.
2021-05-27 18:47:44 +01:00
Linus Groh
dbb0ee0704
PDFViewer: Fix previous/next page toolbar button icons
...
go-up.png and go-down.png don't exist (and would look silly here, with
the buttons being next to each other horizontally). Use go-back.png and
go-forward.png instead.
2021-05-27 18:43:23 +01:00
Linus Groh
6b0c2d5de6
PDFViewer: Add a Help menu
2021-05-27 18:10:34 +01:00
Linus Groh
cde5107f3d
PDFViewer: Add separator before quit menu action
2021-05-27 18:09:37 +01:00
Linus Groh
209bfbaaa4
PDFViewer: Show app name as "PDF Viewer" when a file is loaded
2021-05-27 18:08:49 +01:00
Matthew Olsson
cf3eb27108
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
2021-05-25 00:24:09 +04:30
Matthew Olsson
cea7dbce42
PDFViewer: Add a tab bar with outlines and thumbnails
...
Outlines are in theory implemented (though I'm having trouble finding
a simple PDF with outlines to test it on), and thumbnails are not.
2021-05-25 00:24:09 +04:30
Matthew Olsson
f7ea1eb610
Applications: Add a very simple PDFViewer
2021-05-18 16:35:23 +02:00