Commit graph

442 commits

Author SHA1 Message Date
l10n daemon script 1f08c47245 GIT_SILENT made messages (after extraction) 2019-04-22 03:20:44 +02:00
l10n daemon script 35b95b36aa GIT_SILENT made messages (after extraction) 2019-03-27 03:24:47 +01:00
Laurent Montel 5a3a49c310 Port qSort to std::sort 2019-03-12 13:13:53 +01:00
Volker Krause bc4c19eb92 Remove dependency on okularpart from the mobile components
Summary:
This only depended on okularpart due to the export header used in the
kcfgc file, so use a dedicated one for the mobile components that doesn't
export anything.

This enables disabling the part build for mobile-only builds such as
Android, and thus removing the need for some difficult dependencies
like KParts.

Reviewers: aacid

Reviewed By: aacid

Subscribers: aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D19037
2019-02-23 09:59:42 +01:00
Aleix Pol 18cd829fa5 android: Fix minSdk 2019-02-15 16:39:17 +01:00
Volker Krause d15e8e8640 Fix up arc failure, this was the latest version D18397 2019-02-04 19:11:37 +01:00
Volker Krause a9540cf3ce Fix launching Okular by opening a document from the file browser
Summary:
There's two issues here:
- Activity::onCreate triggered before the C++ side was loaded, so the
  call to C++ failed (causing a crash). So delay that until we are ready.
- The static instance of URIHandler in the header caused it to duplicate
  into each translation unit, causing main.cpp to not see what android.cpp
  wrote into it.

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D18399
2019-02-04 18:32:04 +01:00
Volker Krause 1fd9c052a6 Fix a few more QML runtime errors/warnings
Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D18398
2019-02-04 18:32:04 +01:00
Volker Krause dfe6f26c6a Fix crash on canceling the file open dialog
Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D18397
2019-02-04 18:30:15 +01:00
Volker Krause e0e4a1689c Fix ToC icon, and remove unnecessary dependency on KDeclarative
Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D18396
2019-02-04 18:30:15 +01:00
Carl Schwan 2d568acd7d
Update some files to QQC2 and fix minor bug
Summary: The bug was that the Drawer use the `drawerOpen` properties now instead of just `open`. Also fix deprecation Kirigami.Label -> QQC2.Label.

Test Plan: Tested on my computer with the touchpad. I could potentialy try with my android phone, if needed.

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D18637
2019-02-01 23:34:07 +01:00
l10n daemon script cc211129ea GIT_SILENT made messages (after extraction) 2019-01-28 03:13:05 +01:00
l10n daemon script 802e8814aa GIT_SILENT made messages (after extraction) 2019-01-05 03:17:40 +01:00
l10n daemon script 42ca9ab2f2 GIT_SILENT made messages (after extraction) 2018-12-26 03:11:23 +01:00
l10n daemon script 59307b57ab GIT_SILENT made messages (after extraction) 2018-12-21 03:16:27 +01:00
l10n daemon script b2fd519f6b GIT_SILENT made messages (after extraction) 2018-12-19 03:15:21 +01:00
Albert Astals Cid a4a1978516 Merge remote-tracking branch 'origin/Applications/18.12' 2018-12-18 22:49:46 +01:00
l10n daemon script 5fdeec57df GIT_SILENT made messages (after extraction) 2018-12-16 07:16:56 +01:00
l10n daemon script efbab7a67d GIT_SILENT made messages (after extraction) 2018-12-13 07:25:43 +01:00
l10n daemon script e0cd758ae0 GIT_SILENT made messages (after extraction) 2018-12-13 03:17:44 +01:00
l10n daemon script 43eb508c32 GIT_SILENT made messages (after extraction) 2018-12-12 07:54:57 +01:00
l10n daemon script 03d0a40397 GIT_SILENT made messages (after extraction) 2018-12-03 07:15:53 +01:00
l10n daemon script e19cd125f1 GIT_SILENT made messages (after extraction) 2018-12-03 03:19:29 +01:00
Heiko Becker 442cbfcfee Merge remote-tracking branch 'origin/Applications/18.12' 2018-11-27 20:37:59 +01:00
Heiko Becker 140638a0b3 Explicitly import Qt 5.7's QtQuick for Connections.enabled
Summary:
It was introduced in that version and apparently Qt 5.12 is stricter
about this and causes 'qrc:/package/contents/ui/main.qml:59
"Connections.enabled" is not available in QtQuick 2.1.' when trying
to start okularkirigami without this patch.

Test Plan: okularkirigami shows up

Reviewers: #okular, apol

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D17196
2018-11-27 19:41:25 +01:00
l10n daemon script 7e0c8651e4 GIT_SILENT made messages (after extraction) 2018-11-26 03:10:23 +01:00
l10n daemon script b9d751ae76 GIT_SILENT made messages (after extraction) 2018-11-21 07:23:43 +01:00
l10n daemon script a71f18a001 GIT_SILENT made messages (after extraction) 2018-11-21 03:16:51 +01:00
l10n daemon script e6f3f972db GIT_SILENT made messages (after extraction) 2018-11-16 06:56:46 +01:00
l10n daemon script 41330b111a GIT_SILENT made messages (after extraction) 2018-11-16 03:50:24 +01:00
Yuri Chornoivan 5478b2ec92 Fix minor typos 2018-11-14 21:12:15 +02:00
l10n daemon script 139e6d8fae GIT_SILENT made messages (after extraction) 2018-11-13 04:02:38 +01:00
l10n daemon script 167b7955cf GIT_SILENT made messages (after extraction) 2018-11-08 03:55:00 +01:00
l10n daemon script b3dd26a644 GIT_SILENT made messages (after extraction) 2018-11-04 03:54:05 +01:00
l10n daemon script fe5d79bb9f GIT_SILENT made messages (after extraction) 2018-11-02 03:53:58 +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
Yuri Chornoivan 5c4c33e725 Fix minor Appstreamercli issues 2018-10-28 12:50:28 +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
l10n daemon script b632b36cb2 GIT_SILENT made messages (after extraction) 2018-09-28 03:48:01 +02:00
l10n daemon script 736f801dac GIT_SILENT made messages (after extraction) 2018-09-04 03:54:09 +02:00
Albert Astals Cid 21836ba072 Merge remote-tracking branch 'origin/Applications/18.08' 2018-09-03 21:15:52 +02:00
l10n daemon script 86858e6cb0 GIT_SILENT made messages (after extraction) 2018-09-03 06:39:54 +02:00
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
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
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 c4570f7e40 GIT_SILENT made messages (after extraction) 2018-07-16 03:26:51 +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 e090125cda GIT_SILENT made messages (after extraction) 2018-06-03 03:34:15 +02:00
l10n daemon script bb3893b33f GIT_SILENT made messages (after extraction) 2018-06-01 03:36:34 +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 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
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 26c40ab7bd GIT_SILENT made messages (after extraction) 2018-05-06 03:31:04 +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
l10n daemon script 8041ce82b7 GIT_SILENT made messages (after extraction) 2018-04-26 03:31:33 +02:00
Aleix Pol 58c09cd47c QtQuick: Use proper drawer API 2018-04-26 00:35:06 +02:00
Aleix Pol bf6f5f74dc QtQuick: Don't reset zoom when scrollbars appear 2018-04-25 18:08:03 +02:00
Aleix Pol df35e22314 QtQuick: make certain properties readonly 2018-04-25 17:31:32 +02:00
Aleix Pol 374d953e39 QtQuick: remove unnecessary use of QQuickPixmapItem
It was already ported to render into a pixmap, so just pass that pixmap
as a texture.
2018-04-25 17:27:10 +02:00
Aleix Pol 77dfe3ddc6 QtQuick: Port from Text to proper Kirigami.Units 2018-04-25 16:14:47 +02:00
Aleix Pol 84854afb64 QtQuick: Only emit when there's something to change 2018-04-25 16:01:19 +02:00
Aleix Pol a7b165c0f2 QtQuick: Adopt more assertive behavior upon document change
Don't change all pages to 0, it should be the application currentPage to
change. Otherwise we get to having 3 items at page 0.
2018-04-25 16:01:19 +02:00
Aleix Pol 19222f27ca QtQuick: fix visual corruption
Don't request async pixmaps then render them straight away.
2018-04-25 16:01:19 +02:00
Aleix Pol c51419dd9f QtQuick: use the right bounds when painting
Use textureSize as the documentation suggests, contentsSize is
deprecated.
Sometimes this size is invalid, use textureSize in such case.
2018-04-25 16:01:19 +02:00
l10n daemon script d2fe4868e1 GIT_SILENT made messages (after extraction) 2018-04-23 03:36:39 +02:00
Aleix Pol 2648ad7b73 Correctly list the supported file suffixes 2018-04-22 23:00:49 +02:00
Aleix Pol 077d0219fe Did not meant to commit that
Damn arcanist >.<
2018-04-22 22:33:27 +02:00
Aleix Pol 1fb77446a7 Make it possible to disable the build of okularkirigami
Summary:
Some distros seem to have the option.

BUG: 393119

Test Plan: Still builds, can disable build

Reviewers: #okular, mart, aacid, lbeltrame

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12352
2018-04-22 22:23:11 +02:00
l10n daemon script 7c297a2a41 GIT_SILENT made messages (after extraction) 2018-04-21 03:37:32 +02:00
l10n daemon script 50b01e1e78 GIT_SILENT made messages (after extraction) 2018-04-20 03:34:28 +02:00
Aleix Pol 77049d3b80 Android: include metadata for okular kirigami
Summary:
Include an AndroidManifest.xml file so when it's installed it has a
proper icon and name.
Include appdata information so it can be listed

Reviewers: #okular, mart, aacid

Reviewed By: #okular, mart, aacid

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12299
2018-04-19 01:05:54 +02:00
Marco Martin 71f870836e upport high dpi 2018-04-18 16:57:27 +02:00
Marco Martin af1aef4e6f set the context properties the app expects 2018-04-18 15:46:34 +02:00
Aleix Pol 5f8f84d53c Turn okularkirigami into an executable
Summary:
Makes for straightforward Android testing and will work on normal
installations as well.

Reviewers: #kirigami, #okular, mart

Reviewed By: #kirigami, mart

Subscribers: plasma-devel

Tags: #kirigami, #okular

Differential Revision: https://phabricator.kde.org/D12176
2018-04-13 18:26:34 +02:00
Aleix Pol 4d19b4a8d7 No need to link to okularpart
It's wrong to link against plugins anyway.
2018-04-13 17:46:12 +02:00
Pino Toscano 9008803b32 remove deprecated Encoding key from desktop files
... even when only mentioned in apidox
2018-01-02 22:35:40 +01:00
Kevin Funk a53a2402ca clang-tidy: modernize-use-nullptr run
Semi-ACK'd by Albert :)
2017-09-06 00:19:48 +02:00
Marco Martin caf8820cf7 port to Kirigami 2
port kirigami 1 usage to kirigami 2
partially port to QQC2 when possible
(will need to wait newer qt versions for a full port waiting on
icons on toolbuttons and the new ScrollView
2017-07-13 18:48:18 +02:00
Albert Astals Cid 4072eb0c3a Add override 2017-03-02 20:38:50 +01:00
l10n daemon script 53a6cde141 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-02-04 06:23:35 +01:00
Martin T. H. Sandsmark 033f21c826 Port some missing debug output to categorized logging 2017-01-14 19:15:26 +01:00
l10n daemon script 191e10300d 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"
2016-11-04 09:43:54 +00:00
Luigi Toscano ce4057c8b6 Cleanup Messages.sh files for mobile
Follow the changes to the structure of the files that happened during
the porting to Frameworks.
2016-11-03 23:01:08 +01:00
Martin T. H. Sandsmark afb5e01aed Make the QML component plugin not crash when trying to be loaded without a QApplication 2016-10-15 15:22:16 +02:00
Martin T. H. Sandsmark 5e77764ac5 Don't show mobile version in menus 2016-08-13 22:53:29 +02:00
Martin T. H. Sandsmark f2e9633ea7 Fix misuse of QWeakPointer 2016-08-13 22:36:20 +02:00
Olivier CHURLAUD ef6f5ebc3b Porting more files out of KDialog 2016-07-21 21:53:54 +02:00
Martin T. H. Sandsmark 67e7ada311 Fix build without implicit cast to/from ascii
See the previous commits for details. This is the last part.
2016-07-11 22:11:43 +02:00
Marco Martin 954c46ec46 go at beginning of page when switching 2016-05-13 18:07:37 +02:00
Marco Martin 7fe208892d joined buttons style on plasma style 2016-05-13 18:01:31 +02:00
Marco Martin f4de5d1bef move progressbar in MainView
only show on controls shown
2016-05-13 17:58:21 +02:00
Marco Martin 3b34e223c8 adjust look of thumbnails 2016-05-13 17:52:49 +02:00
Marco Martin 3c74f1acb0 minor layout fixes 2016-05-13 17:41:35 +02:00
Marco Martin 1d5853c2cb better behavior for wheel zoom 2016-05-13 17:19:48 +02:00
Marco Martin 5cc122f021 restore horiz flicking
restore scrolling with mouse wheel
2016-05-13 17:01:17 +02:00
Marco Martin 4bb05056ce support zoom by ctrl+wheel 2016-05-13 16:36:06 +02:00
Marco Martin 6fe6e884d1 make sure horiz scrollbar is off when not needed
size the page correctly to not have the horizontal
scrollbar when not needed, and make sure the flickable
is not interactive, as flicking is managed by hand
with a mousearea
2016-05-13 16:17:26 +02:00
Marco Martin eb1f73800e port to kirigami
port away from plasma-framework dependencies
2016-05-13 14:49:08 +02:00
Dan Leinir Turthra Jensen d01a5704bf Avoid a crash occurring when pushing the components a little hard
The situation described here occurs in particular when first increasing
the size of the component considerably, and then reducing it again
(such as switching to and from full screen in some application)
Error discovered in Peruse, but will happen elsewhere as well.
2016-04-25 08:28:50 +01:00
Thomas Friedrichsmeier df0c41212f Fix build with MinGW on Windows.
REVIEW: 127328
2016-03-16 10:57:34 +01:00
Marco Martin 5b5f0a0c8a a message if no docs present 2016-01-27 10:47:40 +01:00
Marco Martin 0772330f79 fix OkularDrawer appearance 2016-01-08 17:31:01 +01:00
Marco Martin 9689a8eccd add missing file 2015-12-22 19:52:55 +01:00
Marco Martin 2b4486a00d adapt to new components API 2015-12-01 17:29:16 +01:00
Gleb Popov c339bc5d0a Fix okularplugin linking on VS 2015.
okularplugin target from mobile/components suffers from the same problem as okularpart in https://git.reviewboard.kde.org/r/125741/
But the cause is a bit different now. okularplugin uses settings.cpp generated by KConfig and its header declares Settings class with OKULARCORE_EXPORT. For okularplugin target this macro gets expanded to __declspec(dllimport) and it makes linker to look for Settings class symbols in okularcore.

Fix this by tricking VS that we are building okularcore target.

REVIEW: 125742
2015-10-29 18:54:19 +03:00
Montel Laurent 466eb79615 Use QStringLiteral 2015-10-29 13:37:11 +01:00
Marco Martin 9d0f5e6312 remove references to non existent id 2015-09-25 17:47:26 +02:00
Marco Martin c8838e94c9 directly scale the content item when pinching
when pinching, just scale the item, this scales the texture
with the GPU, avoiding costrly redraws.
redraw at the correct size only when the gesture ends
2015-09-25 16:33:46 +02:00
Marco Martin be805e906e port to Documentview 2015-09-24 20:34:00 +02:00
Marco Martin 79622ee9a3 A touchscreen optimized view for a document
It supports changing pages by a swipe gesture, pinch zoom
and flicking to scroll around.
The mobile application will be ported to this new component
2015-09-24 17:47:26 +02:00
Marco Martin 709121c37c better pinch behavior 2015-09-23 16:14:49 +02:00
Marco Martin bb5c4291e2 fix and port the Table of Contents browser 2015-09-23 14:34:12 +02:00
Marco Martin c8db597052 tiny progressbar at bottom of the screen 2015-09-23 12:59:57 +02:00
Marco Martin 883a55f925 better sizing of thumbnails 2015-09-22 11:51:12 +02:00
Marco Martin 884b40287e by default fit to page 2015-09-18 19:53:51 +02:00
Marco Martin 8d8665582c toolbar to open sidepanels
fix bookmarks management
2015-09-18 18:22:28 +02:00
Marco Martin 933e72ec03 Browser in left panel
remove toolbar text when doesn't fit
2015-09-18 15:51:06 +02:00
Marco Martin 1dd033d914 rename all the active specific desktop files 2015-08-05 16:54:48 +02:00
Marco Martin 5ba5e2189c rename from active to mobile 2015-08-05 16:54:48 +02:00