Commit graph

8272 commits

Author SHA1 Message Date
Laurent Montel fd44517bae Honor BUILD_TESTING 2018-07-09 07:37:58 +02:00
Christoph Feck 8061f4c098 GIT_SILENT Upgrade KDE Applications version to 18.04.3. 2018-07-07 11:24:23 +02:00
l10n daemon script 2e73a6d76f 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-07-07 06:58:15 +02:00
l10n daemon script 879a46ac55 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-07-07 05:17:35 +02:00
Friedrich W. H. Kossebau 2d8179fdcb Remove usage of dead QT_USE_FAST_CONCATENATION
Dropped pre-Qt5
2018-06-29 19:45:56 +02:00
Michael Eden 031b794ec8 Expose 'change colors' through dbus interface
Summary:
This exposes the Okular's functionality of changing the document's colors
through its d-bus interface. This is mainly useful for scripting Okular to
switch to a 'day mode' or 'night mode'.

[Example] Switching themes of two applications with one hotkey:

{F5905771}

Reviewers: #okular, aacid

Reviewed By: #okular, aacid

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D13471
2018-06-26 13:05:45 +02:00
Oliver Sander 862b2ab664 Allow to select more than one file in the 'open file' dialog
BUGS: 395175

Differential Revision: https://phabricator.kde.org/D13667
2018-06-25 17:11:51 +02:00
Laurent Montel 1bc4fb0dd9 Do not duplicate work of KAboutData::setupCommandLine() 2018-06-21 13:39:36 +02:00
l10n daemon script 853b711ff0 GIT_SILENT made messages (after extraction) 2018-06-13 03:45:27 +02:00
l10n daemon script 79cdfd3c21 GIT_SILENT made messages (after extraction) 2018-06-05 03:38:46 +02:00
Aleix Pol 8bf756c041 Name the manifest the same as the appdata 2018-06-04 19:23:51 +02:00
l10n daemon script b7c733f459 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-06-03 07:16:14 +02:00
l10n daemon script e090125cda GIT_SILENT made messages (after extraction) 2018-06-03 03:34:15 +02:00
Christoph Feck 0b1ef88124 GIT_SILENT Upgrade KDE Applications version to 18.04.2. 2018-06-02 00:51:43 +02:00
l10n daemon script bb3893b33f GIT_SILENT made messages (after extraction) 2018-06-01 03:36:34 +02:00
Albert Astals Cid 66b5f9c83c Merge remote-tracking branch 'origin/Applications/18.04' 2018-05-30 10:57:00 +02:00
Albert Astals Cid 95bc29a76f Force release of free memory
This should not be needed, but i can totally reproduce that without it
top is still reporting lots of memory used by Okular when it's really
not (heaptrack reports memory freed correctly)

BUGS: 394834
2018-05-30 10:55:17 +02:00
Andre Heinecke 5103e8db6f Add test for additional form actions
Summary: This tests the newly added additional widget actions.

Test Plan:
Passes for me. Is my first GUI test, maybe the timing
needs to be slower for slower machines?

Reviewers: aacid

Reviewed By: aacid

Subscribers: okular-devel

Tags: #okular

Maniphest Tasks: T8627

Differential Revision: https://phabricator.kde.org/D13170
2018-05-30 10:05:21 +02:00
Andre Heinecke 18d404c3ee Support additional widget actions in PDF Forms
Summary:
This adds support for actions associated with form fields
through corresponding annotation widgets.

Test Plan:
Still needs a unit test, only tested manually with
the document attached in the task.

Reviewers: #okular, aacid

Reviewed By: #okular, aacid

Subscribers: okular-devel, aacid

Tags: #okular

Maniphest Tasks: T8627

Differential Revision: https://phabricator.kde.org/D12665
2018-05-30 10:04:21 +02:00
Andre Heinecke 3ae2ae06e8 Fix recalculating forms twice
Summary:
As a side effect of f0a80a67 a recalculation was triggered
by the notifyFormChanges called in EditFormTextCommand::redo,
which is called for each edit. So calculation was done twice.

Test Plan: The calculate forms test still passes.

Reviewers: aacid

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12825
2018-05-28 16:03:54 +02:00
Burkhard Lück 7812952c85 add info about default/custom annotations
make it obvious that okular has more than the default annotations

Differential Revision: https://phabricator.kde.org/D13072
2018-05-24 06:57:33 +02:00
Oliver Sander 004efa70e4 Draw a dark rectangle around highlighted search results
Summary:
BUG: 355043

Makes it easier to distinguish search results from text with a 'highlight' annotation.

Reviewers: #okular

Subscribers: okular-devel, simgunz, cfeck, aacid, ngraham

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7662
2018-05-18 17:27:28 +02:00
Simone Gaiarin 48b9ca66a6 Raise annotation window when clicking on annotation
Summary:
Raise annotation window when clicking on the window title, window text edit, or the associated annotation.

BUG: 388532

Reviewers: #okular, aacid

Subscribers: okular-devel, ngraham, #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D10792
2018-05-18 15:17:58 +02:00
Aleix Pol add2c59808 Kirigami: Don't show two drawer items
One just on Android, the other for the rest
2018-05-18 14:41:11 +02:00
Aleix Pol 885e1f2269 Android: Make it possible to open documents from Android
Include ad-hoc code to open files on Android.
2018-05-18 01:44:18 +02:00
Aleix Pol 9ca00505a5 Kirigami: Remove unused slot 2018-05-17 19:58:47 +02:00
Aleix Pol 356229a74f Kirigami/Android: Try to get all android-specific code together
Create a separate android file for such code
2018-05-17 19:58:47 +02:00
Aleix Pol 600e72100b Remove the internal file navigation from the global drawer
Summary: Instead include an "open" item.

Test Plan: opened a file

Reviewers: #okular, mart, aacid

Reviewed By: mart

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12884
2018-05-17 16:56:22 +02:00
l10n daemon script 93645d1f9d GIT_SILENT made messages (after extraction) 2018-05-17 03:36:30 +02:00
Aleix Pol 5931c0de8d Don't pretend to translate "Okular" as an application name
Fixes build when signing the package.
2018-05-15 01:33:08 +02:00
Aleix Pol ad09cfdcf1 Kirigami: Properly reuse the page when scrolling back
Reviewed by Albert Astals
2018-05-13 17:57:22 +02:00
Aleix Pol ac53737242 Remove dup'ed comment 2018-05-13 17:56:05 +02:00
Aleix Pol 9cafd504c0 Kirigami: Asynchronous request of pixmaps
Don't block when reading the document to be able to render

Reviwed by Albert Astals
2018-05-13 17:55:34 +02:00
Aleix Pol c92397da88 Kirigami: Don't try to render if the item is empty 2018-05-13 16:11:55 +02:00
Aleix Pol 1a170e81df Kirigami: set request's normalized rect
We used to give a null rectangle and okular didn't render anything.

Reviewed by Albert Astals
2018-05-13 16:11:33 +02:00
Aleix Pol cf4bb5e3b1 Android: Make it possible to associate with files
Summary:
Put the file into a file descriptor and open this file descriptor.
Just application/pdf for now.

Test Plan: opened some documents on my phone

Reviewers: #okular, aacid, mart

Reviewed By: mart

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12770
2018-05-11 19:27:13 +02:00
Sune Vuorela aa800c01bc Merge branch 'Applications/18.04' 2018-05-08 21:46:20 +02:00
Sune Vuorela 3e48663fb7 Use a target in FindDiscount (modern cmake) rather than variables
Test Plan: Things still builds

Reviewers: kde-buildsystem, apol

Reviewed By: apol

Subscribers: apol, aacid, #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12672
2018-05-08 21:39:06 +02:00
Aleix Pol 90f187e360 QtQuick: schedule a texture render when the window changes
It needs to the devicePixelRatio to the window where it's in.
2018-05-08 17:58:56 +02:00
Aleix Pol a082ace479 QtQuick: simplify PageItem
Don't compare the limits to itself
2018-05-08 17:58:56 +02:00
Aleix Pol 970e0f2ba9 QtQuick: simplify drawing code
Removes a deprecated optimization
2018-05-08 17:58:56 +02:00
l10n daemon script ee57925c57 GIT_SILENT made messages (after extraction) 2018-05-06 06:09:02 +02:00
l10n daemon script 26c40ab7bd GIT_SILENT made messages (after extraction) 2018-05-06 03:31:04 +02:00
Christoph Feck 84b404b845 GIT_SILENT Upgrade KDE Applications version to 18.04.1. 2018-05-02 14:17:32 +02:00
Sune Vuorela 13bdb97084 Don't crash if fopen fails
Summary:
If we have a qrc url, all checks so far fails, and this one returns null.

It might also be possible to get here in some race condition.

Reviewers: aacid

Reviewed By: aacid

Subscribers: #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12643
2018-05-01 22:24:24 +02:00
Albert Astals Cid 3a060a1680 Delete old actions when setting new
Noone should be calling this twice, but there's no need to leak memory if they do
2018-04-30 14:03:22 +02:00
Andre Heinecke 1de0f5465b Add support for chained / next actions
Summary:
This adds support for multiple actions following each
other through the "Next" value of Action dictionaries.

Test Plan: Activates the corresponding part of the visibilitytest.

Reviewers: #okular

Subscribers: sander, aacid

Tags: #okular

Maniphest Tasks: T8278

Differential Revision: https://phabricator.kde.org/D11609
2018-04-30 14:02:49 +02:00
l10n daemon script cc052577a4 GIT_SILENT made messages (after extraction) 2018-04-30 03:40:55 +02:00
l10n daemon script e26b5826cc GIT_SILENT made messages (after extraction) 2018-04-29 03:30:26 +02:00
l10n daemon script aba5b8e6dc GIT_SILENT made messages (after extraction) 2018-04-27 03:38:49 +02:00