Commit graph

8161 commits

Author SHA1 Message Date
Yuri Chornoivan 39b6e8147d Fix minor EBN issues 2018-09-01 11:25:57 +03:00
Yuri Chornoivan c04ca1fa96 Fix minor EBN issues 2018-08-31 12:23:45 +03:00
Oliver Sander 81ac73fcf5 Show tooltips when hovering over links in mouse selection modes as well.
Previously, these tooltips were only shown in "Browse mode".
This patch adds them for "Selection", "Text selection", and
"Trim selection" as well.  These are the modes where the cursor
changes to a hand when hovering over a link.

BUG: 397783

Differential Revision: https://phabricator.kde.org/D15123
2018-08-29 13:32:05 +02:00
Albert Astals Cid 6a37055351 Merge remote-tracking branch 'origin/Applications/18.08' 2018-08-27 01:09:44 +02:00
Albert Astals Cid 0a8d2f7f85 Fix links being "lost" on save
Summary:
We need to regenerate the links when switching the file
since we won't re-render the pages since we already have
them and link generation is on page render

BUG: 397373

Reviewers: tobiasdeiminger

Reviewed By: tobiasdeiminger

Subscribers: tobiasdeiminger, sander, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D14752
2018-08-27 01:09:11 +02:00
Peter Wu 61c2c2cedd TOC: Add collapse/expand options
Large specifications with many (nested) sections are painful to navigate
through when the TOC is expanded by default. Introduce four new options,
"Expand/Collapse whole section" is based on Kate's document view while
"Expand/Collapse all" was added to handle the top-level sections.

As for other viewers, PDF.js uses shift-click to handle the former while
using double-click on a the TOC icon to handle the latter. That is not
very obvious, so extending the context menu seems the next best option.

BUG: 216870

Differential Revision: https://phabricator.kde.org/D14904
2018-08-26 14:05:26 +02:00
Yuri Chornoivan c7722c4078 Fix minor EBN issues 2018-08-17 21:05:01 +03:00
Yuri Chornoivan 2d138da190 Update screenshot to display Markdown backend in the list 2018-08-17 20:05:08 +03:00
Gilbert Assaf fcf148b75b Fixes url whitespaces in epub documents
Summary:
libepub can't handle whitespace url encodings. This is why epub documents containing whitespaces urls aren't
displayed correctly. Since libepub doesn't seem to be maintained anymore, it might be better to fix this issue here.

BUG: 334711

Test Plan: Example epubs are in the ticket.

Reviewers: #okular, aacid

Reviewed By: #okular, aacid

Subscribers: ngraham, aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D14310
2018-08-15 19:14:39 +02:00
l10n daemon script 0d3e4a5853 GIT_SILENT made messages (after extraction) 2018-08-15 06:32:08 +02:00
l10n daemon script a7aa8a46e1 GIT_SILENT made messages (after extraction) 2018-08-15 03:45:09 +02:00
Albert Astals Cid 9ba8dd2cd7 Make sure sorting in the configure backends is always the same
The sorting is not the best, but at least it's always the same now :D
2018-08-14 10:37:30 +02:00
Oliver Sander 59b8770545 Remove unused file
BUGS: 397429
2018-08-14 10:18:39 +02:00
Albert Astals Cid 918914dc99 Merge remote-tracking branch 'origin/Applications/18.08' 2018-08-13 11:14:41 +02:00
Ahmad Osama 5e622484c8 Fix problem of saving pdf switches from thumbnail view in sidebar to contents view
Summary:
When save/save as functions are called they internally call the openFile() function, in the open file function the side bar item is set to Table of Contents (ToC) item

```
if ( m_document->metaData( QStringLiteral("OpenTOC") ).toBool() && m_sidebar->isItemEnabled( m_toc ) && !m_sidebar->isCollapsed() && m_sidebar->currentItem() != m_toc )
{
     m_sidebar->setCurrentItem( m_toc, Sidebar::DoNotUncollapseIfCollapsed );
}
```
so I just store the sidebar's item before saving and then set this item back if changed.

BUG: 389668

Reviewers: #okular

Subscribers: aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D14740
2018-08-13 11:13:00 +02:00
Albert Astals Cid 78e113f508 Merge remote-tracking branch 'origin/Applications/18.08' 2018-08-09 00:29:45 +02:00
Albert Astals Cid 4f06f742f9 Fix properties dialog path not being correct on Save As
We need to clear DocumentInfo because otherwise it is cached and refers
to the old file

BUGS: 397039
2018-08-09 00:27:42 +02:00
Albert Astals Cid c85650a16f Merge remote-tracking branch 'origin/Applications/18.08' 2018-08-07 01:50:57 +02:00
Albert Astals Cid e0907726d6 Increase version
GIT_SILENT
2018-08-07 01:50:22 +02:00
Christoph Feck 5431114b30 GIT_SILENT Upgrade KDE Applications version to 18.08.0. 2018-08-06 22:43:20 +02:00
l10n daemon script d85fe1df64 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-08-04 07:49:58 +02:00
l10n daemon script bae0e13719 GIT_SILENT made messages (after extraction) 2018-08-04 06:27:24 +02:00
l10n daemon script f1d3c68115 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-08-04 05:43:46 +02:00
l10n daemon script 5f93a0b90e GIT_SILENT made messages (after extraction) 2018-08-04 03:45:00 +02:00
l10n daemon script 55c1cd433e 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-08-01 07:46:16 +02:00
l10n daemon script f670a18bd9 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-08-01 05:52:53 +02:00
Christoph Feck 5da85a88f1 GIT_SILENT Upgrade KDE Applications version to 18.07.90. 2018-07-30 23:46:16 +02:00
Albert Astals Cid 345c211674 Merge remote-tracking branch 'origin/Applications/18.08' 2018-07-28 23:14:44 +02:00
Gilbert Assaf 57be655c15 Improve picture scaling issues in epub generator
CCBUG: 391625

Test Plan: I tested the file mentioned in the bug report. Pictures look less blurry

Reviewers: #okular

Subscribers: ngraham, aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D13766
2018-07-28 23:13:53 +02:00
Albert Astals Cid 7c87174dde Merge remote-tracking branch 'origin/Applications/18.08' 2018-07-28 22:41:21 +02:00
Albert Astals Cid aed8e5ac28 Fix crash on shutdown when having edited text forms
This fixes the same crash as bug 393334 but in a better way
the old way was setting a variable on destruction and then trying
to use that variable in a slot, but that's obviously wrong since
we were already mid destructing the object.

BUG: 396807
2018-07-28 22:39:30 +02:00
Albert Astals Cid 1503463958 GIT_SILENT Upgrade KDE Applications version to 18.11.70. 2018-07-16 20:02:01 +02:00
Albert Astals Cid c05ebf2fc8 Increase version 2018-07-16 19:30:39 +02:00
Albert Astals Cid 0646a1dcfa GIT_SILENT Upgrade KDE Applications version to 18.07.80. 2018-07-16 19:29:16 +02:00
l10n daemon script c4570f7e40 GIT_SILENT made messages (after extraction) 2018-07-16 03:26:51 +02:00
l10n daemon script 860dc697ef GIT_SILENT made messages (after extraction) 2018-07-14 03:29:12 +02:00
Albert Astals Cid 6d3837e6f4 Merge remote-tracking branch 'origin/Applications/18.04' 2018-07-10 00:51:34 +02:00
Albert Astals Cid 14dc396cdb Do not crash on right-click on TOC item with no associated page
BUGS: 396326
2018-07-10 00:49:08 +02:00
Laurent Montel 634d8db004 Add missing () 2018-07-09 07:43:44 +02:00
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