Commit graph

584 commits

Author SHA1 Message Date
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
Montel Laurent e9921b6dd5 Merge remote-tracking branch 'origin/master' into frameworks 2015-01-03 07:55:24 +01:00
Albert Astals Cid a27ca79cf3 Improve Audio handling
Say "Play Sound" instead of "Follow this link"
Only offer to stop sound when there's one playing

Inspired by https://git.reviewboard.kde.org/r/120683 by Nidhi Jain
2015-01-02 23:19:47 +01:00
Montel Laurent bb02e208d2 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	CMakeLists.txt
2014-12-28 10:38:34 +01:00
Albert Astals Cid 67807b73b8 Fix mid mouse button click on the scrollbar
On 45dc1990 i made the wrong assumption that if you were in
slotRequestVisiblePixmaps with the mid mouse button pressed
it meant that you were mid mouse button zooming, but this is not
true if you mid mouse click on the scrollbar.

So the solution to ignore pixmap request on mid mouse button zooming
is actually use blockPixmapsRequest

BUGS: 341583
FIXED-IN: 14.12.1
2014-12-12 00:48:41 +01:00
Jonathan Doman b069e3557f Allow each PageView to use a different tool
Keep a local MouseMode setting, and don't rely on the value returned by Settings::mouseMode().
BUGS: 334251
REVIEW: 120660
FIXED-IN: 14.12.0
2014-12-10 15:34:26 +01:00
Montel Laurent f95258ec1d It uses QUrl 2014-10-28 08:14:21 +01:00
Montel Laurent 21360d6b7a Fix includes 2014-10-12 17:20:07 +02:00
Albert Astals Cid e8fd56f3ba Fixup last commit
Somehow i ended up commiting a partial patch and not what was in reviewboard, this amends the previous commit to be what i really wanted to commit

Sorry for the mess :/
2014-10-09 00:53:54 +02:00
Albert Astals Cid d95efa7698 Move synctex up to the core from poppler generator
This way dvi and any other potential user gets it for free

The diff is huge, but the synctex files are just moves.

And the code in core/ is also mostly just a move from the generator_pdf.cpp code

Acked by Luigi

REVIEW: 120311
2014-10-09 00:17:53 +02:00
Montel Laurent 17b7049c69 Fix includes 2014-10-08 13:48:01 +02:00
Montel Laurent 26fc592e7d Fix includes 2014-10-06 08:31:17 +02:00
Lukáš Tinkl 48300404cb replace deprecated QAction::setShortcut with KStandardShortcut 2014-10-04 21:48:32 +02:00
Montel Laurent 927e7a9a19 Merge remote-tracking branch 'origin/KDE/4.14' into frameworks 2014-10-01 07:29:17 +02:00
Montel Laurent 378f6847a2 Remove some deprecated kdelibs4support 2014-10-01 07:27:09 +02:00
Arnold Dumas dc74543bac Port away from KGlobalSettings::desktopGeometry(). 2014-09-28 14:14:19 +02:00
Arnold Dumas a6db7a2655 Port from KInputDialog to QInputDialog.
REVIEW: 120378
2014-09-28 12:44:33 +02:00
Volker Krause 146e585f02 Make constants const, avoids a few extra symbols in the .data section. 2014-09-27 15:41:47 +02:00
Albert Astals Cid d888b20483 Fix dvi inverse search
distance being in sqr pixels and s_minDistance being a normalized value was not a good idea to compare them ^_^

BUGS: 326605
REVIEW: 120308
2014-09-21 23:54:20 +02:00
Frederik Gladhorn 6c602bf0e7 Use categorized logging even more 2014-09-16 23:38:25 +02:00
Frederik Gladhorn 9d89739972 Use categorized logging 2014-09-16 23:24:36 +02:00