FalseHonesty
4f0a75224c
PDFViewer: Update the page number when scrolling between pages
2021-06-22 06:26:44 +04:30
Gunnar Beutner
631d36fd98
Everywhere: Add component declarations
...
This adds component declarations so that users can select to not build
certain parts of the OS.
2021-06-17 11:03:51 +02:00
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
Andreas Kling
076018b74b
PDFViewer: Ignore wheel events when there is no document loaded
2021-05-18 21:25:35 +02:00
Andreas Kling
df29d58e19
PDFViewer+Base: Display application title as "PDF Viewer"
...
This matches other applications in the system. :^)
2021-05-18 21:00:32 +02:00
Matthew Olsson
fe2d4d85c4
PDFViewer: Add some padding to the outside of the page
2021-05-18 16:35:23 +02:00
Matthew Olsson
c3c2121b57
PDFViewer: Allow zooming in and out + scrolling
...
When holding ctrl and scrolling, the page will be zoomed in an out.
When zoomed in on a page, scrolling with move vertically up and down
the page (or horizontally if shift is being held).
In order to speed up zooming, zoomed bitmaps are cached per-page at
each distinct zoom level. This cache is cleared every 30 seconds to
prevent OOM problems.
2021-05-18 16:35:23 +02:00
Matthew Olsson
d5f94aaa7b
LibPDF/PDFViewer: Support rotated pages
2021-05-18 16:35:23 +02:00
Matthew Olsson
f7ea1eb610
Applications: Add a very simple PDFViewer
2021-05-18 16:35:23 +02:00