Commit Graph

481 Commits

Author SHA1 Message Date
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
Pino Toscano
e468048d54 bump okularcore library version to 1.6.0
svn path=/trunk/KDE/kdegraphics/okular/; revision=1212166
2011-01-05 23:36:40 +00:00
Albert Astals Cid
64063fe996 Alex says FindOkular.cmake is not the way to go and that we need to install an OkularConfig.cmake
That get_filename_component thing seems quite fragile and hacky to me but he is the expert :-)

CCMAIL: neundorf@kde.org

svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=1179984
2010-09-26 17:31:31 +00:00
Pino Toscano
a934ccf236 bump okularcore library version to 1.5.0
svn path=/trunk/KDE/kdegraphics/okular/; revision=1156083
2010-07-28 14:48:10 +00:00
Pino Toscano
e273cfe15f port SearchLineWidget to KPixmapSequence* and remove own AnimatedWidget
svn path=/trunk/KDE/kdegraphics/okular/; revision=1105224
2010-03-19 15:24:07 +00:00
Pino Toscano
f5585e12d8 bump okularcore library version to 1.4.0
svn path=/trunk/KDE/kdegraphics/okular/; revision=1082010
2010-01-29 14:38:21 +00:00
Pino Toscano
52ce4cc095 disable the (already unused) knewstuff2 stuff from compilation and installation
svn path=/trunk/KDE/kdegraphics/okular/; revision=1066279
2009-12-26 16:23:36 +00:00
Pino Toscano
27f6d2dd65 add the tests to the build
svn path=/trunk/KDE/kdegraphics/okular/; revision=1066277
2009-12-26 16:17:51 +00:00
Pino Toscano
b56b3c9160 bump okularcore library version to 1.3.0
svn path=/trunk/KDE/kdegraphics/okular/; revision=989173
2009-06-29 16:47:50 +00:00
Pino Toscano
e5b2b22d20 add a small widget for showing an animation from the "animations" category of the icon theme
similar to what KAnimatedButton does, but much simplier

svn path=/trunk/KDE/kdegraphics/okular/; revision=926295
2009-02-15 00:21:19 +00:00
Laurent Montel
975de758ba Now it compiles with enable-final
svn path=/trunk/KDE/kdegraphics/okular/; revision=908743
2009-01-10 11:53:35 +00:00
Laurent Montel
316ff85e8f They don't compile with enable-final
svn path=/trunk/KDE/kdegraphics/okular/; revision=908183
2009-01-09 12:27:14 +00:00
Pino Toscano
d2cde67548 bump minor number in okularcore library version
svn path=/trunk/KDE/kdegraphics/okular/; revision=907919
2009-01-08 22:00:19 +00:00
Laurent Montel
a831fd4628 Use QIMAGEBLITZ cmake module
svn path=/trunk/KDE/kdegraphics/okular/; revision=888269
2008-11-24 08:27:33 +00:00
Pino Toscano
4da5b7a105 Add a configuration page for the text editor used for source references links (that is, the ones used also for inverse search).
Factor out the editor commands structure.

svn path=/trunk/KDE/kdegraphics/okular/; revision=873570
2008-10-19 18:01:16 +00:00
Pino Toscano
6639ca47ec the okularpart uses phonon too now, so link to it
svn path=/trunk/KDE/kdegraphics/okular/; revision=851966
2008-08-25 02:29:36 +00:00
Pino Toscano
3ede96ef1b add a video widget class that encapsulates a Phonon video player and includes all the logic for repeated playbacks, media controls, etc
at the moment, it provides just playback and repeat mode

svn path=/trunk/KDE/kdegraphics/okular/; revision=851956
2008-08-25 01:26:47 +00:00
Pino Toscano
b95403b0b2 Add a preliminary and simple version of Movie object and MovieAnnotation.
CCBUG: 136574

svn path=/trunk/KDE/kdegraphics/okular/; revision=851145
2008-08-23 00:07:59 +00:00
Laurent Montel
64c0aa80e3 Tag as devel component
svn path=/trunk/KDE/kdegraphics/okular/; revision=825027
2008-06-27 07:04:23 +00:00
Dirk Mueller
087b268168 revert r813354, workaround for a source incompatibility problem
svn path=/trunk/KDE/kdegraphics/okular/; revision=813678
2008-05-28 13:15:23 +00:00
Pino Toscano
9a9553bb83 find and link to phonon
svn path=/trunk/KDE/kdegraphics/okular/; revision=813354
2008-05-27 13:42:34 +00:00
Pino Toscano
0b847d2926 start implementing properties and methods of the global JS 'app' object
svn path=/trunk/KDE/kdegraphics/okular/; revision=809367
2008-05-18 19:33:46 +00:00
Pino Toscano
19585b87f6 Start implementing the JavaScript scripting API for PDF documents,
thanks to Harri and Maksim and the brand-new public KJS API.

This starts the implementation of some of the API objects needed,
like App, Console, Data, Document, Field, FullScreen, Spell, Util.
Also, workaround the fact that we cannot change the read-only status for form fields.

svn path=/trunk/KDE/kdegraphics/okular/; revision=809259
2008-05-18 16:37:07 +00:00
Pino Toscano
5851ddf6a8 Start a View class for managing the "views" of a document.
Provide ways to register & unregister the view from a Document, and to get/set the view capabilities.

svn path=/trunk/KDE/kdegraphics/okular/; revision=801657
2008-04-27 11:05:59 +00:00
Pino Toscano
513c7cf225 Add a scripter class to execute scripts on request.
Trigger its execution at the document loading, if there are "top level" scripts,
and when a script action is activated.

svn path=/trunk/KDE/kdegraphics/okular/; revision=796637
2008-04-13 22:31:59 +00:00
Pino Toscano
cf1b9ea728 split the KParts extensions in an own file
svn path=/trunk/KDE/kdegraphics/okular/; revision=792473
2008-04-01 09:10:46 +00:00
Christian Ehrlicher
18e02c1c1c fix dbus location
svn path=/trunk/KDE/kdegraphics/okular/; revision=786204
2008-03-16 11:04:47 +00:00
Laurent Montel
e8eb8df0f1 Not necessary
svn path=/trunk/KDE/kdegraphics/okular/; revision=784450
2008-03-11 12:06:03 +00:00
Pino Toscano
a4da9a27dc Switch to use the generated interface from org.kde.KSpeech.xml, instead of manually call the functions.
Keep the TTS interface around (for multiple usage), and delete it when the KTTSD service goes away.

svn path=/trunk/KDE/kdegraphics/okular/; revision=782482
2008-03-05 10:18:55 +00:00
Pino Toscano
f407f84d8a move in an own class (out of the page view) all the TTS related code
svn path=/trunk/KDE/kdegraphics/okular/; revision=782420
2008-03-05 02:13:09 +00:00
Patrick Spendrin
8de31796b1 install okularcore and kolourpaint_lgpl to the now correct places.
svn path=/trunk/KDE/kdegraphics/okular/; revision=779538
2008-02-26 12:56:08 +00:00
Pino Toscano
7aceeecb4d bump libokularcore library version to 1.1.0
svn path=/trunk/KDE/kdegraphics/okular/; revision=773562
2008-02-11 11:07:14 +00:00
Pino Toscano
df3094a252 Add an installed header with the okular version as number and string (ala kdeversion.h);
use the version string in the about data.

svn path=/trunk/KDE/kdegraphics/okular/; revision=767247
2008-01-27 16:31:02 +00:00
Pino Toscano
ca5b6e6203 don't install observer.h, it's not needed for backends
svn path=/trunk/KDE/kdegraphics/okular/; revision=754904
2007-12-30 22:48:40 +00:00
Pino Toscano
288fce0b82 AnnotationGuiUtils -> GuiUtils
svn path=/trunk/KDE/kdegraphics/okular/; revision=752259
2007-12-24 00:54:21 +00:00
Pino Toscano
bd294e1de6 move the FilePrinterPreview to the kpart (no need for it to be in the core library)
svn path=/trunk/KDE/kdegraphics/okular/; revision=744225
2007-12-03 00:17:12 +00:00
Pino Toscano
2cd01094a7 remove the 'lib' prefix from the okularpart
svn path=/trunk/KDE/kdegraphics/okular/; revision=744170
2007-12-02 21:02:57 +00:00
John Layt
1b1ed9451b Enable Okular printing features:
* Add FilePrinter class to enable printing via postscript files
* DJVU, PDF, and PS backends print FilePrinter
* All backends enable printing of bookmarked pages
* Print and Print Preview actions enabled/disabled depending on backends
  printing ability

Note that FilePrinter only works on *NIX platforms with Cups, lpr, or lp.



svn path=/trunk/KDE/kdegraphics/okular/; revision=741990
2007-11-26 21:43:54 +00:00
John Layt
070285e039 Port from KPrinter to QPrinter, remove dependency on KDE4_KDEPRINT_LIBS.
*** Note this is not a complete port, most of the generators use the 
printFiles method which Qt 4.3 does not support, these have simply
been commented out until we find a solution.  At least it removes
the dependency so we can remove from kdelibs.

svn path=/trunk/KDE/kdegraphics/okular/; revision=725660
2007-10-15 23:01:27 +00:00
Pino Toscano
175cc2bce6 use the same about data for both the part and the shell, so:
- the part uses the same app share for its specific stuff
- no manual need to load another catalog ("okular") in the part

svn path=/trunk/KDE/kdegraphics/okular/; revision=720296
2007-10-02 22:42:59 +00:00
Pino Toscano
7eb8659d4f Add a tool button in the toolbar with the "select" actions.
Preparing a bit for separating rectangular text selection and rectangular image selection.

svn path=/trunk/KDE/kdegraphics/okular/; revision=712381
2007-09-14 10:02:33 +00:00
Tobias Koenig
9642e7ae5e Add proxy models for the AnnotationModel and port SideReviews
to it

svn path=/trunk/KDE/kdegraphics/okular/; revision=710330
2007-09-09 16:51:55 +00:00
Pino Toscano
a917f080e6 Create a model for the TOC, and use that for displaying the TOC of the document.
svn path=/trunk/KDE/kdegraphics/okular/; revision=710317
2007-09-09 16:15:33 +00:00
Pino Toscano
f770c6b542 Add a port of the kdelibs classes KTreeWidgetSearchLine* that use QTreeView/QModelIndex instead of TreeWidget/QTreeWidgetItem.
This way, we can really filter a tree view and avoid the limitations of QSortFilterProxyModel.

svn path=/trunk/KDE/kdegraphics/okular/; revision=710310
2007-09-09 15:50:00 +00:00
Pino Toscano
239434362e Basic version of a tree model for the document annotations.
It provides the items this way:

root
+ page 1
| + annotations for page 1
+ page 2
| + annotations for page 2
.. and so on
It does not return subtrees for pages without annotations.

svn path=/trunk/KDE/kdegraphics/okular/; revision=709946
2007-09-08 17:10:35 +00:00
Pino Toscano
05dc08d028 include the blitz include dir as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=709618
2007-09-07 22:57:17 +00:00
Albert Astals Cid
8d0b9b2832 KImageEffect::flatten -> Blitz::flatten
svn path=/trunk/KDE/kdegraphics/okular/; revision=709615
2007-09-07 22:52:11 +00:00
Albert Astals Cid
3f80eceaae Now (Qt 4.3.1) that QPainter::CompositionMode_Multiply works remove agg2 based code
Actually i think it's even a bit faster now

svn path=/trunk/KDE/kdegraphics/okular/; revision=708877
2007-09-05 22:01:04 +00:00
Pino Toscano
17ad0df66c New sidebar for okular.
The old sidebar had many problems and limitations, usability issues as well.
This new sidebar tries to simplify and solve many of these issues (like the navigability with the keyboard), with a better looking.
Of course, some glitches are still there, but easily solvable.

svn path=/trunk/KDE/kdegraphics/okular/; revision=697060
2007-08-06 17:24:10 +00:00
Pino Toscano
ca481df309 SVN_SILENT old stuff
svn path=/trunk/KDE/kdegraphics/okular/; revision=690056
2007-07-19 23:34:47 +00:00
Pino Toscano
301ab93196 Riactivate the very very very, and I underline very, experimental newstuff support we had before the KNS1 -> KNS2 switch:
- install a newstuff rc config, pointing to the NS1 stuff on okular.kde.org
- show the download dialog for newstuff, properly (hopefully) initialized
- proper linking for the okularpart

svn path=/trunk/KDE/kdegraphics/okular/; revision=690047
2007-07-19 22:27:45 +00:00
Laurent Montel
889031ab1d Remove not necessary cmake variable
svn path=/trunk/KDE/kdegraphics/okular/; revision=686601
2007-07-11 19:14:25 +00:00
Laurent Montel
f2ce8de556 Remove not necessary cmake variable (already defined
into lib dependancy)

svn path=/trunk/KDE/kdegraphics/okular/; revision=686187
2007-07-10 20:01:16 +00:00
Allen Winter
5110d1d3f2 remove kde4_automoc()
svn path=/trunk/KDE/kdegraphics/okular/; revision=686063
2007-07-10 14:11:49 +00:00
Pino Toscano
3a6e25e46a fontinfo.h needs to be installed as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=685327
2007-07-08 16:21:53 +00:00
Pino Toscano
e5037f45b1 Refator a bit the way Document and the generators use to read the font information from a document.
Instead of having a synchronous function that extracts all the information at once, use a function to read the fonts of a single page.
This way, we can get all the result step by step (aka page by page), and possibly in an asynchronous way.
The resuls of the font "scanning" are sent via signals, as well the end of the work.
So, instead of block waiting for the results of all the document at once, the Fonts tab in the properties dialog can have a progress bar with the progress, and the results (the fonts) that are added incrementally to the list.

Only two minor things are left:
- the process is always asynchronous at the moment, as the only generator that can provide this kind of information is the Poppler one (safe)
- there is no check for duplicate fonts
But they should be easy to solve.

svn path=/trunk/KDE/kdegraphics/okular/; revision=685002
2007-07-07 20:35:01 +00:00
Albert Astals Cid
2437917e47 Do not start numberOfPagesWithPixmaps threads because that brings the system down, just start what threadweaver thinks its best
Probably still have to tell the weaver how to optimize for memory consumption but it's an improvement anyways

svn path=/trunk/KDE/kdegraphics/okular/; revision=683383
2007-07-04 16:55:33 +00:00
Pino Toscano
0e9b82be96 get rid of the Xrender-related stuff
svn path=/trunk/KDE/kdegraphics/okular/; revision=666266
2007-05-19 10:51:16 +00:00
Stephan Binner
d4940f5a56 fix compilation
svn path=/trunk/KDE/kdegraphics/okular/; revision=659939
2007-05-01 05:28:28 +00:00
Pino Toscano
9bca223282 global.h must be installed as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=656760
2007-04-22 10:23:59 +00:00
Pino Toscano
166ba5b87a move the Generator::Private to a GeneratorPrivate, and move the implementations of the provate threads to a cpp
svn path=/trunk/KDE/kdegraphics/okular/; revision=656221
2007-04-20 17:17:44 +00:00
Laurent Montel
60054621c8 Add version (not install all develop package when
we install it on distro)

svn path=/trunk/KDE/kdegraphics/okular/; revision=656213
2007-04-20 16:12:05 +00:00
Pino Toscano
f3e484082d Link -> Action renaming.
Step #1: link.(cpp|h) -> action.(cpp|h)

svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
2007-04-20 11:26:05 +00:00
Pino Toscano
8f443fc5fd disable the old newstuff system, waiting for the porting to the new one
svn path=/trunk/playground/graphics/okular/; revision=649662
2007-04-02 23:36:00 +00:00
Pino Toscano
08ac5c5a06 simplify
svn path=/trunk/playground/graphics/okular/; revision=648027
2007-03-30 09:30:50 +00:00
David Faure
06d18ea3cc Make it possible to compile all of playground in one go (but also still to compile it like before, of course).
-> CMAKE_SOURCE_DIR replaced with CMAKE_CURRENT_SOURCE_DIR.
Remove module-wide config.h files, unused yet, but better remove the temptation.

svn path=/trunk/playground/graphics/okular/; revision=647336
2007-03-28 00:22:51 +00:00
Pino Toscano
36b894c75a Create a (private) PageController that handles the rotation jobs from all the pages.
This removes the needs for Page to be a QObject (it's the PageController that connects to the jobs and emits the right signals), so it again a "cheap" object.

svn path=/trunk/playground/graphics/okular/; revision=646010
2007-03-24 10:47:22 +00:00
Pino Toscano
6293345c95 okular_export.h and form.h must be installed as well
svn path=/trunk/playground/graphics/okular/; revision=643914
2007-03-18 19:25:04 +00:00
Christian Ehrlicher
c5c2da7c89 fix win32 compilation
warnings--

svn path=/trunk/playground/graphics/okular/; revision=643874
2007-03-18 17:14:36 +00:00
Pino Toscano
f55c401b20 Refactor the document search interfaces, as discussed on the mailing list.
Merge the search in normal mode and the type-ahead in a search bar that appears on the bottom of the page view. This should work nicely.
In presentation mode, add a small floating search toolbar that takes care of searching during the presentation mode, on document request. This is not working yet, but basically most of the work is done.

Please test and report any problems you find.

CCMAIL: okular-devel@kde.org

svn path=/trunk/playground/graphics/okular/; revision=643607
2007-03-17 22:58:41 +00:00
Pino Toscano
0ac881f1f3 isolate the search search bar in an own class (child of KLineEdit), so it can be used with no copy-paste job
svn path=/trunk/playground/graphics/okular/; revision=643508
2007-03-17 16:58:01 +00:00
Pino Toscano
24c56ef3d9 move most of the okular cmake configure stuff within the okular source tree
svn path=/trunk/playground/graphics/okular/; revision=641188
2007-03-10 13:15:49 +00:00
Pino Toscano
db8a10dc2c Preliminary supports for text and choice form fields.
This includes:
- the interfaces for the generators
- the basic widgets for editing their value
- a top bar for show/hide the forms of a document
- the implementation of the forms for the PDF backend
still nothing that can be done with them, nor the value of the forms can be saved...
... but it's a start! :-)

svn path=/trunk/playground/graphics/okular/; revision=637001
2007-02-25 00:07:59 +00:00
Pino Toscano
1e7cb0b2eb First version of an audio player for okular, able to play the sounds in the documents.
At the moment is quite simple and works only for external sounds.
Activate the sound playing when processing links and when switching pages in presentation mode only.

svn path=/trunk/playground/graphics/okular/; revision=630315
2007-02-05 00:49:40 +00:00
Pino Toscano
92ea1bba69 Last step of the ThreadedGenerator -> Generator merge: remove the old files and rename the used file.
svn path=/trunk/playground/graphics/okular/; revision=628856
2007-01-31 18:41:21 +00:00
Pino Toscano
d3619da584 get rid of two CMakeLists.txt's used to only install one files each - install the stuff from the top-level CMakeLists.txt
svn path=/trunk/playground/graphics/okular/; revision=627106
2007-01-25 18:06:53 +00:00
Tobias Koenig
d227a94e79 First part of the porting to a threaded api for generators
- made comicbook, tiff and kimgio a threaded generator

svn path=/trunk/playground/graphics/okular/; revision=626761
2007-01-24 15:06:45 +00:00
Tobias Koenig
e1ab8660ef Add new TextDocumentGenerator class, which is a base class for
generators which work on a QTextDocument. So all the nasty calculation
for text extraction and link/annotation positions is done by the
generator.

Ported FictionBook generator to it.


svn path=/trunk/playground/graphics/okular/; revision=623071
2007-01-13 23:15:28 +00:00
Pino Toscano
af8487c920 no need to link okularcore with kparts, kio is needed though
svn path=/trunk/playground/graphics/okular/; revision=622862
2007-01-13 13:06:10 +00:00
Pino Toscano
18fab3d130 Improve the way we deal with generators that give the possibility to change the size of the pages: instead of let them destroy and recreate the pages (bad), ask them the sizes they support, then do the work ourselves and notify the generator when the work is done.
While I was at it, I changed from "paper size" to "page size", it should be better.

svn path=/trunk/playground/graphics/okular/; revision=620411
2007-01-05 23:12:06 +00:00
Tobias Koenig
ea51ee18f5 Do a lot of include cleanups... we install all important
header files now

svn path=/trunk/playground/graphics/okular/; revision=619492
2007-01-03 14:30:48 +00:00
Tobias Koenig
2aa8a4c31b Moved SourceReference into its own file
svn path=/trunk/playground/graphics/okular/; revision=619076
2007-01-02 17:45:32 +00:00
Tobias Koenig
777877f2d2 Refactor the RMB menu for annotations, so we can use the menu for
the PageView and the SideReview.

BUGS: 137722

svn path=/trunk/playground/graphics/okular/; revision=617807
2006-12-30 12:40:54 +00:00
Pino Toscano
48a772be4b move the ui-related utils functions for annotations in an own utils class
svn path=/trunk/playground/graphics/okular/; revision=617097
2006-12-27 23:56:38 +00:00
Pino Toscano
539921bdf6 Improving the bookmark capabilities of okular.
Adding a BookmarkManager class that takes care of handling them in a proper way.
Adding a new tab in the sidebar to manage them:
- shows all the bookmarks in all the documents, or just in the current document
- cliking on a bookmark will bring to that bookmark, loading the document if necessary
- editing a bookmark title is possible either using F2 or right click -> Rename
- right click -> Remove to remove a bookmark
The only way to add new bookmark for the moment is the "old" way, ie right click -> Add bookmark, and it's not possible add more than one bookmark per page (but the system does not limit that).
The whole system should not be too difficult to understand, I will check with our usability master Florian next days.

svn path=/trunk/playground/graphics/okular/; revision=616979
2006-12-27 16:04:49 +00:00
Pino Toscano
349dfb7eb1 move the delegate used to draw the side page numbers in an own file
svn path=/trunk/playground/graphics/okular/; revision=616662
2006-12-26 12:01:30 +00:00
Pino Toscano
b663cb313c isolate the debug options in an own tab, so it's easier to show/hide them
svn path=/trunk/playground/graphics/okular/; revision=615758
2006-12-22 15:04:01 +00:00
Tobias Koenig
60ef83b026 Moved dummy implementation of DocumentObserver in observer.cpp,
so we are free to change behaviour later.

API & documentation cleanup

@pinto Can you check the comments please, whether they are correct?

svn path=/trunk/playground/graphics/okular/; revision=610731
2006-12-05 08:53:26 +00:00
Pino Toscano
11c5fdaeda the preferences dialog is not needed in the core library, but just in the kpart
svn path=/trunk/playground/graphics/okular/; revision=603930
2006-11-10 20:29:12 +00:00
Pino Toscano
5adbe4c66f there's no more need for libtool files
svn path=/trunk/playground/graphics/okular/; revision=603923
2006-11-10 20:03:50 +00:00
Tobias Koenig
bea71df6e0 * Made image rotation asynchronous
* Changed Page API and PagePainter to work only with QImage

svn path=/trunk/playground/graphics/okular/; revision=601581
2006-11-03 17:57:32 +00:00
Pino Toscano
a3fad9594f add a simple config page to configure the identity settings (only the author at the moment)
svn path=/trunk/playground/graphics/okular/; revision=601342
2006-11-02 22:47:52 +00:00
Pino Toscano
fdbd0101a4 move the AnnotatorEngine base class and the SmoothPath engine out of the private use of the page view annotator
svn path=/trunk/playground/graphics/okular/; revision=600980
2006-11-01 15:23:11 +00:00
Holger Freyther
569e93b929 oKular: Add method(s) to get the DPI of the primary screen
some generators use QX11Info to get the DPI of the display.
    Obviously this is not portable, add a getDpi? method to utils
    which can be used by generators.
    Currently only the DVI converter is converted.
    The CMakeLists.txt change assumes that non existing variables
    gets expanded to empty strings.

svn path=/trunk/playground/graphics/okular/; revision=600099
2006-10-29 15:08:18 +00:00
Laurent Montel
acb44a49d5 Apply Alex patch (now we can use enable-final argument
some module compiles with enable-final now)
As discussed with Alex it's not necessary to have program name
into automoc macro

svn path=/trunk/playground/graphics/okular/; revision=598341
2006-10-23 09:29:10 +00:00
Pino Toscano
a5d7d31d33 isolate the Xrender dependant code, so okular can be compile and work even without it
svn path=/trunk/playground/graphics/okular/; revision=596572
2006-10-17 21:26:43 +00:00
Albert Astals Cid
5143cd2512 Report page size
It's only reported in case it makes sense for the format
Only implemented for pdf atm
If all pages have the same size it's reported on document properties
else there's a label shown in the new bottom bar with the size of the current page

svn path=/trunk/playground/graphics/okular/; revision=595822
2006-10-15 19:37:14 +00:00
Laurent Montel
8c4c673073 Necessary to modify KDE4_ADD_KCFG_FILES to support ENABLE_FINAL
(there was not a dependancy between <name>_final.cpp file and
kcfg file => kfg files were never created)

Not necessary to rebuild all kdelibs just cp kdelibs/cmake/modules/KDE4Macros.cmake <path_kde4>/share/apps/cmake/modules

I ported all kde module (without enable-final argument, it compiles fines (test and program))
Don't try to use enable-final argument for the moment it doesn't compile (but dependancy works)
(I didn't test all compile for the moment I will fix all compile today (without enable-final argument)
kdelibs/kdepimlibs/kdebase/kdeutils compiles fine)

svn path=/trunk/playground/graphics/okular/; revision=595199
2006-10-13 13:55:33 +00:00
Laurent Montel
9f317e53ca Port to new kde4_automoc macro
Necessary to change KDE4_AUTOMOC macro to support
enable-final argument

(there was not a dependancy between <name>_final.cpp file and
moc generated files => moc files were never created)

Not necessary to rebuild all kdelibs just cp kdelibs/cmake/modules/KDE4Macros.cmake <path_kde4>/share/apps/cmake/modules

I ported and tested all kde module (without enable-final argument, it compiles fines (test and program))
Don't try to use enable-final argument for the moment it doesn't compile (but dependancy works)

Regards

svn path=/trunk/playground/graphics/okular/; revision=595060
2006-10-13 08:13:52 +00:00
Pino Toscano
cf33727105 Add the support for Sounds, links to sounds and opning/closing page actions (only in Page, not really working yet)
svn path=/trunk/playground/graphics/okular/; revision=593975
2006-10-09 18:02:59 +00:00