Commit graph

9124 commits

Author SHA1 Message Date
Albert Astals Cid
8a1bef81f8 Remove poppler 0.80 ifdefs since we require 0.86 now 2020-09-13 01:21:11 +02:00
Albert Astals Cid
6b08af754f Remove poppler 0.79 ifdefs since we require 0.86 now 2020-09-13 01:20:14 +02:00
Albert Astals Cid
4d12c257b2 Remove poppler 0.74 ifdefs since we require 0.86 now 2020-09-13 01:18:34 +02:00
Albert Astals Cid
9264723002 Remove poppler 0.73 ifdefs since we require 0.86 now
This actually fixes a mistake in SignatureFormTest::testSignatureForm
2020-09-13 01:16:27 +02:00
Albert Astals Cid
e283da994b Remove poppler 0.69 ifdefs since we require 0.86 now 2020-09-13 01:12:53 +02:00
Albert Astals Cid
eacb5eed8b Remove poppler 0.68 ifdefs since we require 0.86 now 2020-09-13 01:12:05 +02:00
Albert Astals Cid
7dce3389cb Remove poppler 0.65 ifdefs since we require 0.86 now 2020-09-13 01:11:08 +02:00
Albert Astals Cid
c019a7e76c Remove poppler 0.64 ifdefs since we require 0.86 now 2020-09-13 01:10:10 +02:00
Albert Astals Cid
bcd36d6374 Remove poppler 0.63 ifdefs since we require 0.86 now 2020-09-13 01:07:38 +02:00
Albert Astals Cid
c17127b018 cmake: suggest-override is provided by ECM since 5.55 2020-09-13 01:04:16 +02:00
Albert Astals Cid
e989200dcf Increase minimum supported versions to those provided by Ubuntu 20.04 2020-09-13 01:03:53 +02:00
Albert Astals Cid
d5210db504 Change the version to be date based
As discussed on the Akademy meeting, it's just simpler to do this than
keep pretending 1.10 vs 1.9 have some kind of meaning :)
2020-09-11 16:27:26 +00:00
Thomas Friedrichsmeier
3fda3ba561 Fix build using MinGW 2020-09-11 16:24:44 +02:00
Nate Graham
114060ff53 Merge branch 'release/20.08' into master 2020-09-11 07:59:46 -06:00
Nate Graham
c54c38f761 Re-add smooth scrolling for arrow key and mouse wheel scrolling
This is safe now that the animated transitions no longer block repeated
scroll actions during the animation.

This partially reverts 08d368c13b

BUG: 422041
BUG: 425850
FIXED-IN: 1.11.2
2020-09-11 07:59:19 -06:00
Oliver Sander
112b6a10cd Merge remote-tracking branch 'upstream/release/20.08' into master 2020-09-11 11:38:58 +02:00
Oliver Sander
e62870b528 Replace call to deprecated method QStringList::toSet
As suggested in the deprecation warning, the call is replaced by
QSet(begin,end).
2020-09-11 10:48:47 +02:00
Kishore Gopalakrishnan
e637e2ed51 Remove if statement that disables pgup/dn key handling while scrolling.
IDK why it's there, but this seems to fix bug 422050
2020-09-11 10:44:54 +05:30
Christoph Cullmann
25984bb2bb add missing export to class
BUG: 426358
2020-09-10 20:51:52 +02:00
Michael Weghorn
b696d6dbfb Support '#page=<pagenum>' fragment to open at page <pagenum>
Support the '#page=<pagenum>' fragment to specify which page
to open the document at, in addition to the existing '#<pagenum>'
syntax.

For PDF, the '#page=<pagenum>' fragment is specified in RFC 8118,
section 3.

BUG: 406831
2020-09-10 13:30:00 +00:00
Albert Astals Cid
0fed884424 Add missing QStringLiteral 2020-09-10 13:17:58 +02:00
Albert Astals Cid
2697105462 Revert cbddcd3273
KJS and KWallet are indeed optional, that's what the ${optionalComponents} variable does
2020-09-09 14:13:09 +02:00
Simone Gaiarin
4e0c1690d2 Uniform the case of the 'Id' suffix in variable names 2020-09-07 12:47:05 +00:00
Pedro Arthur Pinheiro Rosa Duarte
5d947905f7 Remove artifact while navigating though pages
When the view is paged (ie, non continuous), and an annotation is
selected while the user navigate through pages, the annotation
selection will become an artifact in other pages. Besides that,
the annotation will still receive keystrokes (such as delete).

Steps to Reproduce:
 - Open a PDF file with Okular
 - Draw an ellipsis annotation in the document
 - Select the ellipsis
 - Change to the previous or next page
2020-09-07 05:56:28 +00:00
Albert Astals Cid
4da86fb8de Merge remote-tracking branch 'origin/release/20.08' into master 2020-09-06 12:11:49 +02:00
Simone Gaiarin
cd96735ae2 Maintain quick annotation shortcut compatibility with Okular < 1.11.0
During the upgrade to Okular 1.11.0 the shortcuts for the quick annotations have been changed from the keys 1, 2, 3,... to Alt + 1, 2, 3,... making some users unhappy.

CCBUG: 426009
2020-09-06 10:08:19 +00:00
Albert Astals Cid
f25387681b Don't always show the signature message ^_^
Fix regression in a05df764bc
2020-09-06 10:50:29 +02:00
Albert Astals Cid
cbddcd3273 kwallet and kjs are mandatory in cmake anyway, remove ifdefs 2020-09-05 23:50:45 +00:00
Albert Astals Cid
a05df764bc Move IsDigitallySigned code to part.cpp
It isn't really pdf generator specific
2020-09-05 19:33:47 +00:00
David Hurka
076e17c608 Create GuiUtils functions createColorIcon() and createOpacityIcon()
* createColorIcon creates a QIcon which visualizes the given colors
  using rectangles. A background icon can be provided, in that case
  only the lowest 25% of the icon will be filled by the rectangles.
* createOpacityIcon creates a QIcon that visualizes a given opacity
  using the current foreground color and a checkerboard background.

These functions are now used in place of colorIcon, colorPicerIcon,
opacityIcon in AnnotationActionHandler. The new functions have some
advantages: support most common icon sizes, and dark color schemes.
2020-09-03 11:02:13 +00:00
Nicolas Fella
3cc016b6ab Drop empty X-KDE-PluginInfo-Depends
The whole concept is almost unused and there's no point in having it there but empty

See also https://phabricator.kde.org/T13553
2020-09-01 14:13:36 +02:00
Christoph Feck
b3101774cf GIT_SILENT Update Appstream for new release
(cherry picked from commit 4b9e50a1ed)
2020-08-31 21:02:07 +02:00
Christoph Feck
4b9e50a1ed GIT_SILENT Update Appstream for new release 2020-08-31 21:02:06 +02:00
Christoph Feck
ad5e40826c GIT_SILENT Upgrade release service version to 20.08.1. 2020-08-31 20:35:27 +02:00
Albert Astals Cid
18837e69e5 Merge remote-tracking branch 'origin/release/20.08' into master 2020-08-31 19:20:37 +02:00
Laurent Montel
69776168e2 Using no deprecated enum Qt::MiddleButton
(cherry picked from commit c022b05457)
2020-08-31 17:18:36 +02:00
Laurent Montel
c022b05457 Using no deprecated enum Qt::MiddleButton 2020-08-31 17:18:09 +02:00
Simone Gaiarin
bc2d22910a Improve robustness of code against corrupted configurations
Perform extra checks on the existence of QDomElement attributes and on the correctness of their conversion from QString to int.

This also prevents a crash if it is not possible to find the built in tool associated to the triggered quick tool.
2020-08-30 23:33:20 +02:00
Albert Astals Cid
27ad1bbb31 Merge remote-tracking branch 'origin/release/20.08' into master 2020-08-30 19:29:18 +02:00
Albert Astals Cid
04d92f5847 File dialog: Use mimetypes instead of file extensions
Only if you're on a new enough KIO, we need
a1acb7744455b57dc972b3073f6e1dce0d49d965
and
7bf4d793a5ac54280c45660dbd04de4fa99dc994
present since 5.73 to make the UI usable

BUGS: 422574
2020-08-28 21:56:07 +00:00
Simone Gaiarin
10d92fbeda Store the state of the builtin annotations in a new config key
Using the new configuration key BuiltinAnnotationTools instead of AnnotationTools, we avoid any conflicts in the configuration files due to the fact that the key AnnotationTools had a different meaning in the previous versions of Okular. In particular we avoid the critical problem that the actions in the UI do not match the actual annotation tools. The conflict may happen if the kconf_update script is not executed for some reason (e.g. okular running from flatpack).

BUG: 425354
FIXED-IN: 1.11.1
2020-08-25 10:16:10 +02:00
Albert Astals Cid
8966b715b6 poppler: Convert Line annotations via C++
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
2020-08-22 23:38:53 +00:00
Albert Astals Cid
884704f6cb poppler: Convert Text annotations via C++
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
2020-08-22 23:38:53 +00:00
Markus Brenneis
89cf21b222 Add support for image sizes in markdowns
The discount markdown parser supports parsing explicit image sizes in markdown, but we ignore them and replace them with the actual image dimensions. With this patch, any specified image sizes are respected.
2020-08-22 23:32:27 +00:00
Albert Astals Cid
511fc7acca Document the valid int values for TextAnnotation::setInplaceAlignment 2020-08-21 15:35:32 +02:00
David Hurka
89280e82d7 Port PresentationWidget to QScreen and simplify related code
* QDesktopWidget -> QScreen

Simplifications:
* After setting new screen/geometry, forget them and let resizeEvent() handle any updates.
* Specifically, don’t connect to screen size change signals.
* Specifically, setScreen() only sets the new widget position and then waits for resizeEvent().
* This also means applyNewScreenSize() and repositionContent() can be collapsed into resizeEvent().
* Replace recalcGeometry() by setScreen(defaultScreen()), where defaultScreen() only checks the configuration.
2020-08-09 22:01:10 +00:00
Albert Astals Cid
60efe8f019 Merge remote-tracking branch 'origin/release/20.08' into master 2020-08-08 17:13:32 +02:00
Albert Astals Cid
9b9ce9e3a6 Merge branch 'release/20.08' into master 2020-08-08 12:49:48 +02:00
Albert Astals Cid
caa351c723 Bookmarks: Resolve symlinks before using an url
If a symlink points to another file, we should use that file as
canonical source for bookmarks, it doesn't make sense to have two
different sets of bookmarks for two paths that are essentially the same
file

BUGS: 424340
2020-08-07 22:34:30 +00:00
Albert Astals Cid
1c7c7275e1 buildPen: honor annotation opacity
Otherwise changing the opacity of lines/arrows does nothing
2020-08-07 22:33:38 +00:00