Commit graph

8272 commits

Author SHA1 Message Date
l10n daemon script 139e6d8fae GIT_SILENT made messages (after extraction) 2018-11-13 04:02:38 +01:00
Albert Astals Cid 88778d5436 GIT_SILENT Upgrade KDE Applications version to 19.03.70. 2018-11-10 08:40:14 +01:00
Albert Astals Cid 4a06e29d71 GIT_SILENT Upgrade KDE Applications version to 18.03.70. 2018-11-09 23:38:17 +01:00
Albert Astals Cid 8394e9722f New version for master
GIT_SILENT
2018-11-09 23:25:19 +01:00
Albert Astals Cid b642710130 GIT_SILENT Upgrade KDE Applications version to 18.11.80. 2018-11-09 23:20:37 +01:00
Albert Astals Cid 16c25fbb33 Draw non-external text annotations with word wrap
Summary:
Instead of with wrap anywhere

BUGS: 398604

Reviewers: cfeck

Reviewed By: cfeck

Subscribers: sander, tobiasdeiminger, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D16147
2018-11-09 00:25:23 +01:00
l10n daemon script 167b7955cf GIT_SILENT made messages (after extraction) 2018-11-08 03:55:00 +01:00
Albert Astals Cid a37b299b04 add a source to differentiate 2018-11-07 23:55:40 +01:00
Fabio Bolz 4e353aabee Add unarchiver support for cbr files
Summary:
FEATURE: 339370
When no unrar installed, Okular now utilizes the program unar for extracting the archive and lsar for listing the content in the archive.
lsar is related and comes with a unar installation.

Subscribers: aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D15691
2018-11-07 23:30:22 +01:00
Albert Astals Cid 69bb4db9ea Add donation url 2018-11-07 15:03:02 +01:00
Laurent Montel 6f9913802c Remove qt prefix 2018-11-06 13:27:12 +01:00
l10n daemon script b3dd26a644 GIT_SILENT made messages (after extraction) 2018-11-04 03:54:05 +01:00
Albert Astals Cid ec692e459b Remove unused variables 2018-11-02 18:03:26 +01:00
l10n daemon script fe5d79bb9f GIT_SILENT made messages (after extraction) 2018-11-02 03:53:58 +01:00
Michel Ludwig 2ea44c5291 Fix KDirWatch problem description in Part::setWatchFileModeEnabled
The problem is actually not the global watch list in KDirWatch, but
KDirWatch::stopScan causes unintended side effects via KDirWatchPrivate::_isStopped.

This bug is tracked in bug report 400541.

CCBUG: 400190
2018-11-01 07:48:32 +01:00
l10n daemon script 83103d6155 GIT_SILENT made messages (after extraction) 2018-11-01 03:50:16 +01:00
l10n daemon script 872a6e77a8 GIT_SILENT made messages (after extraction) 2018-10-31 03:57:01 +01:00
l10n daemon script bc10eb432d GIT_SILENT made messages (after extraction) 2018-10-30 03:46:33 +01:00
Tobias Deiminger d1ea28fc73 Avoid crash during session restore
Summary:
Do all access to the passed KConfigGroup really synchronous to KMainWindow::readProperties, then we're safe.

Currently kxmlgui can't guarantee that the passed KConfigGroup is still valid after our call to Shell::openUrl(). This is because inside Shell::openUrl, QDialog::exec may get called. The stacked event loop processes all kinds of asynchronous events, and litterally *anything* can happen. E.g. incoming ICE and DBus messages may be processed. In bug 395765 it happened that XSMP SafeYourself was processed, which calls KConfigGui::setSessionConfig, which leaves the KConfig pointer inside KConfigGroup dangling.

BUGS: 395765

Test Plan:
- get recent Qt5 and KF5
- manually save desktop session while a document is open in okular
- modify ~/.config/session/okular_<sessionid> so that Urls points to non existing file
- manually restore session with okular -session <session_id>, dialog will open and warn about non existent file
- okular shall not crash after closing that dialog

Reviewers: aacid

Reviewed By: aacid

Subscribers: aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D16457
2018-10-29 21:44:56 +01:00
Michel Ludwig dcacd830f4 Don't call 'KDirWatch::stopScan()'
KDirWatch maintains one global watch list per application only. Calling
'stopScan' could therefore affect other code paths that make use of
KDirWatch (other loaded KParts, for example).

BUG: 400190
2018-10-28 17:35:10 +01:00
Yuri Chornoivan 0b3a0e1e2d Add 'Zoom to 100%' option to the docs 2018-10-28 14:24:01 +02:00
Yuri Chornoivan 5c4c33e725 Fix minor Appstreamercli issues 2018-10-28 12:50:28 +02:00
Yuri Chornoivan d3388cd6a1 Port away from deprecated setClearButtonShown 2018-10-28 12:49:50 +02:00
Nate Graham 33ca396def Create new "Zoom to 100%" action
Summary:
This patch implements a "Zoom to 100%" action and sticks it in the {nav View} menu. Since it's a `KStandardAction` with a `KStandardShortcut`, we automatically get the correct icon and keyboard shortcut, but we do override the name to be "Zoom to 100%" since that's clearer for Okular's use case.

FEATURE: 400048
FIXED-IN: 18.12.0

Test Plan:
- Action works to zoom the document to 100% scale when invoked
- Action is disabled when document is opened at 100% scale or is manually zoomed to 100% scale after being opened
- All other zoom modes and action still work

{F6341045}

Reviewers: #okular, #vdg, abetts

Reviewed By: #vdg, abetts

Subscribers: davidhurka, sander, tobiasdeiminger, veqz, abetts, aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D16345
2018-10-27 08:49:50 -06:00
Yuri Chornoivan e7cd4bf9c7 Fix doxygen markup 2018-10-27 10:43:35 +03:00
Albert Astals Cid 93b9615597 Remove #ifdef for Qt 5.8 since it is required for some time 2018-10-26 23:45:00 +02:00
l10n daemon script 33a5f67eb2 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-10-24 05:59:57 +02:00
Albert Astals Cid e88607afec Merge remote-tracking branch 'origin/Applications/18.08' 2018-10-24 00:32:18 +02:00
Albert Astals Cid 00c7aa0ec9 Fix saving to files that don't exist
Previous commit broke it. I'll add unit tests in a minute
2018-10-24 00:32:09 +02:00
Albert Astals Cid 05462e2670 Add three autotests for part saving
* saving as on a non existing file works
* saving as on a symlink doesn't destroy the symlink
* saving on the symlink used to open the file doesn't destroy the
symlink
2018-10-24 00:31:48 +02:00
Albert Astals Cid 8f1b0bda22 Fix saving to files that don't exist
Previous commit broke it. I'll add unit tests in a minute
2018-10-24 00:06:09 +02:00
Albert Astals Cid 97a25b51d3 Merge remote-tracking branch 'origin/Applications/18.08' 2018-10-22 21:41:34 +02:00
Albert Astals Cid 99fe8fa6cf Resolve symlinks before saving so we don't "break" them
Summary: BUGS: 399870

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: shubham, ngraham, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D16364
2018-10-22 21:41:02 +02:00
Albert Astals Cid 9b96848720 Merge remote-tracking branch 'origin/Applications/18.08' 2018-10-21 22:27:16 +02:00
Albert Astals Cid 27197b5f76 Fix crash if processing a link closes the document
BUGS: 400104
2018-10-21 22:25:47 +02:00
Yuri Chornoivan 69c7b834d1 Fix minor API docs EBN issues 2018-10-19 09:00:06 +03:00
Yuri Chornoivan 2f014ccd20 Fix minor EBN issues 2018-10-18 22:04:49 +03:00
Burkhard Lück 6c2acb9afd Replace Jovie with Qt Speech
okular uses the qt speech library in kf5

Differential Revision: https://phabricator.kde.org/D16068
2018-10-10 20:29:46 +02:00
l10n daemon script 4e9bbfddb0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-10-10 06:37:12 +02:00
l10n daemon script 96f4f27ba6 GIT_SILENT made messages (after extraction) 2018-10-10 04:08:48 +02:00
Albert Astals Cid a482c56ba2 Select current format on the configure backend dialog
Subscribers: sander, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D14820
2018-10-08 22:54:03 +02:00
Dileep Sankhla e44ff38706 Support setting text color for typewriter annotations
Summary:
Changing typewriter text color can be done in the typewriter properties dialog, or programmatically via new okular API methods TextAnnotation::textColor and TextAnnotation::setTextColor.

poppler >= 0.69 is required to store text color natively inside PDF documents. For other document types, text color is stored as metadata inside the document archive.

This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.

Test Plan:
- properties dialog of typewriter annotation has "Font Color" picker
- saving to PDF results in <r> <g> <b> rg operation in /DA
- saving to archive results in fontColor="rrggbb" attribute in metadata.xml

Reviewers: sander

Reviewed By: sander

Subscribers: kde-doc-english, sander, okular-devel

Tags: #okular, #documentation

Differential Revision: https://phabricator.kde.org/D15205
2018-10-04 20:02:55 +02:00
Christoph Feck 22e7cb86a5 GIT_SILENT Upgrade KDE Applications version to 18.08.2. 2018-10-03 19:02:45 +02:00
Albert Astals Cid 3cdb348d1e Merge remote-tracking branch 'origin/Applications/18.08' 2018-10-02 21:30:37 +02:00
Albert Astals Cid ee5b830ced Fine tune opening of archives after last change
Since openDocument will do MatchContent if the mime passed fails, we
need to do matchExtension here
2018-10-02 21:29:48 +02:00
Albert Astals Cid 3a1a037dd3 Merge remote-tracking branch 'origin/Applications/18.08' 2018-10-02 01:35:14 +02:00
Albert Astals Cid caf52d0ed9 Fine tune opening files
If we're going to set triedMimeFromFileContent to true we need to
actually try the contents and not the extension.

This is a KF5 porting mistake
2018-10-02 00:33:58 +02:00
l10n daemon script ccb19c681d GIT_SILENT made messages (after extraction) 2018-09-28 06:39:36 +02:00
l10n daemon script b632b36cb2 GIT_SILENT made messages (after extraction) 2018-09-28 03:48:01 +02:00
Yuri Chornoivan aba8dbb680 Add typewriter tool to the docs 2018-09-26 09:53:13 +03:00