Commit graph

1540 commits

Author SHA1 Message Date
Montel Laurent 3b4ee788b8 Fix includes 2014-10-08 13:37:04 +02:00
Montel Laurent d3a3b2df25 Fix includes 2014-10-07 23:04:36 +02:00
Montel Laurent 08013f87d0 Port to QStandardPaths 2014-10-07 13:21:58 +02:00
Arnold Dumas d852a7bee0 Use new Q_OS_* macros. 2014-10-06 20:02:48 +02:00
Montel Laurent 26fc592e7d Fix includes 2014-10-06 08:31:17 +02:00
Montel Laurent 5557598b47 Port to QDialog 2014-10-06 07:39:24 +02:00
Montel Laurent d386ea257e Port to new connect api 2014-10-01 14:02:01 +02:00
Montel Laurent 378f6847a2 Remove some deprecated kdelibs4support 2014-10-01 07:27:09 +02:00
Arnold Dumas f8f90b15b3 Port away from KGlobal::caption(). 2014-09-26 20:04:00 +02:00
Raymond Wooninck f4badbc117 Port the aboutData to the new methods. Next would be to bring back
to About Backend dialog
2014-09-18 22:17:10 +02:00
Frederik Gladhorn 3581fb6245 Port to QTemporaryFile 2014-09-18 00:30:39 +02:00
Frederik Gladhorn dad6936896 Bring back the txt generator 2014-09-17 23:52:52 +02:00
Frederik Gladhorn 6c602bf0e7 Use categorized logging even more 2014-09-16 23:38:25 +02:00
Frederik Gladhorn 9d89739972 Use categorized logging 2014-09-16 23:24:36 +02:00
Frederik Gladhorn e28dbc6c00 Port to QMime
compressedMimeFor now already does the inheritance check, so another
check was removed.
2014-09-11 16:32:43 +02:00
Frederik Gladhorn 83d3f1f6b7 Revert "Some more kDebug->qDebug"
Seems like kDebug doesn't spam the user, so this needs to use qCDebug.

This reverts commit 34fbdf8c85.
2014-09-11 02:03:46 +02:00
Frederik Gladhorn 34fbdf8c85 Some more kDebug->qDebug 2014-09-09 18:17:36 +02:00
Albert Astals Cid 4335b6e509 douc++ 2014-09-09 11:44:33 +02:00
Frederik Gladhorn b79e706e56 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	generators/dvi/generator_dvi.cpp
	generators/ooo/generator_ooo.cpp
	part.cpp
	shell/main.cpp
	shell/shell.cpp
	shell/shell.h
	shell/shellutils.h
	tests/CMakeLists.txt
	ui/propertiesdialog.cpp
2014-08-14 13:35:43 +02:00
Albert Astals Cid f76184cb55 Revert e96dabc467
Diggory i think there was a misunderstanding in our discussion

The patch is unfinished (not goot to commit with a TODO)
and needs to be improved (need to find a way to not break ABI, QSize param should be const &) please
open a reviewrequest and we can discuss/finalize it there.

CCMAIL: diggory.hardy@unibas.ch
2014-08-13 21:07:32 +02:00
Diggory Hardy e96dabc467 Fix font size on high-DPI displays in ePub documents (but makes images small) 2014-08-13 18:54:30 +02:00
Vishesh Handa 46cf7e46a5 Port away from KUrl::List 2014-08-13 13:07:44 +02:00
Vishesh Handa e038950f50 KIcon -> QIcon 2014-08-13 11:54:49 +02:00
Vishesh Handa fb330dd45c Port the EPubGenerator 2014-08-13 11:42:09 +02:00
Vishesh Handa e4a4d400c3 Port the poppler generator 2014-08-13 11:16:28 +02:00
Albert Astals Cid e9e3d4a435 Make documentInfo be Hash based instead of XML based 2014-08-10 22:38:13 +02:00
Frederik Gladhorn ac15a7075e More QUrl porting 2014-08-10 20:36:41 +02:00
Frederik Gladhorn a2f6a136b2 Fix some typos 2014-08-10 19:27:31 +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 96b0e27c44 QAction, more includes fixed 2014-08-10 01:08:54 +02:00
Frederik Gladhorn 51e5589e71 Phonon fix, good bye klocalsocket 2014-08-09 21:29:06 +02:00
Albert Astals Cid efbde66009 Port to new threadweaver
Not sure it works at all, but at least it compiles ^_^
2014-08-09 20:44:25 +02:00
Frederik Gladhorn 643026fa65 Disable plugins for now 2014-08-09 16:16:32 +02:00
Frederik Gladhorn a3fb02b881 Some more linking KF5 2014-08-09 16:16:32 +02:00
Frederik Gladhorn 0de101fdde Bump version 2014-08-09 13:38:32 +02:00
Frederik Gladhorn c7e003d7bc Port to QCommandLineParser 2014-08-09 13:27:12 +02:00
Frederik Gladhorn 7a9036ec2b Fix wrong usage of pragma 2014-08-09 13:23:35 +02:00
Frederik Gladhorn e638e59c15 Fix bug: when opening look at available mime types
This code used to look at the reference count of the pointer, not the
number of available mime types as was intended.

CCMAIL: aacid@kde.org
2014-08-09 00:53:03 +02:00
Frederik Gladhorn 9eec8ece73 Disable dynamic translation loading 2014-08-09 00:52:15 +02:00
Frederik Gladhorn 935a3fdcf8 Fix wrong namespace for settings 2014-08-09 00:37:02 +02:00
Frederik Gladhorn 4efd432537 Disable PostScript printing 2014-08-09 00:26:26 +02:00
Frederik Gladhorn 0ba233788c Use moc include style dictated by automoc
While it's generally not a great idea to include moc files at least this
compiles.
2014-08-09 00:21:03 +02:00
Frederik Gladhorn 4f196da176 Include more kde4support 2014-08-08 23:48:20 +02:00
Albert Astals Cid a170e35ca8 Merge remote-tracking branch 'origin/KDE/4.14' 2014-08-08 22:42:12 +02:00
Albert Astals Cid 61c830cb7a Pass the command line options properly when using tabs or unique instances
Use a QString to serialize the command line options other than urls to open so it can be easily passed around to every place that opens a new shell or tab or overrides the content in a unique instance.

BUGS: 334100
FIXED-IN: 4.14.0
REVIEW: 119595
2014-08-08 22:35:53 +02:00
Frederik Gladhorn d16ac66ab3 Fix some QUrl usage 2014-08-08 02:00:17 +02:00
Frederik Gladhorn 75031eee7e Fix includes 2014-08-08 01:59:55 +02:00
Frederik Gladhorn fdf223494d Fix moc includes 2014-08-08 01:25:43 +02:00
Albert Astals Cid 35a3f23709 Merge remote-tracking branch 'origin/KDE/4.14' 2014-08-01 01:29:01 +02:00
Albert Astals Cid b7af929e5e Fix sporadic crash when running parttest
We use
  m_pageController
as guard for closing down instead of
  d->m_generator || d->m_closingLoop
since m_pageController is the first thing we set to 0 on closeDocument
2014-08-01 01:27:27 +02:00
Albert Astals Cid d30861fb1a Prepare for 4.14 RC 2014-07-30 19:32:33 +02:00
l10n daemon script 896de56ef0 SVN_SILENT made messages (.desktop file) 2014-07-25 05:38:42 +00:00
l10n daemon script 1b5cbbea59 SVN_SILENT made messages (.desktop file) 2014-07-24 04:51:37 +00:00
Albert Astals Cid 11ec9723e8 Merge remote-tracking branch 'origin/KDE/4.14'
Conflicts:
	VERSION
	core/version.h
2014-07-21 23:49:33 +02:00
Albert Astals Cid 60bcd3975d Prepare for 4.14 Beta 3 2014-07-21 23:48:44 +02:00
Albert Astals Cid 39de55eebf If the dpi calculations don't give a reasonably square pixel fallback to other methods
BUGS: 336018
FIXED-IN: 4.14.0
2014-07-20 22:30:49 +02:00
Albert Astals Cid f8cb4789fc Merge remote-tracking branch 'origin/KDE/4.14' 2014-07-17 01:55:12 +02:00
Albert Astals Cid 5002b26ed3 Some more debug 2014-07-17 01:54:54 +02:00
Albert Astals Cid d928c3d6ca Prepare for 4.14 Beta 2 2014-07-15 23:10:37 +02:00
Albert Astals Cid e07a7395d6 Merge remote-tracking branch 'origin/KDE/4.14' 2014-07-10 22:38:29 +02:00
Albert Astals Cid d0349e1f66 Merge remote-tracking branch 'origin/KDE/4.13' into KDE/4.14 2014-07-10 22:38:00 +02:00
Vadim Zhukov 846e746aa3 Fix compilation on OpenBSD/i386
REVIEW: 118950
2014-07-10 22:37:30 +02:00
Albert Astals Cid 88d99245b0 This is now 0.20.60 for KDE Applications 14.12 release 2014-07-09 01:41:20 +02:00
Albert Astals Cid 1932d3981b Merge remote-tracking branch 'origin/KDE/4.13' into KDE/4.14
And prepare for 4.14 beta 1

Conflicts:
	VERSION
	active/app/package/metadata.desktop
	core/version.h
2014-07-09 01:40:18 +02:00
Albert Astals Cid 478b41c365 Prepare for 4.13.3 2014-07-09 01:39:09 +02:00
Albert Astals Cid 15241c25ef Prepare for 4.13.2 2014-06-04 23:42:42 +02:00
Albert Astals Cid 268aa603eb Merge remote-tracking branch 'origin/KDE/4.13' 2014-05-15 20:18:50 +02:00
Albert Astals Cid 48b711002e Some more debug around this dpi stuff 2014-05-15 20:18:22 +02:00
Fabio D'Urso 3827df7dad Added missing emit keyords in core/documentcommands.cpp 2014-05-11 13:51:57 +02:00
Albert Astals Cid 86dd9e8801 Move the ooo wallet code to use the part.cpp one
Less widgets in generators/core \o/
2014-05-10 15:54:03 +02:00
Fabio D'Urso cebe8d6509 Merge remote-tracking branch 'origin/KDE/4.13' 2014-05-10 11:48:59 +02:00
Fabio D'Urso f7ec9df0af Don't leak temporary unpacked metadata files extracted from .okular files 2014-05-10 11:37:50 +02:00
Albert Astals Cid 7b7fef0bea Move the messagebox about continuing search from core to ui 2014-05-10 11:33:21 +02:00
Albert Astals Cid e759c94224 let's call it searchid, goes for better searching :) 2014-05-10 10:27:59 +02:00
Albert Astals Cid 4c553ac87f small docu fix 2014-05-10 10:26:30 +02:00
Albert Astals Cid c8697989a1 Do not duplicate the noDialogs storage in two structs 2014-05-10 10:09:38 +02:00
Albert Astals Cid 3c3d4373ab Do not reset the search if it's a different search id
Doesn't make any sense, why would we want a "running searches map" if we
always reset the previous one?

BUGS: 334568
FIXED-IN: 4.13.2
2014-05-10 10:07:23 +02:00
Albert Astals Cid 6bf6b14f3c Do not reset the search if it's a different search id
Doesn't make any sense, why would we want a "running searches map" if we
always reset the previous one?

BUGS: 334568
FIXED-IN: 4.13.2
2014-05-10 10:04:47 +02:00
Fabio D'Urso e514ddbf78 Added @since markers 2014-05-10 00:56:57 +02:00
Albert Astals Cid 630d3a8a5f Simplify search parameter passing 2014-05-10 00:49:01 +02:00
Albert Astals Cid b92f5b5188 remove old ifdefs, it's cool how we are now :) 2014-05-09 23:04:43 +02:00
Albert Astals Cid e93d5bda01 Move KWallet code from pdf backend to ui
This helps with the widget dependency removal in the core/backends
2014-05-09 19:58:43 +02:00
Albert Astals Cid 0c7791e87f Prepare for 4.13.1 2014-05-04 19:43:44 +02:00
Albert Astals Cid 60b7932c55 Merge remote-tracking branch 'origin/KDE/4.13' 2014-05-02 00:42:11 +02:00
Eugene Shalygin 88725241b8 Make sure edid and xrand sizes match before using them to calculate DPI
BUGS: 333456
2014-05-02 00:41:06 +02:00
Albert Astals Cid b3962b868e Merge remote-tracking branch 'origin/KDE/4.13' 2014-05-01 13:29:27 +02:00
Albert Astals Cid 9252044c0c KScreen::Config::current can return null 2014-05-01 13:27:19 +02:00
Albert Astals Cid 2c7baf1a9a Prepere for 4.13.0 2014-04-09 23:35:23 +02:00
Albert Astals Cid 0c2aa70aca Merge remote-tracking branch 'origin/KDE/4.13' 2014-04-02 23:44:22 +01:00
Albert Astals Cid a7f3a1ac37 Protect us against broken drivers/screens
Some drivers screens return 0x0 as their screen size so we can't use it
to calculate the dpi

BUGS: 332746
BUGS: 332494
FIXED-IN: 4.13.0
2014-04-02 23:43:38 +01:00
Albert Astals Cid 8ee72f3301 Merge remote-tracking branch 'origin/KDE/4.13' 2014-03-31 02:00:25 +02:00
Albert Astals Cid 444f66ac29 Some more output that can be of help 2014-03-31 02:00:09 +02:00
Albert Astals Cid 5f211f5646 Prepare for 4.13 RC 2014-03-25 20:25:17 +01:00
Albert Astals Cid 74d97571c3 Prepare for 4.12.4 2014-03-25 20:24:07 +01:00
Albert Astals Cid 6041d1fcd2 prepare for Beta3 2014-03-17 22:25:03 +01:00
Albert Astals Cid d175d829f2 Merge remote-tracking branch 'origin/KDE/4.13' 2014-03-12 23:08:04 +01:00
Christoph Feck 60cc5dc98e TextDocumentGenerator: Use black as default text color
REVIEW: 111681
BUGS: 253583
BUGS: 322547
FIXED-IN: 4.12.90
2014-03-12 23:01:42 +01:00
Albert Astals Cid 83c75c7d04 Prepare for 4.13 Beta 2 2014-03-11 19:48:44 +01:00
Albert Astals Cid 397557e458 Prepare for 4.13 Beta 1 2014-03-06 00:34:26 +01:00
Montel Laurent 5e16604fb3 Merge remote-tracking branch 'origin/KDE/4.13' 2014-03-02 14:00:25 +01:00
Montel Laurent 7b79ca1b36 Pedentic-- 2014-03-02 13:59:49 +01:00
Albert Astals Cid 9858322668 Merge remote-tracking branch 'origin/KDE/4.13' 2014-03-01 17:11:15 +01:00
Albert Astals Cid 3c79ac8ea1 Merge remote-tracking branch 'origin/KDE/4.12' into KDE/4.13 2014-03-01 17:03:23 +01:00
Albert Astals Cid a75a7ed086 Do not start a text generation thread if we're closing
Fixes occasional crash and makes no sense either :D
2014-03-01 17:01:14 +01:00
Albert Astals Cid b8778575f4 master is now 4.14 2014-02-28 00:12:35 +01:00
Albert Astals Cid 7829a47570 Prepare for 4.12.3 2014-02-28 00:10:30 +01:00
Jaan Vajakas a80922d45e Improve XY Cut layout recognition code
It was a simple bug in the XY Cut layout recognition code that made it too eager to see columns everywhere.
Also removed the dependence of the layout analysis algorithms on the display DPI (introduced by the recently added feature of using KScreen) to make their behavior more predictable and reproducible.

BUGS: 326207
BUGS: 331090
FIXED-IN: 4.13.0
REVIEW: 115759
2014-02-25 23:59:41 +01:00
Michal Humpula c07ee043a3 Multiple Tiles Managers per Page
It's straighforward implementation. Every single place, where there were call for (or with) TilesManager, now has a DocumentObserver as companion. The m_tiledManager reference in PagePrivate was changed to QMap<DocumentObserver, TilesManager>.

REVIEW: 113986
2014-02-19 23:41:22 +01:00
Albert Astals Cid 66c6432f5b Prepare for 4.12.2 2014-01-28 23:01:01 +01:00
Albert Astals Cid 8814a6fa3d Do not crash if we don't pass down a widget to show on 2014-01-13 01:47:31 +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
Albert Astals Cid 52ab967075 Add the error message for the error 2014-01-12 19:21:11 +01:00
Albert Astals Cid 0aec32fc7d Don't try to print something with invalid sizes
Unfortunately as we can't add new strings to stable versions it'd say "unwnown error" if that happens
Don't think it's too bad since this shouldn't be happening much

BUGS: 329562
2014-01-12 19:21:10 +01:00
Albert Astals Cid c324c532d1 Don't try to print something with invalid sizes
Unfortunately as we can't add new strings to stable versions it'd say "unwnown error" if that happens
Don't think it's too bad since this shouldn't be happening much

BUGS: 329562
2014-01-12 19:17:10 +01:00
Jan Kundrát 25d6407ffc Merge branch 'KDE/4.12' 2014-01-11 14:51:30 +01:00
Jan Kundrát 2bd0ec5fda The doesConsumeX method was defined but never used
Having functions which are defined but not used serves no gain. This patch
therefore removes the extra method and updates the comment reference in the
second one to make it standalone.

REVIEW: 114959
2014-01-11 00:25:28 +01:00
Jan Kundrát 677e0660fa Remove unused arguments
REVIEW: 114958
2014-01-11 00:25:09 +01:00
Albert Astals Cid 59e8643697 Prepare for 4.12.1 2014-01-09 00:27:35 +01:00
Albert Astals Cid 10b6560cf7 Merge remote-tracking branch 'origin/KDE/4.12' 2014-01-05 01:32:53 +01:00
Albert Astals Cid 9adbd054e4 Do not resetSearch if we're closing down
It's useless as it will be reset anyway on the close down procedure
and it will cause a crash if you are unlucky.

Reason:
  * In the document observers qset pageview comes before
  * We are closing and notifySetup with an empty vector
  * pageview empties its vector in notifySetip
  * part sees the notifySetup and resets the search
  * resetting the search calls another notifySetup with the non empty page vector
    that will be deleted asap when we go back to the first notifySetup

There are another billion ways to fix this:
 * Don't allow nested notifySetup
 * Clear the running searches before sending the first notifySetup
 * Empty the pagesVector before sending the first notifySetup
 * etc

But i feel this is the less invasive one (even if it may not be the most technically correct)

BUGS: 329582
FIXED-IN: 4.12.1
2014-01-05 01:32:19 +01:00
Jon Mease 43246c563b Viewport transition refinements for Find and Undo/Redo actions
REVIEW: 114060

This patch introduces viewport transitions for undo/redo actions on annotations and forms.  When an annotation/form action is undone/redone but the associated annotation/form is not currently visible, the viewport is updated to center on the undo/redo action. If the annotation/form is visible, the viewport is not updated.

The viewport transitions for the Find action have also been updated to this same algorithm.  Previously the viewport was moved to center on each matching search term even if the search term was already visible in the viewport. This lead to unnecessary viewport transitions if the search term matched several items in a single paragraph for example.

These proposed changes to the viewport transition behavior are consistent with the find and undo behavior of many existing applications including Kate, Open Office, and Foxit PDF Reader.
2013-12-29 23:27:30 +01:00
Albert Astals Cid 25f96c52ea Merge remote-tracking branch 'origin/KDE/4.12' 2013-12-15 23:47:49 +01:00
Albert Astals Cid 88e4bbbbf5 Merge remote-tracking branch 'origin/KDE/4.11' into KDE/4.12 2013-12-15 23:47:27 +01:00
Albert Astals Cid 5dfffec650 Make sure string passed to -J is no more than 255 bytes
lpr refuses to print referencing http://tools.ietf.org/search/rfc2911#section-4.1.2
Unfortunately cutting at 255 bytes may mess up the end of the name, but oh well
BUGS: 326617
FIXED-IN: 4.11.5
2013-12-15 23:46:27 +01:00
Albert Astals Cid 6c0299151f update for the release 2013-12-11 20:14:18 +01:00
Albert Astals Cid 7264e77407 Merge remote-tracking branch 'origin/KDE/4.12' 2013-11-28 00:06:37 +01:00
Albert Astals Cid 56c6b61311 Merge remote-tracking branch 'origin/KDE/4.11' into KDE/4.12 2013-11-28 00:06:13 +01:00
Albert Astals Cid 9c3165d214 Going back and forward in history may also change the page
So notify those that care about tha page and not about the viewport
2013-11-28 00:05:24 +01:00
Egor Matirov f98f55db9d Extend AudioPlayer so that it gives info about if something is playing at the moment or not
Reviewed by Jaydeep Solanki

REVIEW: 114019
2013-11-27 23:27:30 +01:00
Albert Astals Cid d2d4528bea Increase versions for 4.12 RC 2013-11-25 22:23:02 +01:00
Albert Astals Cid 7881731a2b Prepare for 4.11.4 release 2013-11-23 17:53:45 +01:00
Albert Astals Cid 78fa306931 Prepare for Beta3 2013-11-20 00:29:47 +01:00
Albert Astals Cid ff34a5e493 prepare for beta1 2013-11-04 23:17:10 +01:00
Albert Astals Cid b991b11ce2 increase devel version 2013-11-04 23:10:57 +01:00
Albert Astals Cid 5a1afc51e3 Pass down to lpr the printer margins
This makes automagically work the printing on printers with
hard-margins since the QPrinter dialog margins are initialized to the printer
hard-margins. If you still want the old and mostly unuseful
behaviour of not having any margin (and thus your printer not printing things on the borders) you
can always set the margins to 0 in the dialog

BUGS: 319476
FIXED-IN: 4.12.0
2013-10-29 21:25:54 +01:00
Albert Astals Cid e475ac9f4a prepare for 4.11.3 2013-10-26 11:54:43 +02:00
Jaydeep Solanki e9ccc4867b epub video support 2013-10-24 00:20:04 +02:00
Jaan Vajakas dff8bf1b36 Improve searching code
Also simplified code a bit by removing unnecessary calls to toLower in TextPagePrivate::findTextInternalForward and TextPagePrivate::findTextInternalBackward I also fixed a small bug: the letter capital I with dot above (U+0130) did not match itself in case-insensitive mode on Qt 4.8.4 (U+0130 still does not match lowercase i (U+0069), which can be considered another bug, that I didn't fix (although this behavior conforms to the Unicode case folding rules)).

(I did not implement the Knuth-Morris-Pratt algorithm that I promised in a comment of Bug 323263 because on second thought I find that the win, if any, would probably be negligible except for some very special documents and special query strings.)

BUGS: 323262
BUGS: 323263
REVIEW: 112135
2013-10-18 16:30:07 +02:00
Fabio D'Urso ad589985e1 Remove some unused #includes 2013-10-14 20:42:34 +02:00
Albert Astals Cid b1ac42bc55 Update for 4.11.2 2013-09-25 19:41:33 +02:00
Albert Astals Cid 1e24c32846 Update for 4.11.1 2013-08-28 22:49:02 +02:00
Albert Astals Cid dbecbedced Set version for 4.11.0 2013-08-06 22:54:47 +02:00
Albert Astals Cid b4a01564dc Merge remote-tracking branch 'origin/KDE/4.11' 2013-08-06 22:34:01 +02:00
Albert Astals Cid 3f1ec4cee7 Fix fictionbook loading
Prefer the backends that declare explicit support for a mime over the ones that get the support by inheritance
In the fictionbook case it was happening that application/x-fictionbook+xml inherits text plain
so when we ask for the fictionbook backend, we get both
the one that says
MimeType=application/x-fictionbook+xml;
and the one that says
MimeType=text/plain;
and then it happens that the second has bigger X-KDE-Priority

By prefering the ones that explicitely declare support for a mime we "fix" this

OTOH we may want to explore showing the backend selector if there's more than one by default

FIXED-IN: 4.11.0
2013-08-06 22:31:13 +02:00
Fabio D'Urso 77daa9627b Fix the issue exposed by the previous patch
Cherry-picked from a556126816

The patch de-singletons the PageController class.

The PageController is now per-document and it gets deleted when the
document is closed.

As consequence of this, the RotationJob's done signal will not be
delivered if the document has been closed, and thus this fixes the
crash.
2013-07-30 21:13:08 +02:00
Fabio D'Urso a556126816 Fix the issue exposed by the previous patch
The patch de-singletons the PageController class.

The PageController is now per-document and it gets deleted when the
document is closed.

As consequence of this, the RotationJob's done signal will not be
delivered if the document has been closed, and thus this fixes the
crash.
2013-07-30 20:40:40 +02:00
Albert Astals Cid 770374b09c Increase version for 4.11 RC2 2013-07-24 00:14:48 +02:00
Albert Astals Cid e3bd5116c5 Increase version for 4.11 RC1 2013-07-09 19:24:32 +02:00
Albert Astals Cid 4e4829a7dc Increase version for the devel version 2013-07-09 19:23:42 +02:00
Fabio D'Urso 850deab286 Allow selection of filled polygons through the filled region 2013-07-02 00:44:15 +02:00
Fabio D'Urso d77ed7e998 Fix HighlightAnnotation selection in rotated documents 2013-07-02 00:04:01 +02:00
Fabio D'Urso 5888f65a2e Allow selection of polygons through the segment that closes the path too 2013-07-01 22:19:28 +02:00
Fabio D'Urso 3c65f81fb9 Prefer annotations in the foreground in Page::objectRect 2013-07-01 22:06:46 +02:00
l10n daemon script 2e847d2f81 SVN_SILENT made messages (.desktop file) 2013-07-01 03:53:16 +00:00
Mailson Menezes d61c690bc0 Merge remote-tracking branch 'origin/KDE/4.10' 2013-06-24 21:56:56 -03:00
Mailson Menezes ff1168901f Fix issue of creating an annotation on tiles mode
Sometimes annotations created on tiles mode were not shown immediately.

What requestPixmaps do is given a PixmapRequest, change its
normalizedRect attribute so the rect is tile aligned. However
refreshPixmaps was creating a PixmapRequest with the rect already tile
aligned and then delivering the PixmapRequest to requestPixmaps, which
would trye to take the requested rectangle and change it so it is also
tile aligned. Since the PixmapRequest delivered by refreshPixmaps was
already aligned, the requested rectangle was inflated by the tile
alignment procedure. After that the generated request becomes bigger
than the defined threshold and is discarded. This patch actually
removes the tile alignment logic from refreshPixmaps and let only the
requestPixmaps handle this.
2013-06-24 21:53:59 -03:00
Albert Astals Cid f1fa1e0602 Prepare for 4.11 Beta 2 2013-06-24 21:55:05 +02:00
Albert Astals Cid 68c9299b02 Prepare for 4.10.5 2013-06-24 21:49:49 +02:00
Yuri Chornoivan 3b73357d2f Fix some typos found by Krazy2 2013-06-24 13:46:16 +03:00
Peter Grasch 4d4dd68ca2 Fix usability issues with selecting annotations
REVIEW: 109627
2013-06-23 19:22:21 +02:00
Albert Astals Cid e159522131 Merge remote-tracking branch 'origin/KDE/4.10'
Conflicts:
	core/document.cpp
2013-06-23 18:45:09 +02:00
Albert Astals Cid 15eb104d75 Don't preload pages if the generator is not Threaded
BUG: 318048
FIXED-IN: 4.10.5
2013-06-23 18:43:33 +02:00
Fabio D'Urso 3919ab0836 Merge remote-tracking branch 'origin/KDE/4.10' 2013-06-22 12:05:57 +02:00
Mailson Menezes 7a41ee5d50 Fix tiles issue when zooming out a rotated document
The issue can be reproduced by zooming a rotated document to 1600% then
back to 800%

REVIEW: 110905
2013-06-22 11:54:36 +02:00
Albert Astals Cid 1cf42813b4 Prepare for 4.11 Beta 1 2013-06-10 00:43:36 +02:00
Fabio D'Urso 3c7d61fc24 Removed TextDocumentSettingsWidget::font()
Generators can query the font via generalSettings()->font()
2013-06-07 00:45:47 +02:00
Fabio D'Urso a79351212d Removed TextDocumentGenerator::generalSettingsWidget()
Which is now useless because with the previous patch
TextDocumentGenerator no longer caches the widget.
2013-06-07 00:44:56 +02:00
Fabio D'Urso 3dd3a000db Don't crash if Configure Backends is opened again after it's been closed 2013-06-07 00:26:05 +02:00
Jon Mease b7ce9114c5 Undo support for PDF forms
Together with the already commited support for undo in annotations fixes 177501
BUGS: 177501
REVIEW: 110589
FIXED-IN: 4.11.0
2013-06-03 22:46:41 +02:00
Albert Astals Cid ccd889228e Prepare for 0.16.4 2013-05-28 20:17:31 +02:00
Yuri Chornoivan c32b130342 Some i18n fixes 2013-05-19 10:59:43 +03:00
Azat Khuzhin f30c8def7b Added missing core/textdocumentsettings_p.h 2013-05-18 17:44:11 +02:00
Azat Khuzhin 1fdb0a0a06 Font selector for TextDocumentGenerator
REVIEW: 109021
2013-05-18 16:03:33 +02:00
Albert Astals Cid bfbcbffc80 Merge remote-tracking branch 'origin/KDE/4.10'
Conflicts:
	generators/spectre/okularApplication_ghostview.desktop
2013-05-16 23:53:29 +02:00
Albert Astals Cid c9964acdc6 Fix clicking on notes being hard on high zooms
It is still not perfect because for some reason poppler is painting outside the boundaries box (or we are not creating/setting it correctly)
but at least now it's not ultra hard to click in a note application at high zoom

FIXED-IN: 4.10.4
BUGS: 319637
2013-05-16 23:51:11 +02:00
Jon Mease 2ae9e58bb4 Merge window.text, contents and inplaceText annotation properties
BUG: 319442
REVIEW: 110391
2013-05-14 09:43:27 +02:00
Jon Mease 4296ac7e5d Rotate annotation to match page when setting annotation's properties
BUG:318828
REVIEW:110229
2013-05-07 22:06:00 +02:00
Fabio D'Urso c95e8afc43 Merge remote-tracking branch 'origin/KDE/4.10'
Conflicts:
	core/document.cpp
2013-04-26 00:07:09 +02:00
Fabio D'Urso 9812f5277e Do *not* swap width and height in DocumentPrivate::refreshPixmaps
They must not be swapped, because generators already swap them on their
own, and swapping them twice results in distorted pixmaps.

BUG: 318829
FIXED-IN: 4.10.3
2013-04-25 23:57:06 +02:00
Albert Astals Cid 61f0760518 Prepare for 0.16.3 2013-04-25 19:48:35 +02:00
Script Kiddy cbc693b664 SVN_SILENT made messages (.desktop file) 2013-04-20 09:48:58 +02:00
Albert Astals Cid f24445a6e2 Merge remote-tracking branch 'origin/KDE/4.10' 2013-04-17 22:13:34 +02:00
Albert Astals Cid f7b742af0d Rename the variable
Makes it easier to understand, imho
2013-04-17 22:13:02 +02:00
Albert Astals Cid 2abe5fa9ef Do yet another attempt at finding the correct mimetype
Makes
okular http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/digital-editions/assets/welcome.epub
work
2013-04-17 22:00:02 +02:00
Albert Astals Cid f03d68128b Merge remote-tracking branch 'origin/KDE/4.10'
Conflicts:
	generators/spectre/okularApplication_ghostview.desktop
2013-04-17 21:03:13 +02:00
Albert Astals Cid a6d53df7ac fix indent 2013-04-17 21:02:32 +02:00
Jon Mease 3c6140b616 Fix Undo / Redo of annotation creation doesn't properly handle page rotation and adds undo unit tests
BUG: 318091
REVIEW: 109989
2013-04-13 22:54:47 +02:00
Albert Astals Cid 076e0cfaf8 More the commands to a different file 2013-04-06 00:39:35 +02:00
Albert Astals Cid d0fd156dc9 Minor tweaks 2013-04-06 00:28:39 +02:00
Jon Mease 78faf1e68f Add undo/redo support for annotations
REVIEW: 107442
2013-04-06 00:22:48 +02:00
Albert Astals Cid 88d36fa27f Update version for 4.10.2 2013-03-26 20:31:53 +01:00
Albert Astals Cid 04c3b836ff Merge remote-tracking branch 'origin/KDE/4.10'
Conflicts:
	generators/spectre/okularApplication_ghostview.desktop
2013-03-14 23:09:57 +01:00
Albert Astals Cid 3f3f82afa1 Fix my email address 2013-03-14 23:09:07 +01:00
Albert Astals Cid 7bfc3a42bc Update versions for 4.10.1 2013-02-27 23:14:24 +01: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
Script Kiddy a034e086e5 SVN_SILENT made messages (.desktop file) 2013-02-08 08:27:14 +01:00
Script Kiddy 23e88b8605 SVN_SILENT made messages (.desktop file) 2013-02-05 21:28:25 +01:00
Script Kiddy ba79674de9 SVN_SILENT made messages (.desktop file) 2013-02-05 16:52:55 +01:00
Albert Astals Cid 2cab1c0a42 Update versions for 4.10.0 2013-01-28 23:53:31 +00:00
Script Kiddy be60fbf64d SVN_SILENT made messages (.desktop file) 2013-01-23 08:25:54 +01:00