Commit graph

7851 commits

Author SHA1 Message Date
Kevin Ottens a5da013a4d Add a "share" menu to Okular
Summary: This is implemented using the Purpose framework.

BUG: 173896

Reviewers: aacid

Subscribers: #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D8244
2017-10-18 16:55:21 +02:00
Albert Astals Cid a78d2da440 QTest::addRow -> QTest::newRow
addRow is only in since Qt 5.9 and we don't need it
2017-10-15 23:42:45 +02:00
l10n daemon script e7702e0a8c 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"
2017-10-15 06:24:28 +02:00
l10n daemon script 0ac3f27a9e 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"
2017-10-15 04:59:46 +02:00
Lukas Hetzenecker ecc1141e02 HiDPI Support for Okular
Summary:
This patch enables HiDPI throughout the application

Every pixmap is multiplied by the devicePixelRatioF
QPainter code is ajusted to take the DPR value into account

All pixmaps get cached with the highest DPR of all screens. When moving the application to another screen, the cache doesn't have to be invalidated.

BUGS: 362856 383589
REVIEW: D6268
2017-10-14 14:47:20 +02:00
Renato Araujo Oliveira Filho 6d7403ff13 Interact with hyperlinks in TextSelect mode
Allow user to click on url while on any selection mode

Based on https://git.reviewboard.kde.org/r/124961/ by Jake Linder <JakeLinder@mail.com>

Includes several autotests to try to minimize possible regressions as much as possible

BUGS: 318078
REVIEW: 130246
2017-10-11 15:03:36 +02:00
l10n daemon script 76a4ad6323 GIT_SILENT made messages (after extraction) 2017-10-11 09:30:36 +02:00
l10n daemon script 72abe6f85a GIT_SILENT made messages (after extraction) 2017-10-11 06:41:11 +02:00
Christoph Feck 15e0e24d63 GIT_SILENT Upgrade KDE Applications version to 17.08.2. 2017-10-08 04:45:01 +02:00
l10n daemon script d288b417da 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"
2017-10-07 05:12:38 +02:00
Yuri Chornoivan 5a8ce4ab15 Add new 'Use custom background color' to docs 2017-10-02 19:13:39 +03:00
Albert Freeman 1f6e8a4782 Custom background color
Summary:
BUG: 182994

Adds an option to the config dialog that enables background color (the color around the displayed page) to be changed (while by default preserving the Qt toolkit selection as not to affect existing users).

Reasons for this change:
Accessibility, eye strain, aesthetic reasons, color displayed on monitor can affect power consumption (how: depends on display technology).
Many people want this change occording to Bugzilla and other sources.

Maintenance: Nearly no additional maintenance:
This is no new subsystem but a trivial feature with no complex code dependencies, and we are already showing a colour selection dialog and setting colours in other places in Okular.

{F4257766}

Other less important information:
https://git.reviewboard.kde.org/r/130219/
https://mail.kde.org/pipermail/okular-devel/2017-September/025520.html

Test Plan:
Tested everything, it all works:
Toggled the custom background color, changed custom background color, removed okular settings file (with: "rm ~/.config/okular*") to verify it uses the usual qt theme colour by default (where the settings file remembered the custom color).

Reviewers: #okular, aacid, elvisangelaccio, rkflx, ngraham

Reviewed By: ngraham

Subscribers: aacid, ltoscano, ngraham

Tags: #okular

Differential Revision: https://phabricator.kde.org/D8051
2017-10-01 11:31:59 +02:00
Luigi Toscano d176914e63 Revert "Custom background color"
Wrong authorship for the commit. Commit it again with the correct
information.

CCMAIL: pointedstick@zoho.com
This reverts commit 6b5a7c9a1a.
2017-10-01 11:27:53 +02:00
Nathaniel Graham 6b5a7c9a1a Custom background color
Summary:
BUG: 182994

Adds an option to the config dialog that enables background color (the color around the displayed page) to be changed (while by default preserving the Qt toolkit selection as not to affect existing users).

Reasons for this change:
Accessibility, eye strain, aesthetic reasons, color displayed on monitor can affect power consumption (how: depends on display technology).
Many people want this change occording to Bugzilla and other sources.

Maintenance: Nearly no additional maintenance:
This is no new subsystem but a trivial feature with no complex code dependencies, and we are already showing a colour selection dialog and setting colours in other places in Okular.

{F4257766}

Other less important information:
https://git.reviewboard.kde.org/r/130219/
https://mail.kde.org/pipermail/okular-devel/2017-September/025520.html

Test Plan:
Tested everything, it all works:
Toggled the custom background color, changed custom background color, removed okular settings file (with: "rm ~/.config/okular*") to verify it uses the usual qt theme colour by default (where the settings file remembered the custom color).

Reviewers: #okular, aacid, elvisangelaccio, rkflx, ngraham

Reviewed By: ngraham

Subscribers: aacid, ltoscano, ngraham

Tags: #okular

Differential Revision: https://phabricator.kde.org/D8051
2017-09-30 19:45:24 -06:00
l10n daemon script 24b481658e GIT_SILENT made messages (after extraction) 2017-10-01 03:34:14 +02:00
Albert Astals Cid 878ef9623b Merge remote-tracking branch 'origin/Applications/17.08' 2017-09-30 00:41:51 +02:00
Albert Astals Cid e31bea047c Show tooltip for annotations without handle too
Summary: BUG: 384147

Reviewers: rkflx

Reviewed By: rkflx

Subscribers: ngraham, rkflx, tobiasdeiminger, #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7874
2017-09-30 00:41:19 +02:00
Albert Astals Cid a93661e892 Merge remote-tracking branch 'origin/master' into dont-use-docdata-for-annots-and-forms 2017-09-27 15:01:57 +02:00
l10n daemon script b3e941e736 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"
2017-09-27 09:08:25 +02:00
Elvis Angelaccio ca12fe50d5 Merge branch 'Applications/17.08' 2017-09-26 23:55:00 +02:00
Albert Astals Cid ef7c9c67bf Implement continuous search
Show non-intrusive info messages whenever the search start over from the
beginning or the bottom of the document, instead of asking the user if
s/he wants to continue the search. This is consistent with search in
KWrite/Kate and with web browsers.

Based on work of and reviewed by Elvis Angelaccio
2017-09-26 23:27:25 +02:00
Elvis Angelaccio 1364d0e97b Properly create KPixmapSequence
Summary:
The KPixmapSequence constructor needs the full path of the icon, so the
current code doesn't work and generates a "Invalid pixmap specified"
warning at runtime. By using KIconLoader we can fix this issue.

Test Plan: Search something and reach the end of document to make the animation start.

Subscribers: #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7996
2017-09-26 19:12:39 +02:00
l10n daemon script f6424adcaa 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"
2017-09-26 04:57:27 +02:00
l10n daemon script f4504f4764 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"
2017-09-25 04:51:51 +02:00
l10n daemon script e47a5432f5 GIT_SILENT made messages (after extraction) 2017-09-25 03:23:02 +02:00
Nathaniel Graham 15917a4260 Merge remote-tracking branch 'origin/Applications/17.08' 2017-09-22 09:39:45 -06:00
Nathaniel Graham e80972e189 Fix sidebar labels being unreadable when selected or hovered over
Summary:
BUG: 382139

Previously these labels were white-on-light-blue with light themes; now they use the correct theme color property, and become black appropriately.

Test Plan:
Tested on KDE Neon (dev unstable). Verified that with the default Breeze color scheme, tab text is more readable when hovered over and then active but not in focus. See before and after:

{F3909142}

{F3909143}

Also tested these changes with all standard color schemes as well as the Oxygen theme to make sure that there were no visual regressions.

Reviewers: aacid, #okular, #kde_applications, broulik, sander, rkflx

Reviewed By: aacid, #okular, #kde_applications, rkflx

Subscribers: rkflx

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7793
2017-09-22 09:38:48 -06:00
l10n daemon script 715a948a12 GIT_SILENT made messages (after extraction) 2017-09-22 03:29:12 +02:00
Luigi Toscano e93cb78992 Fix string: no exclamation mark, add article
Exclamation marks should not be used according the guidelines.
2017-09-21 21:15:37 +02:00
Milian Wolff ec795473fa Make compile with strict iterators 2017-09-20 16:34:41 +02:00
Milian Wolff 9d0cc7528f Make compile with strict iterators 2017-09-20 16:32:04 +02:00
l10n daemon script cc4be7ada3 GIT_SILENT made messages (after extraction) 2017-09-19 05:43:34 +02:00
Albert Astals Cid ce5999d513 have -> are 2017-09-18 22:20:42 +02:00
l10n daemon script fe5ec62414 GIT_SILENT made messages (after extraction) 2017-09-18 05:38:34 +02:00
Albert Astals Cid 95a32d7730 Show dialog to ask when closing when more than tab open
Summary:
The checkbox is checked and says "Warn me on closing more than one tab",
for that reason we can't use the default KMessageBox::questionYesNo since
there the checkbox is always not checked and it's when checked that you enable it

Inspired by code from torham zed torhamzed@yahoo.com at review request 126406

Reviewers: #okular, #kde_applications

Subscribers: alexeymin, ngraham, colomar, rkflx, #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7714
2017-09-17 23:50:27 +02:00
Alexey Demennikov a57ffdbd95 added the "remove this bookmark" to bookmarks section
Summary:
**FEATURE**: 357626
Remove bookmark from popup menu added

Reviewers: #okular, aacid

Reviewed By: #okular, aacid

Subscribers: aacid

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7848
2017-09-16 22:15:54 +02:00
l10n daemon script 62ce3db93b 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"
2017-09-16 05:03:07 +02:00
l10n daemon script f81b6603cd GIT_SILENT made messages (after extraction) 2017-09-16 03:28:21 +02:00
Henrik Fehlauer fcc08449b1 Fix building synctex 1.19 on Windows
Summary:
The massive changes to the synctex code in D7594 pulled in a new library
(on windows only), reflect that in the linker flags.

Test Plan:
`craft okular` on Okular's master branch builds successfully with MSVC
2017 and Qt 5.9, build on Linux still fine.

Reviewers: #okular, aacid

Reviewed By: #okular, aacid

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7809
2017-09-13 23:47:35 +02:00
l10n daemon script 127ce16b78 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"
2017-09-13 08:48:01 +02:00
l10n daemon script 1444a2d684 GIT_SILENT made messages (after extraction) 2017-09-13 06:57:51 +02:00
Gilbert Assaf 99be29e50b Merge branch 'master' of git://anongit.kde.org/okular 2017-09-12 23:07:16 +02:00
Henrik Fehlauer bd20e48c3c Update to synctex 1.19
Summary:
This should prevent crashes when reloading some synctex-enabled pdf
files created with newer versions of TeXLive. We also gain bugfixes,
features and improved accuracy from the last 6 years of synctex
development.

Procedure followed:
- svn co svn://tug.org/texlive/trunk/Build/source/texk/web2c/synctexdir
- Check out revision 45150
- Update files present in core/synctex/*
- Adapt Okular code to changes
- Review and drop or update/apply old patches using quilt
- Create missing patches for local synctex changes
- New patch: Omit warning message when opening non-synctex pdf
- Two new patches to fix more compiler warnings
- New patch: Plug multiple leaks and prevent a segfault

TODO for later:
- Move sync file detection code to Okular to never call into synctex C code for non-synctex files
- Evaluate feasibility of upstreaming all patches for TeXLive 2018 and using synctex as a library

BUG: 383915
FIXED-IN: 17.12.0

Test Plan:
- No crash in synctex on reloading empty.pdf from bugreport anymore.
- Shift-clicking on a word in a simple pdf opens Kate with the corresponding tex line.
- Forward and backward search in Kile seems to work.
- Works with synctex files from both TeXLive 2015 and 2017.
- PartTest::testForwardPDF still passes.
- No additional memory leaks in autotests and with basic synctex and non-synctex usage of Okular.

Reviewers: #okular, sander, #kile, aacid

Reviewed By: #okular, aacid

Subscribers: mludwig, aacid

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7594
2017-09-12 21:56:49 +02:00
l10n daemon script 9d4067059f 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"
2017-09-12 04:52:10 +02:00
l10n daemon script 193ecf7649 GIT_SILENT made messages (after extraction) 2017-09-12 03:23:37 +02:00
Gilbert Assaf 6b27aa53fa CHM Generator Lib Update
This patch updates our copy of the chm lib from kchmviewer. The lib files itself are an unmodified copy from kchmviewer 7.7, only our generator needed some changes. In contrast to kchmviewer we still use khtml and therefor still need msits.

REVIEW: 130226
2017-09-11 21:25:55 +02:00
Albert Astals Cid 729a622a49 This test file was lost at some point
Or was never added
2017-09-11 19:52:04 +02:00
Albert Astals Cid 04ed10d3ea Merge remote-tracking branch 'origin/master' into dont-use-docdata-for-annots-and-forms 2017-09-11 19:51:51 +02:00
Albert Astals Cid ef395b81d0 Extending my (C) 2017-09-11 16:30:56 +02:00
l10n daemon script 26c9a860bb GIT_SILENT made messages (after extraction) 2017-09-11 05:34:04 +02:00