Commit graph

604 commits

Author SHA1 Message Date
Oliver Sander 54436672fb Allow to rotate the page view using two-finger pinches on a touchscreen
REVIEW: 126809
2017-03-11 18:33:59 +01:00
Albert Astals Cid d3b5e13dad Reset d->mousePressPos correctly in mousePress after popup exec
BUGS: 363776
2017-03-09 00:38:00 +01:00
Albert Astals Cid 7d1cf88263 Merge remote-tracking branch 'origin/Applications/16.12' 2017-03-03 23:57:34 +01:00
Albert Astals Cid 7a50ce0edf Accumulate Control+Wheel Deltas until they reach QWheelEvent::DefaultDeltasPerStep
This way zooming in/out with a touchpad is easier to control

BUGS: 377128
2017-03-03 23:56:28 +01:00
Albert Astals Cid ce1c882d7e Make slotFormChanged store multiple pages in the timer and not just one
It's hard the user edits forms in more than one page in less than a second (though possible)
but once we introduce JS parsing that will be defenitely possible so need to store more than one page
2017-03-02 22:42:50 +01:00
Albert Astals Cid d2578c624a Merge remote-tracking branch 'origin/Applications/16.12' 2017-02-08 23:18:20 +01:00
Walter Mollica 6f3970dbe4 Extend viewport update area when updating or clearing the a selection rectangle
Extending the viewport update area of the selection rectangle when dragging the mouse while in selection mode or when canceling the selection ensures that no artifacts remain on-screen in either case.

BUG: 266537

Differential Revision: https://phabricator.kde.org/D4487
2017-02-08 23:16:50 +01:00
Martin T. H. Sandsmark 033f21c826 Port some missing debug output to categorized logging 2017-01-14 19:15:26 +01:00
Heiko Becker f968296c51 Invoke the correct KCModule
The webshortcuts KCM has been renamed from 'ebrowsing' to
'webshortcuts' when it was moved from konqueror to kio.

REVIEW: 129805
2017-01-11 17:05:55 +01:00
Albert Astals Cid e833b3ce65 Fix menu titles not showing up
QMenu title/section are optional to draw from the style side but we have crucial information in them
so reuse old KMenu code to create a fake action that behaves as title

I'll see if KF5 wants to accept this as contribution later

BUGS: 374079
2016-12-28 17:05:46 +01:00
Yuri Chornoivan e1535db5a0 Fix minor typos 2016-11-04 13:16:34 +02:00
Albert Astals Cid 62eea3336b Merge remote-tracking branch 'origin/master' into frameworks 2016-10-29 11:13:24 +02:00
Martin T. H. Sandsmark 9d90a08ef5 Implement zooming with a pinch gesture on a touch screen
Patch by Oliver Sander <oliver.sander@tu-dresden.de>

REVIEW: 128821
BUG: 366781
2016-10-15 15:22:35 +02:00
Martin T. H. Sandsmark c7bbf6f77c Rename method slotAutoScoll to slotAutoScroll
The old method name contained a typo.

Patch by Oliver Sander <oliver.sander@tu-dresden.de>.

REVIEW: 128938
2016-10-01 12:52:30 +02:00
Olivier CHURLAUD 04908dba2f Adding RTL reading mode feature to okular
Commited on behalf of Fahad Al-Saidi

REVIEW: 125397
BUG: 325650
2016-07-26 01:37:54 +02:00
Martin T. H. Sandsmark 09a99ba96b Port away from obsolete Qt functions 2016-07-24 23:46:53 +02:00
Martin T. H. Sandsmark 962af72cc1 Silence some warnings 2016-07-24 22:39:45 +02:00
Martin T. H. Sandsmark 5e78ca3df5 Stop using deprecated way to open browser 2016-07-24 22:31:34 +02:00
Martin T. H. Sandsmark fe8e85f404 Re-add web shortcuts to context menu 2016-07-24 22:12:26 +02:00
Olivier CHURLAUD 630269a400 More ports out of KDialog 2016-07-17 02:28:57 +02:00
Martin T. H. Sandsmark ba4b9eb1a6 ui: Fix build without implicit cast to/from ascii
See previous commits for details.
2016-07-11 22:05:18 +02:00
David Rosca 1335d67259 Use kcmshell5 for configure web shortcuts action
REVIEW: 126852
2016-03-11 14:23:26 +01:00
Patrick Spendrin d0ecab4736 Windows string fixes
This patch changes multiline QStringLiterals to QString::fromLatin1
as QStringLiterals doesn't understand multiline strings on windows.
Also, strncasecmp is replaced by the portable qstrnicmp function provided
by QByteArray header.

REVIEW: 126379
2015-12-28 22:48:25 +01:00
Montel Laurent 466eb79615 Use QStringLiteral 2015-10-29 13:37:11 +01:00
Montel Laurent 8805760ccf Merge remote-tracking branch 'origin/master' into frameworks 2015-10-29 13:24:05 +01:00
Albert Astals Cid 73677eaf0e Merge remote-tracking branch 'origin/Applications/15.08' 2015-10-28 00:29:40 +01:00
Albert Astals Cid a675670dda Save file attachments on left click
Instead of having to right click on it and choosing save from the menu
BUGS: 354268
2015-10-28 00:28:44 +01:00
Albert Astals Cid 8445660539 Merge remote-tracking branch 'origin/master' into frameworks 2015-10-18 22:29:00 +02:00
Albert Astals Cid d52a07c9d2 Merge remote-tracking branch 'origin/gsoc2015_layer_feature' 2015-09-16 22:54:42 +02:00
Albert Astals Cid 1cd101b480 Small cleanup of the layer support feature
Tab replacing, function naming, include removal, @since addition, etc
2015-09-15 01:38:09 +02:00
Montel Laurent c3decc55f7 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	CMakeLists.txt
	ui/pageview.cpp
2015-08-27 23:04:28 +02:00
Jake Linder 172d78c6b3 Add "Trim To Selection" feature
Changes

C1. Added submenu, moved "Trim margins" (TM mode) to it and added  "Trim To Selection" (TS mode).
C2. Activating "Trim To selection" enters a new mousemode, similar to RectSelect for defining a viewport.
C3. Once a viewport has been defined, it serves as a viewport for all pages in the document.
C4. Left/Right pages are not treated differently.

Manual Testing

T1. Switching between modes enforces at most one active.
T2. Can deactivate a mode by selecting it again from the menu.
T3. When draggin bbox selection, clicking outside page does not crash.
T4. When in "Facing Pages" mode, mouse release must be over any page (or is ignored).
T5. Normalized bbox coords are computed relative to page indicated by point of mouse release.
T6. Behave as expected when switching between any pair of No Trim/Trim Margins/Trim To Selection.
T7. TM mode persisted across app restarts (existing behavior).
T8. TS mode forgotten across app restarts (as desired).
T9. Exiting and reselectin "Trim To Selection" prompts for new bbox.
T10. Choosing a small Trim bbox enforces minimium dimensions size (As percentag of total), as
it does in TM mode, because of the "scale big and crop down" implementation, to avoid huge pixmaps.
TS mode minimum set at 20% (vs. TM mode's 50%).

REVIEW: 124716
BUGS: 351156
2015-08-27 22:09:02 +02:00
Jan Kundrát cf513f3dd6 Fix picking of different view modes
This was broken since commit 077689c4 when this got ported away from
KAction. The code attempted to add a parent QMenu to the QAction
instances nested below that parent. I'm quite surprised that it didn't
crash, but checkable actions do not go well with actions that have
nested menus, apparently.

I haven't checked the rest of the code for similar mistakes, but I don't
see any other case of this bug in Okular's menus when reading PDFs.

REVIEW: 124842
2015-08-25 23:53:21 +02:00
Tobias Koenig 8b603c174d Add basic support for RichMedia annotations in PDF files
That patch extracts the video file, which is defined in a
rich media annotation as parameter for the flash player,
and uses the normal multimedia player, to playback the video
file.

This feature requires poppler-qt5 in version 0.36.

FEATURE: 326230
REVIEW: 124612
2015-08-20 08:59:34 +02:00
Montel Laurent ad333314bc Don't add "Speak Text" when we don't have support 2015-08-18 15:28:38 +02:00
Montel Laurent 49ce3fc4d2 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	core/version.h
2015-08-03 09:44:50 +02:00
Saheb Preet Singh d891436231 reloading form widgets with layer show and hide 2015-07-20 22:25:35 +05:30
René J.V. Bertin 42e03ce9bf Initialise PageViewPrivate::aFitWindowToPage to NULL and
check against NULL consistently before calling aFitWindowToPage->setEnabled().

BUG: 348000
REVIEW: 123876
2015-05-22 01:47:16 +02:00
Albert Astals Cid e89283a6b5 Merge remote-tracking branch 'origin/Applications/15.04' 2015-04-16 00:11:30 +02:00
Albert Astals Cid aed8a9b3cd Fix crash on closing
Tell the document we're no longer an observer in the destructor
BUGS: 346149
FIXED-IN: KDE Applications 15.04.1
2015-04-16 00:10:52 +02:00
Montel Laurent 840355dc78 Fix warning 2015-03-17 08:51:36 +01:00
Montel Laurent d780d15ea9 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	autotests/mainshelltest.cpp
	part.cpp
	part.h
	shell/shell.cpp
2015-03-17 08:47:52 +01:00
Saheb Preet Singh 1eafe4feb1 New shortcut to resize window to fit page
FIXED-IN: KDE Applications 15.08
BUGS: 326844
REVIEW: 115283
2015-03-17 00:20:11 +01:00
Albert Astals Cid 4ab459790b Do not show RMB menus if we're dragging an annotation 2015-03-13 23:44:29 +01:00
Albert Astals Cid ded1e5486d Do not release the annotation if we release the middle button 2015-03-13 23:30:50 +01:00
Albert Astals Cid 9c98ac0f8b Always release annotation on mouse release
BUGS: 345082
FIXED-IN: KDE Applications 15.04 Beta 3
2015-03-13 23:26:08 +01:00
Montel Laurent 8fad6ebe09 Don't create action when we don't have qtspeech 2015-03-06 14:00:02 +01:00
Martin T. H. Sandsmark 0b59e83530 fix format of zoom level percent 2015-02-24 23:24:44 +01:00
Jeremy Whiting 61554c833e Reenabled text to speech using QtSpeech as an optional dependency.
If QtSpeech (dev branch) is built and installed this builds and works
very well.
REVIEW:122553
2015-02-23 12:24:44 -07:00
Lukáš Tinkl e9ae1d99af port away from KLocale 2015-01-29 21:48:47 +01:00