* New translations
Afrikaans from Crowdin [skip ci]
Arabic from Crowdin [skip ci]
Basque from Crowdin [skip ci]
Catalan from Crowdin [skip ci]
Chinese Simplified from Crowdin [skip ci]
Chinese Traditional from Crowdin [skip ci]
Chinese Traditional, Hong Kong from Crowdin [skip ci]
Croatian from Crowdin [skip ci]
Czech from Crowdin [skip ci]
Danish from Crowdin [skip ci]
Dutch from Crowdin [skip ci]
English from Crowdin [skip ci]
Finnish from Crowdin [skip ci]
French from Crowdin [skip ci]
German from Crowdin [skip ci]
Greek from Crowdin [skip ci]
Hebrew from Crowdin [skip ci]
Hindi from Crowdin [skip ci]
Hungarian from Crowdin [skip ci]
Italian from Crowdin [skip ci]
Japanese from Crowdin [skip ci]
Klingon from Crowdin [skip ci]
Korean from Crowdin [skip ci]
Norwegian from Crowdin [skip ci]
Polish from Crowdin [skip ci]
Portuguese from Crowdin [skip ci]
Portuguese, Brazilian from Crowdin [skip ci]
Romanian from Crowdin [skip ci]
Russian from Crowdin [skip ci]
Serbian (Cyrillic) from Crowdin [skip ci]
Spanish from Crowdin [skip ci]
Swedish from Crowdin [skip ci]
Turkish from Crowdin [skip ci]
Ukrainian from Crowdin [skip ci]
Vietnamese from Crowdin [skip ci]
* New translations Hebrew from Crowdin [skip ci]
* Delete XournalView PDF cache when document changes
This prevent previous PDF pages being rendered instead of new PDF ones.
* PdfCache: set clearCache() public
* XournalView: clear PDF cache when document changes
* SidebarPreviewBase: clear PDF cache when document changes
* Reduce complexity of Document::findPdfPage
Adds an index from pdf to document page number.
This reduces the complexity of Docmunent::findPdfPage from O(n) to
constant for the document size.
To keep actions snappy, interactie actions such as altering the document
simply invalidates the index.
This change dramatically improves the load times of larger pdf documents
such as books.
* Add bulk loading to xoj LoadHandler.
Accumulates the pages while parsing and adds them in a single bulk call
when finished.
* Fix formatting
* Allow "tapping" when using the Select Rectangle and Select Region tools (in a similar way to tapping when drawing)
* Changed the implemetation of "tapping" selection to allow use with a stylus (that generates many more events than a mouse)
Co-authored-by: Luca Citi <lciti@ieee.org>
**Root Cause:**
The functions `createHighlighterOrPenCursor` and `getEraserCursor` were
returning early if the cursor type had not changed. This prevented the
updated of the cursor size, based on the new setting.
* Add option to ignore the first events of the stylus when touching the screen to avoid artifacts at the beginnings of strokes. The number of ignored events can be set in the preferences.
Explanation: There are setups with this issue: When the stylus is pressed on the screen, the accuracy and update rate of its recognized position increases. Because of the lower precision before, when hitting the screen the cursor might jump from its previous position to the more precise point (this is especially far if the pen tip was in rapid movement right before touching), while beeing recognized as writing. This can result in artifacts that e.g. make handwritten text very hard to read. To work around this, the first events since the triggering event can be ignored.
* Add requested variable
* Fix handling of deviceClassPressed and implement requested change
This Commit changes the Pen/Highlighter Cursor to have the form of a
circle (via `cairo_arc`) and also uses the set size to give a correct
impression on how big the line one is about to draw is.