Commit graph

480 commits

Author SHA1 Message Date
Albert Astals Cid 6bfdff58ae GIT_SILENT Upgrade KDE Applications version to 19.07.70. 2019-03-16 22:14:47 +01:00
Albert Astals Cid b78a2578ae increase devel version 2019-03-16 22:14:40 +01:00
Chinmoy Ranjan Pradhan a234a902dc Implement digital signature support for PDF
This is a squash of the original branch

It also contains fixes/rework from Albert Astals Cid

If you're interested in its history have a look at the
gsoc2018_digitalsignature branch

The poppler dependency situation is:
 * With 0.51 you get most signature information
 * With 0.68 you also get signature location/reason information
 * With 0.73 you also get signature certificate information
2019-01-10 23:13:54 +01:00
Aleix Pol ff2f60754d Properly find the Purpose framework
Now that we require KF5 5.44

Reviewers: #okular, aacid

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D16544
2019-01-07 00:56:08 +01:00
Albert Astals Cid 3513aea5bf Increase KF5 requirement to 5.44 2019-01-07 00:56:08 +01:00
Albert Astals Cid 88778d5436 GIT_SILENT Upgrade KDE Applications version to 19.03.70. 2018-11-10 08:40:14 +01:00
Albert Astals Cid 4a06e29d71 GIT_SILENT Upgrade KDE Applications version to 18.03.70. 2018-11-09 23:38:17 +01:00
Albert Astals Cid 8394e9722f New version for master
GIT_SILENT
2018-11-09 23:25:19 +01: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
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
Friedrich W. H. Kossebau 2d8179fdcb Remove usage of dead QT_USE_FAST_CONCATENATION
Dropped pre-Qt5
2018-06-29 19:45:56 +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
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
Aleix Pol c325b342f3 Make some frameworks optional so okular can be built on Android
Summary:
Disables KWallet integration if there's no KWallet, KJS if there's no
KJS and KDocTools.
Here's a list of frameworks that don't work on Android:
https://cgit.kde.org/sysadmin/ci-tooling.git/tree/local-metadata/project-ignore-rules.yaml

Test Plan: Still works locally, ran Okular and Okular Mobile on Android.

Reviewers: #okular, aacid

Subscribers: aacid

Tags: #okular

Differential Revision: https://phabricator.kde.org/D12177
2018-04-16 22:41:19 +02:00
Aleix Pol 621e4d9cd7 Improve searching for KActivities 2018-04-13 17:35:17 +02:00
Aleix Pol c8b0677a25 Remove unneeded dependencies 2018-04-13 17:05:16 +02:00
Albert Astals Cid 3e25263d77 Use KCrash 2018-04-08 11:50:18 +02:00
Albert Astals Cid 1069b02fd3 Merge remote-tracking branch 'origin/Applications/18.04' 2018-03-21 00:31:27 +01:00
Albert Astals Cid 7e1832c57a autotests: Only compile parttest if you have the pdf support
I'm sure other tests fail to run too, but this one was failing to
compile :D
2018-03-21 00:31:05 +01:00
Albert Astals Cid 33768c683f Merge remote-tracking branch 'origin/Applications/18.04' 2018-03-20 23:38:01 +01:00
Albert Astals Cid 098a886ff1 Increase OkularCore soversion
Since we broke ABI since last release
2018-03-20 23:37:30 +01:00
Albert Astals Cid 1b57c7557b GIT_SILENT Upgrade KDE Applications version to 18.07.70. 2018-03-19 23:52:08 +01:00
Albert Astals Cid e6860a1194 GIT_SILENT Upgrade KDE Applications version to 18.03.80. 2018-03-19 23:37:57 +01:00
Albert Astals Cid 1a093dc572 New version for master 2018-03-19 23:36:23 +01:00
Andre Heinecke cead2bbef3 Add initial support for built-in javascript functs
Summary:
This starts by adding support for AFSimple_Calculate which
is the standard "calculate" function in Adobe Acrobat Pro.

Reviewers: #okular

Subscribers: aacid

Tags: #okular

Maniphest Tasks: T7805

Differential Revision: https://phabricator.kde.org/D10049
2018-02-22 00:12:44 +01:00
Andre Heinecke d3a549ca25 Add JavaScript Event Object handling
Summary:
This adds a new data object "Event" that can be used
to carry information in and out of JavaScript execution
contexts. The Event Object is defined in the Adobe JavaScript
scripting reference.

The implementation now adds handling for the FieldCalculate
Event. It should be extensible enough so that in the future
more events could be supported.

Reviewers: #okular

Subscribers: aacid

Tags: #okular

Maniphest Tasks: T7805

Differential Revision: https://phabricator.kde.org/D10073
2018-02-22 00:11:20 +01:00
Albert Astals Cid 879f40e3a8 Increase minimum required KF5 version
All the distributions tracked in repology.org that ship Qt 5.8 at least ship KF 5.33 so increase it to that version
2018-02-21 21:31:28 +01:00
Aleix Pol e06883d102 Fix annoying warning
Summary:
Warning for every plugin was:
The file includes the moc file "generator_tiff.moc", but does not contain a Q_OBJECT, Q_GADGET, Q_NAMESPACE, K_PLUGIN_FACTORY_WITH_JSON, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON or K_PLUGIN_FACTORY macro.

Test Plan: Built

Reviewers: aacid

Reviewed By: aacid

Subscribers: #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D10022
2018-02-06 00:38:50 +01:00
David Faure ee2418be1d Re-enable -DQT_NO_URL_CAST_FROM_STRING and fix the CHM backend. 2017-12-05 09:48:40 +01:00
Albert Astals Cid 80b1b67ab9 Merge remote-tracking branch 'origin/Applications/17.12' 2017-12-05 01:00:51 +01:00
Albert Astals Cid 26367babb4 Unbreak compilation of the chm backend
CCMAIL: faure@kde.org
2017-12-05 00:57:04 +01:00
Albert Astals Cid 2b7b8e94f8 We broke ABI by adding a new virtual to generator 2017-12-05 00:53:34 +01:00
Albert Astals Cid deb01dce88 Increase version now that we're not on unstable versioning anymore 2017-12-05 00:30:48 +01:00
Christoph Feck 2f77b3294d GIT_SILENT Upgrade KDE Applications version to 17.12.0. 2017-12-05 00:03:16 +01:00
David Faure 591f200f33 Merge branch 'Applications/17.12' 2017-12-02 21:13:35 +01:00
David Faure 711e4e75ef Enable -DQT_NO_URL_CAST_FROM_STRING and fix compilation 2017-12-02 21:12:47 +01:00
Christoph Feck 27b8c8cc27 GIT_SILENT Upgrade KDE Applications version to 17.11.90. 2017-11-30 22:20:28 +01:00
Albert Astals Cid 7d5ee41f30 We need Qt 5.8
Because of QUndoStack::resetClean
2017-11-16 15:26:24 +01:00
Albert Astals Cid 43cd93a36b GIT_SILENT Upgrade KDE Applications version to 18.03.70. 2017-11-13 09:03:34 +01:00
Albert Astals Cid a3d1bb8cad Increase version for next release 2017-11-13 01:08:51 +01:00
Albert Astals Cid 41d378aef9 GIT_SILENT Upgrade KDE Applications version to 17.11.80. 2017-11-13 01:07:57 +01:00
Kevin Ottens a5da013a4d Add a "share" menu to Okular
Summary: This is implemented using the Purpose framework.

BUG: 173896

Reviewers: aacid

Subscribers: #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D8244
2017-10-18 16:55:21 +02:00
Albert Freeman 1f6e8a4782 Custom background color
Summary:
BUG: 182994

Adds an option to the config dialog that enables background color (the color around the displayed page) to be changed (while by default preserving the Qt toolkit selection as not to affect existing users).

Reasons for this change:
Accessibility, eye strain, aesthetic reasons, color displayed on monitor can affect power consumption (how: depends on display technology).
Many people want this change occording to Bugzilla and other sources.

Maintenance: Nearly no additional maintenance:
This is no new subsystem but a trivial feature with no complex code dependencies, and we are already showing a colour selection dialog and setting colours in other places in Okular.

{F4257766}

Other less important information:
https://git.reviewboard.kde.org/r/130219/
https://mail.kde.org/pipermail/okular-devel/2017-September/025520.html

Test Plan:
Tested everything, it all works:
Toggled the custom background color, changed custom background color, removed okular settings file (with: "rm ~/.config/okular*") to verify it uses the usual qt theme colour by default (where the settings file remembered the custom color).

Reviewers: #okular, aacid, elvisangelaccio, rkflx, ngraham

Reviewed By: ngraham

Subscribers: aacid, ltoscano, ngraham

Tags: #okular

Differential Revision: https://phabricator.kde.org/D8051
2017-10-01 11:31:59 +02:00
Luigi Toscano d176914e63 Revert "Custom background color"
Wrong authorship for the commit. Commit it again with the correct
information.

CCMAIL: pointedstick@zoho.com
This reverts commit 6b5a7c9a1a.
2017-10-01 11:27:53 +02:00
Nathaniel Graham 6b5a7c9a1a Custom background color
Summary:
BUG: 182994

Adds an option to the config dialog that enables background color (the color around the displayed page) to be changed (while by default preserving the Qt toolkit selection as not to affect existing users).

Reasons for this change:
Accessibility, eye strain, aesthetic reasons, color displayed on monitor can affect power consumption (how: depends on display technology).
Many people want this change occording to Bugzilla and other sources.

Maintenance: Nearly no additional maintenance:
This is no new subsystem but a trivial feature with no complex code dependencies, and we are already showing a colour selection dialog and setting colours in other places in Okular.

{F4257766}

Other less important information:
https://git.reviewboard.kde.org/r/130219/
https://mail.kde.org/pipermail/okular-devel/2017-September/025520.html

Test Plan:
Tested everything, it all works:
Toggled the custom background color, changed custom background color, removed okular settings file (with: "rm ~/.config/okular*") to verify it uses the usual qt theme colour by default (where the settings file remembered the custom color).

Reviewers: #okular, aacid, elvisangelaccio, rkflx, ngraham

Reviewed By: ngraham

Subscribers: aacid, ltoscano, ngraham

Tags: #okular

Differential Revision: https://phabricator.kde.org/D8051
2017-09-30 19:45:24 -06:00
Henrik Fehlauer fcc08449b1 Fix building synctex 1.19 on Windows
Summary:
The massive changes to the synctex code in D7594 pulled in a new library
(on windows only), reflect that in the linker flags.

Test Plan:
`craft okular` on Okular's master branch builds successfully with MSVC
2017 and Qt 5.9, build on Linux still fine.

Reviewers: #okular, aacid

Reviewed By: #okular, aacid

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7809
2017-09-13 23:47:35 +02:00
Kevin Funk a2bb8fbb46 Fix CMake warning
CMake Warning (dev) at
/home/kfunk/devel/install/kf5/share/ECM/modules/ECMPackageConfigHelpers.cmake:84
(message):
  Your project already requires a version of CMake that includes the
  find_dependency macro via the CMakeFindDependencyMacro module.  You
should
  use CMakePackageConfigHelpers instead of ECMPackageConfigHelpers.
2017-09-05 10:59:27 +02:00
Heiko Becker 29ddae55b5 Merge remote-tracking branch 'origin/Applications/17.08' 2017-09-04 21:37:14 +02:00
Heiko Becker 075b8153af Search for Kirigami
Summary: Makes it a bit more obvious that Kirigami is needed at runtime.

Test Plan: Shows a nice status message

Reviewers: #okular, aacid

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7241
2017-09-04 21:32:19 +02:00
Albert Astals Cid 4c3fb21b0a Use project() to set the version 2017-09-02 19:57:46 +02:00
Albert Astals Cid d1b0e6d68a GIT_SILENT Upgrade KDE Applications version to 17.08.1. 2017-09-02 11:32:08 +02:00
Albert Astals Cid 56849e7092 GIT_SILENT Upgrade KDE Applications version to 17.08.0. 2017-08-08 20:19:03 +02:00
Christoph Feck 2df84c4cb4 GIT_SILENT Upgrade KDE Applications version to 17.07.90. 2017-07-31 01:56:45 +02:00
Albert Astals Cid 8ecba7f6c9 GIT_SILENT Upgrade KDE Applications version to 17.07.80. 2017-07-17 22:16:44 +02:00
Albert Astals Cid 6f758f7477 1.3.x for master 2017-07-17 20:38:34 +02:00
Albert Astals Cid bb547c5eed 1.2.x for KDE Applications 17.08.x 2017-07-17 20:37:44 +02:00
Albert Astals Cid 73e71ec383 GIT_SILENT Upgrade KDE Applications version to 17.11.70. 2017-07-17 20:35:15 +02:00
Andreas Sturmlechner 1177c2e1a8 Merge branch 'Applications/17.04' 2017-04-23 00:11:28 +02:00
Andreas Sturmlechner decb01292e Drop unused DBusAddons
REVIEW: 130099
2017-04-22 12:55:37 +02:00
Albert Astals Cid b23df4ef98 GIT_SILENT Update version 2017-04-12 14:33:35 +02:00
Albert Astals Cid 53c9eda733 GIT_SILENT Upgrade KDE Applications version to 17.04.0. 2017-04-12 13:41:25 +02:00
Albert Astals Cid ecbfe4151e GIT_SILENT Upgrade KDE Applications version to 17.03.90. 2017-04-05 21:57:09 +02:00
Albert Astals Cid 3df3c758c8 GIT_SILENT Upgrade KDE Applications version to 17.03.80. 2017-03-20 23:47:03 +01:00
Albert Astals Cid a0595e97df GIT_SILENT increase version a bit 2017-03-20 23:38:05 +01:00
Albert Astals Cid f95952e95c GIT_SILENT Upgrade KDE Applications version to 17.07.70. 2017-03-20 23:21:26 +01:00
Albert Astals Cid 63a08bc01a Enable -Wsuggest-override 2017-03-19 23:27:04 +01:00
Tobias Deiminger 0957abc39a Add annotation resize functionality
Usage:
If you left-click an annotation, it gets selected. Resize handles appear on the selection rectangle. When cursor is moved over one of the 8 resize handles on the corners/edges, the cursor shape changes to indicate resize mode. Everywhere else on the annotation means "move", just as it was before resize feature was added. Pressing ESC or clicking an area outside the annotation cancels a selection. Pressing Del deletes a selected annotation.

Feature is only applicable for annotation types AText, AStamp and AGeom.

Implementation:
It works by eventually changing AnnotationPrivate::m_boundary and notifying generator (i.e. poppler) about that change. Annotation state handling is shifted out of PageView into a new class MouseAnnotation (ui/pageviewmouseannotation.cpp). Some functionality not related to resizing but to annotation interaction in general is also shifted to class MouseAnnotation, to build a single place of responsiblity.

Other changes:
Add method Document::adjustPageAnnotation, backed by a QUndoCommand.
class Okular::AdjustAnnotationCommand.
Add Annotation::adjust and Annotation::canBeResized methods.
Draw resize handles in PagePainter::paintCroppedPageOnPainter.

Resize and move work
-for types AText, AStamp and AGeom
-on all pages of document
-when viewport position changes
-when zoom level changes
-for all page rotations (0°, 90°, 180°, 270°)

Selection is canceled
-when currently selected annotation is deleted
-on mouse click outside of currently selected annotation
-ESC is pressed

Viewport is shifted when mouse cursor during move/resize comes close to viewport border.
Resize to negative is prevented.
Tiny annotations are still selectable.
If mouse is moved over an annotation type that we can focus, and the annotation is not yet focused, mouse cursor shape changes to arrow.
If mouse cursor rests over an annotation A, while annotation B is focused, a tooltip for annotation A is shown.
Selected Annotation is deleted when Del is pressed.

Test for regressions:
-Annotation interaction (focus, move, resize, start playback, ...) are only done in mode EnumMouseMode::Browse.
-If mouse is moved over an annotation type where we can start an action, mouse cursor shape changes to pointing hand.
-If mouse is moved over an annotation type that we can't interact with, mouse cursor shape stays a open hand.
-If mouse cursor rests over an annotation of any type, a tooltip for that annotation is shown.
-Grab/move scroll area (on left click + mouse move) is prevented, if mouse is over focused annotation, or over AMovie/AScreen/AFileAttachment annotation.
-A double click on a annotation starts the "annotator".

REVIEW: 127366
BUG: 177778
BUG: 314843
BUG: 358060
2017-03-19 23:18:17 +01:00
Oliver Sander 3859fba07d Remove dependency on KActivities on Windows.
REVIEW: 130022
REVIEW: 126378
2017-03-18 01:58:47 +01:00
Christoph Feck 7a013e3869 Require KHtml only when building CHM generator
Reviewed by: aacid

Differential Revision: D4507
2017-02-10 02:57:06 +01:00
Albert Astals Cid 61fdea2c1f Merge remote-tracking branch 'origin/Applications/16.12' 2016-12-28 19:38:22 +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
Albert Astals Cid a3e0e630e2 Update version
GIT_SILENT
2016-12-09 23:00:22 +01:00
Albert Astals Cid 6e1d3bb1bc GIT_SILENT Upgrade KDE Applications version to 16.12.0. 2016-12-06 20:57:55 +01:00
Albert Astals Cid d248be4173 GIT_SILENT Upgrade KDE Applications version to 16.11.90. 2016-11-29 22:16:51 +01:00
Albert Astals Cid 306ca5f77b GIT_SILENT Increase version for master 2016-11-16 00:38:08 +01:00
Albert Astals Cid 235c43fc47 GIT_SILENT Upgrade KDE Applications version to 17.03.70. 2016-11-16 00:19:13 +01:00
Albert Astals Cid 7cddd9c359 GIT_SILENT Upgrade KDE Applications version to 16.11.80. 2016-11-15 23:49:21 +01:00
Albert Astals Cid fa680b6c04 Require Qt 5.6
This is not a dependency freeze break, it's just bringing cmake up to date with what the code already required

BUGS: 372339
2016-11-15 00:24:42 +01:00
Aleix Pol ebeeac8d72 Set the version to 1.0
Remove redundant version.h file in favor of the ecm-generated.
Use minor version from KDE_APPLICATIONS_VERSION_*

Reviewed by Albert Astals
2016-10-29 12:42:59 +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 ff274fdecc Remove kdelibs4support 2016-08-13 22:38:02 +02:00
Martin T. H. Sandsmark 85078160fa Use normal KDE compiler settings 2016-08-13 22:32:31 +02:00
Olivier CHURLAUD 411bdee0eb Open relative path again
REVIEW: 128507
2016-08-03 16:01:30 +02:00
Martin T. H. Sandsmark 68deb82a6f We need doctools 2016-07-24 23:44:49 +02:00
Martin T. H. Sandsmark 077258f235 (re-)Implement recoloring 2016-07-24 21:34:56 +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
Olivier CHURLAUD 741c616c7a Port most of part.cpp out of KDELibsSupport
minor: Change header cases : <qicon.h> becomes <QIcon>
2016-07-15 21:14:50 +02:00
Martin T. H. Sandsmark a1d2d8cac7 Undo mistake in last commit 2016-07-11 19:41:37 +02:00
Martin T. H. Sandsmark 243fc02cb9 Add some missing explicit dependencies 2016-07-11 19:40:49 +02:00
Thomas Friedrichsmeier df0c41212f Fix build with MinGW on Windows.
REVIEW: 127328
2016-03-16 10:57:34 +01:00
Armin K 568079625d cmake: Port to FindPoppler from extra-cmake-modules
REVIEW: 127049
2016-03-08 19:54:21 +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
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 db1c8ad751 Need new KF5 to get KPluginMetaData::mimeTypes 2016-01-30 16:49:37 +01:00
Aleix Pol 2c6cf868cf Let KDE*CompilerSettings change the policies in the project
As suggested in ECM documentation.
2016-01-28 14:59:01 +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
Michel Ludwig b939800fb7 Add logging categories file for kdebugsettings
REVIEW: 126589
2016-01-03 09:13:06 +01:00
Gleb Popov 0928298a74 Build okularpart as SHARED library when using MSVC, as using MODULE causes errors when linking to okularpart.dll.
REVIEW: 125792
2015-12-16 01:23:08 +01:00
Albert Astals Cid 450fff8818 Increase version for KDE Applications 15.12.0
And soversion of the core library sicne there's a new virtual in it
2015-12-07 23:31:12 +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
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
Albert Astals Cid 21dfb2127f See if this gives us coverage support 2015-08-27 00:05:06 +02:00
Albert Astals Cid d8f9800d28 Make the drawing tools be actions instead of tool buttons
3 benefits:
 * We can set the shortcut in the edit shortcuts dialog as before
 * Shortcuts can be activated without showing the topbar as before
 * Drawing in the toppbar is exactly as the other actions
2015-08-22 22:17:40 +02:00
Tobias Koenig 81f80ac3a4 Implement drawing quick selection tool for presentation mode
REVIEW: 124687
2015-08-22 22:17:40 +02:00
Alex Richardson 22b6d4551d Remove copy of qpagesize.cpp
No longer needed with Qt5
2015-08-15 19:28:06 +01:00
Marco Martin 5ba5e2189c rename from active to mobile 2015-08-05 16:54:48 +02:00
Albert Astals Cid c05f26c204 Revert needless KF5 dep increase
Laurent it'd be really great if you did read the emails i send you :)

CCMAIL: montel@kde.org
2015-08-05 00:27:36 +02:00
Marco Martin 2533561418 uncomment add_subdirectory(doc)
was disabled by mistake
2015-08-03 14:34:06 +02:00
Marco Martin f3698b6d69 port away from ViewSearch 2015-08-03 14:23:38 +02:00
Montel Laurent adde882203 increase version 2015-08-03 10:08:47 +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
Albert Astals Cid dafd8f6972 Bring QPageSize from Qt5
Allows us to not use a dummy printer for knowing page size
Which is nice since it won't block because Qt4 QPrinter is a bit weird sometimes

BUGS: 334708
FIXED-IN: KDE Applications 15.08
2015-07-30 12:45:55 +02:00
David Faure 8eb8cfcf1a set cmake_min_req to match kdelibs policy and enable newer cmake policies 2015-07-28 13:27:16 +02:00
Alex Richardson 5ecffc246b Set the CMake target name from Okular::okularcore to Okular::Core
REVIEW: 124381
2015-07-20 14:18:07 +01:00
Alex Richardson f9b90348ec Make the KF5 okular library coinstallable with the KDE4 version
The KF5 based library has been renamed to libOkular5Core.so so that
both can coexist in /usr/lib(64)

REVIEW: 124381
2015-07-20 14:18:03 +01:00
Alex Richardson ed352a06fb Install Okular5Config.cmake instead of OkularConfig.cmake
Otherwise Qt4 projects that have a find_package(Okular) can break
because CMake then selects moc from Qt5 which won't work

REVIEW: 124381
2015-07-20 14:17:38 +01:00
Saheb Preet Singh 8f5fecfd5b Revert "added layer-visible-on and layer-visible-off icon instead of checkboxes"
This reverts commit 288d3e4c1b.
2015-07-12 17:02:34 +05:30
Saheb Preet Singh 288d3e4c1b added layer-visible-on and layer-visible-off icon instead of checkboxes 2015-06-30 14:47:57 +05:30
Saheb Preet Singh bf673495fb added layers on the left sidebar 2015-05-27 19:26:56 +05:30
Alex Richardson dcf4d93abb Fix the export header not being found in interfaces/*.h
REVIEW: 123363
2015-04-16 00:54:32 +01:00
Andreas Cord-Landwehr ac258e49f1 Use generated version and CMake config files.
Replace both the package version file by a generated file, as well as
OkularConfig.cmake package configuration file.

Note that with this change the compatibility CMake variable OKULAR_FOUND
is not set anymore, use Okular_FOUND instead.

REVIEW: 123314
2015-04-15 21:55:35 +02:00
Alex Richardson 4a1c199e8e Remove unneeded target_include_directories() 2015-04-15 15:01:57 +01:00
Alex Richardson 475be2073a Fix INTERFACE_INCLUDE_DIRECTORIES for okularcore library 2015-04-15 14:56:37 +01:00
Alex Richardson cfc82ee9b0 Be explicit about the target dependencies 2015-04-14 20:04:26 +01:00
Montel Laurent 5e984303a4 Use new KDE_ macro 2015-03-04 07:52:20 +01:00
Montel Laurent 90b2f6c62c Fix install icons 2015-03-01 10:57:10 +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 dc06e72657 fix build and an unintended KScreen change 2015-01-29 21:52:31 +01:00
Lukáš Tinkl fd6a35486e port KUrl -> QUrl 2015-01-29 20:55:57 +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 da82ce77bc Prepare for Applications 14.12 release 2014-12-09 19:31:52 +01:00
Marco Martin 3d50fec102 initial port of QML components to QtQuick2
this is an initial port of the qml component set of okular to qtquick2

it's straightforward, except pageitem that right now is a qquickpainteditem, that works fine, but a bit slower than generating and uploading the textures by hand (that may be an eventual future port)

the okular active application is still missing, but the components can be used from anywhere in qml
REVIEW:121326
2014-12-02 20:41:16 +01:00
Hrvoje Senjan 6924fa4ef0 Fix make install 2014-10-28 11:04:01 +01:00
Montel Laurent 5da7c5f77d port to qCDebug. Autogenerate export headers 2014-10-27 22:35:06 +01:00
Montel Laurent 5eea4fd073 Rename to autotests 2014-10-19 18:21:07 +02:00
Montel Laurent 17a55c6dab Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	CMakeLists.txt
	core/document.cpp
	generators/poppler/CMakeLists.txt
	generators/poppler/generator_pdf.cpp
	generators/poppler/generator_pdf.h
2014-10-09 07:34:35 +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 67614e453f Minor 2014-10-06 08:58:55 +02:00
Montel Laurent 9cc0f6bc39 Increase ecm version 2014-10-01 07:22:07 +02:00
Frederik Gladhorn 9d89739972 Use categorized logging 2014-09-16 23:24:36 +02:00
Lukáš Tinkl c5819eec4d set translation domain 2014-09-10 22:30:50 +02:00
Fabio D'Urso 1fc4c747a6 Fix another rc install dir 2014-08-23 21:48:51 +02:00
Arnold Dumas 4298b6ebd5 Reenable doc generation.
REVIEW: 119804
2014-08-16 16:43:46 +02:00
Vishesh Handa a2e353d3cb kde4_add_ui_files -> ki18n_wrap_ui 2014-08-13 11:26:37 +02:00
Vishesh Handa 2bfa3ccff0 Port the CHM generator
Would be nice if I had some CHM files to test this on.
2014-08-13 11:24:15 +02:00
Vishesh Handa 7123b4d9d2 Port the tests 2014-08-12 23:36:11 +02:00
Frederik Gladhorn 56eb2ae952 Make cmake more kf5 compliant 2014-08-10 20:35:46 +02:00
Lukáš Tinkl b32306463c look for KF5 versions of libkscreen and kactivities 2014-08-10 17:40:24 +02:00
Frederik Gladhorn 0c7a45c7a5 Disable lots of stuff and compile
The text generator is the only one compiled now.
This version links for me but then doesn't find its KPart on startup.

TTS has been completely disabled as well as some other things like the
about dialog.
2014-08-10 14:42:54 +02:00
Frederik Gladhorn c4eedb68ea Disable text to speech 2014-08-09 21:29:06 +02:00
Frederik Gladhorn 19a73981ea Link Qt Svg 2014-08-09 21:29:06 +02:00
Frederik Gladhorn 51e5589e71 Phonon fix, good bye klocalsocket 2014-08-09 21:29:06 +02:00
Frederik Gladhorn a3fb02b881 Some more linking KF5 2014-08-09 16:16:32 +02:00
Frederik Gladhorn cf6de9bbd8 Enable building of all parts again 2014-08-09 12:47:33 +02:00
Frederik Gladhorn cebdf978ce Fix linking to KF5 libs 2014-08-09 12:46:36 +02:00
Frederik Gladhorn 39787e4324 Use kconfig_add_kcfg_files for kcfgc 2014-08-09 00:21:04 +02:00
Frederik Gladhorn 4f74ed01cf Disable qimageblitz usage 2014-08-08 23:48:00 +02:00
Albert Astals Cid 6e1a33554c Increase okularcore version since we've broken ABI 2014-08-08 22:45:09 +02:00
Frederik Gladhorn 5ab5212e21 Disable subdirs while porting core 2014-08-08 01:40:21 +02:00
Frederik Gladhorn 0ec27dda74 Add Qt5 printsupport module 2014-08-08 01:29:50 +02:00
Frederik Gladhorn 93918b1ec8 Basic cmake kf5 porting 2014-08-07 09:59:07 +02:00
Albert Astals Cid 34c73c3953 We've changed the ABI in 4.13 2014-03-26 20:35:22 +01:00
Michal Humpula f22d9d2897 Add Magnifier
REVIEW: 113973
GUI
2014-02-24 23:42:10 +01:00
Eugene Shalygin ed35594627 Use DPI of current screen for PDF rendering
Includes some fixes from Albert:
 * kscreen cmake fixes
   Don't make libkscreen mandatory, give the proper version we need
 * Fix the @since
 * Kill Resolution and use a QSizeF
   I first thought QSizeF didn't make sense, but well what's a dpi if not a number of pixels in width and some others in height?
 * Remove unwanted const
 * Remove unneeded utils.h includes
 * Fix comments on realDPIXY()
 * Make it compile in non X11

REVIEW: 111829
2014-01-13 01:37:56 +01:00
Nico Kruber 8c16e4a0b2 fix parttest not linking against okularpart on msvc
REVIEW: 114191
2013-12-09 18:46:36 +01:00
Fabio D'Urso 14703512b6 Merge remote-tracking branch 'origin/master' into configurable-review-tools 2013-05-18 19:34:37 +02:00
Azat Khuzhin 1fdb0a0a06 Font selector for TextDocumentGenerator
REVIEW: 109021
2013-05-18 16:03:33 +02:00
Fabio D'Urso 2e0296e913 Merge remote-tracking branch 'origin/master' into configurable-review-tools
Conflicts:
	ui/pageview.cpp
	ui/pageviewannotator.cpp
2013-04-19 01:17:56 +02:00
Albert Astals Cid 076e0cfaf8 More the commands to a different file 2013-04-06 00:39:35 +02:00
Albert Astals Cid 541650a4f4 Remove the concept of observer/view id
Just use the pointer as id :-)

This is BIC and SIC, increase the soversion now to makes sure we don't forget in the future

Patch based in an earlier patch by Bogdan Cristea <cristeab@gmail.com>
REVIEW: 109115
2013-02-24 23:01:02 +01:00
Fabio D'Urso 394cc00ac5 Initial implementation of widget to edit annotation tools
It only supports removal, moveup and movedown.
2012-12-28 10:19:05 +01:00
Fabio D'Urso 17ccabb691 Renamed "Identity" -> "Annotations" config panel
It only contained an option to set annotations' author name
2012-12-27 19:38:41 +01:00
Mailson Menezes f56c5a8ac9 Merge branch 'master' into tiled-rendering 2012-11-08 20:51:01 -03:00
Fabio D'Urso 437ddad588 Hide tiles manager within okularcore
Only the Tile class (tile.h) is visible from the outside
2012-11-08 20:26:17 -03:00
Bogdan Cristea 7ce6990098 Separate settings in core and non core
Will make it easier to make separate apps based on the core in the future
Note this will most probably break your settings if you are not running a very up to date kdelibs (4.9 or 4.10)
so be careful on updating
REVIEW: 104947
2012-10-16 00:28:29 +02:00
Marco Martin 5bcf1e8f35 Merge branch 'master' into mart/okularActive 2012-10-01 13:26:34 +02:00
Albert Astals Cid 23d474e6a9 I'll increase the number myself since tokoe seems to ingore my mails
CCMAIL: tokoe@kde.org
2012-09-06 18:59:26 +02:00
Tobias Koenig d3e0dadcac Introduce notifyCurrentPageChanged callback DocumentObserver interface 2012-09-06 08:46:10 +02:00
Tobias Koenig 8dbd83ab2a Implement support for poster image of videos in PDF documents
With this commit Okular will show a so called poster image for PDF documents
containing movie annotations. The image will be a screenshot of the first frame
of the video.

BUGS: 301603
REVIEW: 105890
FIXED-IN: 4.10.0
2012-08-19 12:23:47 +02:00
Marco Martin d11d5d8106 Merge branch 'master' into mart/okularActive 2012-07-31 13:32:05 +02:00
Mailson Menezes 9f3cf45e37 Rendering with a tiles manager
Currently it's only available for PDFs and does not support rotation.
2012-07-08 18:08:38 -03:00
Albert Astals Cid 7d3a064e15 New ABI compatible changes in okularcore 2012-05-23 20:26:01 +02:00
Fabio D'Urso 6f629e3237 CMakeLists: Install saveinterface.h 2012-05-21 23:54:48 +02:00
Marco Martin fd84427cc4 add a declarative plugin
two components:
Document, represents an Okular::Document
Page: represents an Okular::Page, once connected to a Document can display a single page
2012-05-14 20:37:22 +02:00
Albert Astals Cid 81c5c540df Update versions for KDE 4.8
(cherry picked from commit 51a77e6a51)
2012-01-18 18:04:31 +01:00
Dario Freddi bc182d3a00 Make Okular inhibit sleep and screen power management when in Presentation mode
REVIEW:103713
(cherry picked from commit 1a31dffca9)
2012-01-18 01:14:57 +01:00
Michel Ludwig d29099b39c Only activate a subset of the available features when the part is launched in viewer mode.
In viewer mode the part will now use a different XML GUI file (part-viewermode.rc).
Also, some actions won't be created, e.g. those used for exporting stuff, for
launching presentation mode, or for selecting parts of the document. The captions
of the configuration dialogs also contain the word 'viewer' then.
2011-10-12 20:36:01 +01:00
Michel Ludwig 1a5f2be05c Merge branch 'master' into viewerinterface 2011-10-12 20:16:46 +01:00
Niels Ole Salscheider 33b9ff1a36 Add LatexRenderer class 2011-09-22 19:09:26 +02:00
Michel Ludwig 0e29008150 Initial commit of the 'ViewerInterface' and of a first implementation. 2011-09-10 18:15:52 +01:00
David Faure 2c9794071a Port away from deprecated API + from deprecated lib 2011-08-10 01:48:01 +02:00
Pino Toscano e2e8ea721f bump okularcore library version to 1.7.0 2011-07-19 23:50:12 +02:00
Montel Laurent 71cc9b131c Fix compile with "-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS" 2011-06-05 13:19:15 +02:00
Pino Toscano 8951699475 cmake: remove the include dir hack, and put the source dir as first 2011-06-01 10:51:41 +02:00
Pino Toscano a87fb880c7 cmake: improve build system to make okular compile standalone 2011-05-29 11:31:22 +02:00