Commit graph

1628 commits

Author SHA1 Message Date
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
Martin T. H. Sandsmark 077258f235 (re-)Implement recoloring 2016-07-24 21:34:56 +02:00
Martin T. H. Sandsmark 3bcfb63d5c Fix sizing of properties dialog
We don't need to calculate sizing ourselves, widgets do that.

We also don't need to set maximum size ourselves manually, we already
use KSqueezedLabels to avoid having to do that for very large strings.
2016-07-24 19:59:30 +02:00
Martin T. H. Sandsmark 82cc716f70 Remove unnecessary build warning
spacingHint()/marginHint() just returned the defaults from QApplication
even in kdelibs (4), so this code was useless.

The direct port would look something like this:
    page2Layout->setMargin(QApplication::style()->pixelMetric(QStyle::PM_DefaultChildMargin););
    page2Layout->setSpacing(QApplication::style()->pixelMetric(QStyle::PM_DefaultLayoutSpacing););
2016-07-24 19:25:18 +02:00
Martin T. H. Sandsmark 3a00f4e9c0 Remove unnecessary build warning
KDialog::makeStandardCaption() is not necessary anymore.

Quoting David:
    I made Qt add the application name to the titlebar automatically on
    desktop platforms. So don't add it again in the application code.

From https://mail.kde.org/pipermail/kde-frameworks-devel/2014-August/018143.html
2016-07-24 19:19:44 +02:00
Martin T. H. Sandsmark dcba48cbd3 Remove unnecessary .moc include 2016-07-24 19:18:55 +02:00
Martin T. H. Sandsmark 2896b9c9a9 Remove KGlobalSettings include in sidebar 2016-07-24 16:59:58 +02:00
Martin T. H. Sandsmark ad8b35a690 Fix updating of palette in sidebar 2016-07-24 16:59:34 +02:00
Martin T. H. Sandsmark 06edec49fd Don't use the toolbar font for the sidebar, toolbar != sidebar
For reference, not even Konqueror uses the toolBarFont() for its
sidebar.

In fact, this seems to be the only usage of toolBarFont() I could find
in any KDE application.
2016-07-24 16:52:54 +02:00
Martin T. H. Sandsmark 76b976f87e Use correct palette update signal in minibar 2016-07-24 16:28:35 +02:00
Olivier CHURLAUD ef6f5ebc3b Porting more files out of KDialog 2016-07-21 21:53:54 +02:00
Olivier CHURLAUD 630269a400 More ports out of KDialog 2016-07-17 02:28:57 +02:00
Martin T. H. Sandsmark 5d9d98f46f Fix MiniBar's adjusting to size changes
CCBUG: 357579
2016-07-13 03:10:15 +02:00
Martin T. H. Sandsmark 638fedb2ea Replace obsolete typedefs 2016-07-11 23:24:47 +02:00
Martin T. H. Sandsmark d5bdca64d2 Fix low hanging unused parameters warnings 2016-07-11 22:57:11 +02:00
Martin T. H. Sandsmark 48d52d9bd1 Add missing override declarations 2016-07-11 22:40:15 +02:00
Martin T. H. Sandsmark d700bc626e Port away from obsolete QTabletEvent member 2016-07-11 22:13:52 +02:00
Martin T. H. Sandsmark ad6e3fe850 Port away from obsolete QRect/QRegion members 2016-07-11 22:13:31 +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
Martin T. H. Sandsmark 439ced872d Port away from signal/slot keyword
When building okular without kdelibs4support it apparently builds with
-DQT_NO_SIGNALS_SLOTS_KEYWORDS.
2016-07-11 19:34:08 +02:00
David Rosca 1335d67259 Use kcmshell5 for configure web shortcuts action
REVIEW: 126852
2016-03-11 14:23:26 +01:00
Albert Vaca 67f69c8871 Merge branch 'master' into frameworks
# Conflicts:
#	CMakeLists.txt
#	active/app/package/metadata.desktop
#	conf/widgetannottools.cpp
#	core/version.h
#	generators/poppler/libokularGenerator_poppler.desktop
#	generators/txt/libokularGenerator_txt.desktop
#	generators/xps/libokularGenerator_xps.desktop
#	ui/annotationwidgets.cpp
#	ui/presentationwidget.cpp
2016-02-22 03:50:54 -08:00
Albert Vaca db212c805f Make presentation widget tool bar follow the lineedit height
REVIEW: 126050
2016-02-22 02:56:17 -08:00
Albert Astals Cid aa2c28bc51 Forms: Let checkboxes be unchecked
At least in PDF which is the only backend with form support

Radio buttons are a bit of a mess since they're supposedly also uncheckable if NoToggleToOff is not set but in Adobe Reader they never are

BUGS: 357743
2016-02-22 02:54:04 -08:00
Aleix Pol f42a3bad65 Drop libkscreen dependency
Drops the x11 fallback. We were falling back to QX11Extras that were in
fact using QScreen internally.
Also remove the QDesktopWidget fallbacks for the same reason.
Drops some API for fetching the dpi and unifies it with ::realDpi(QWidget).

Based on Sebas's patch.
Reviewed by Albert.

REVIEW: 126913
2016-01-30 18:15:07 +01:00
Patrick Spendrin 37d5623102 Remove kdelibs4support from the generator plugins
This removes kdelibs4support for all generators except the mobipocket one.
The test executable for kimgio needs some windows fixes too, so I'll try
to make a separate review for that.

REVIEW: 126375
2016-01-30 16:51:46 +01:00
Albert Astals Cid 40307ed70b Merge remote-tracking branch 'origin/Applications/15.12' 2016-01-15 01:06:22 +01:00
Albert Astals Cid ab3a9072b0 Forms: Let checkboxes be unchecked
At least in PDF which is the only backend with form support

Radio buttons are a bit of a mess since they're supposedly also uncheckable if NoToggleToOff is not set but in Adobe Reader they never are

BUGS: 357743
2016-01-15 01:05:25 +01:00
Alex Richardson 2f9246ae42 Port to new JSON plugin loading system
This means Okular can now work without ksycoca and KDELibs4Support.

REVIEW: 126193
2016-01-04 15:59:07 +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
Sumit Sahrawat 3400f76dad Make inline annotation border width customizable, using a spin widget to accept input
REVIEW: 125801
BUGS: 332887
2015-11-24 01:10:46 +01:00
Oliver Sander 1e86855b93 Make presentation widget tool bar follow the lineedit height
REVIEW: 126050
2015-11-15 22:56:13 +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 99667e4cfa Make leaving the presentation area finish the drawing
BUGS: 354016
2015-10-17 23:57:07 +02:00
Arseniy Lartsev 9f0ff21a22 Presentation: correct durations for "Fade" transition effect by doing 20 FPS instead of 100 frames total
Right now, fade transition is always done in 100 frames. If the intended duration is, say, 1 second, the actual duration can easily be a few seconds instead, due to the limited CPU power (on my laptop with core i5, those 100 frames take 2 seconds).

I propose a patch that changes the number of frames to 20 * (duration in seconds). 20 FPS still looks completely smooth to me.

REVIEW: 125310
BUGS: 352876
2015-10-15 00:11:32 +02:00
Arseniy Lartsev e9e5cb6317 Repeat videos in PDFs automatically when needed
REVIEW: 125341
BUGS: 353171
2015-09-26 17:30:04 +02:00
Marco Martin bb5c4291e2 fix and port the Table of Contents browser 2015-09-23 14:34:12 +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 5b62bc71d4 Simplify KTreeviewSearchLine to only work on a treeview
Instead of many, allows for an easy fix of the case than children of root are ignored on search
2015-09-16 21:43:04 +02:00
Albert Astals Cid ce7f81fc06 Make the sidebar work on widget pointers and not ints
This way we don't need to worry if we add more widgets in the middle
2015-09-16 01:18:17 +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 b44d70a6f2 Implement eraser tool for presentation view
Extend the drawing tool section in top bar with an eraser tool,
which removes parts of the lines that have been drawn before.

FEATURE: 343774
REVIEW: 124689
2015-08-25 08:58:35 +02:00