Commit graph

6402 commits

Author SHA1 Message Date
Fabio D'Urso
13fd564f7a Bound events routed to annotator engine within the locked page
In other words, this patch makes it impossible to draw annotations
outside the page boundaries.
2012-12-16 21:05:15 +01:00
Albert Astals Cid
55c413332e Don't ignore mouse movements on the annotator when not on the locked item
REVIEW: 107726
BUGS: 310572
(cherry picked from commit 1ef6929344)
2012-12-16 20:54:22 +01:00
Albert Astals Cid
1ef6929344 Don't ignore mouse movements on the annotator when not on the locked item
REVIEW: 107726
BUGS: 310572
2012-12-16 20:48:40 +01:00
Albert Astals Cid
7333dd143b Add some const to pageviewannotator.cpp 2012-12-14 20:06:10 +01:00
Albert Astals Cid
3ffb8eba9e Remove unused include 2012-12-13 18:32:52 +01:00
Fabio D'Urso
5b8d51d66e Fixed wrong index
BUG: 311601
2012-12-13 11:40:28 +01:00
Albert Astals Cid
3485faf6dd Merge remote-tracking branch 'origin/KDE/4.9' 2012-12-12 23:41:53 +01:00
Albert Astals Cid
2002e0a4b0 Do not ignore spaces on backwards search
This ports a change we made to the forward search 4 years ago...
7183c172c2 for more reference

BUGS: 311232
FIXED-IN: 4.9.5
2012-12-12 23:40:41 +01:00
Fabio D'Urso
c69be76122 Added comment to tell when the condition fixed by the previous patch happens 2012-12-12 23:32:03 +01:00
Mailson Menezes
466e402d9e Remove assertion of request normalized rect
normalizedRect is null if the requested page is not visible

BUG: 311238
2012-12-12 23:24:31 +01:00
Albert Astals Cid
7ba2f70453 Remove duplicated code 2012-12-12 22:23:17 +01:00
Albert Astals Cid
f70c31aed6 Some const 2012-12-12 22:23:17 +01:00
Fabio D'Urso
7cdc42a682 Hide widget annotations from the user (some other checks)
This patch also prevents the popup window from being opened on
double-click and the annotation tooltip from being shown.
2012-12-12 20:01:46 +01:00
Tobias Koenig
38861f5f57 Hide widget annotations from the user
Widget annotations are not meant to behave like "regular" annotations.
In particular, they must not be listed in the review panel or when the
user right-clicks on form fields.
2012-12-12 19:33:48 +01:00
Fabio D'Urso
4a1c43df66 Do not use pixmaps from tiled requests to calculate the contents bounding box 2012-12-12 19:33:48 +01:00
Fabio D'Urso
8f57ae5ec3 Removed unnecessary #ifdef HAVE_POPPLER_0_20
That block of code is already surrounded by an outer #ifdef HAVE_POPPLER_0_20
2012-12-12 19:33:48 +01:00
Script Kiddy
15a024f792 SVN_SILENT made messages (.desktop file) 2012-12-08 08:01:55 +01:00
Script Kiddy
a44fe0351e SVN_SILENT made messages (.desktop file) 2012-12-04 15:26:08 +01:00
Fabio D'Urso
9101f9b410 Two changes in PageView's zoom combobox
- Removed useless document->supportsTiles() check in setupBaseActions()
   setupBaseActions() is called only once, before a document is opened,
   therefore supportsTiles() always returns false
 - Show the 400% entry even when tiled rendering is not available, so
   that the last entry always corresponds to the maximum allowed zoom
   level (i.e. 1600% or 400% according to whether tiled rendering is
   available or not)
2012-12-01 01:34:54 +01:00
Fabio D'Urso
8decf29df9 Make "Reloading in progress" visible while the file is being reloaded 2012-12-01 01:16:59 +01:00
Fabio D'Urso
a0135a3c8e Fix reload of modified documents that take longer to be ready
SlotDoFileDirty tries to reload the file at regular intervals.
This patch fixes it so that it can actually reopen the file even if
it is not ready at the first timer shot.

BUG: 310531
2012-12-01 00:04:34 +01:00
Albert Astals Cid
4defea8674 Update version for beta2 2012-11-30 21:15:56 +01:00
Script Kiddy
548cfca8fc SVN_SILENT made messages (.desktop file) 2012-11-30 07:38:54 +01:00
Fabio D'Urso
71e3de577e Merge branch 'KDE/4.9' 2012-11-27 13:45:17 +01:00
Fabio D'Urso
d90db4502a DVI: Avoid unnecessary string operations if DEBUG_RENDER is not enabled 2012-11-27 13:44:50 +01:00
Albert Astals Cid
f1bf59c7b7 Merge remote-tracking branch 'origin/KDE/4.9'
Conflicts:
	VERSION
	core/version.h
2012-11-27 09:49:19 +01:00
Albert Astals Cid
57bc499c9a Update version 0.15.4 for 4.9.4 release 2012-11-27 09:47:08 +01:00
Luigi Toscano
8225b99c24 Merge remote-tracking branch 'origin/KDE/4.9' 2012-11-27 01:05:26 +01:00
Luigi Toscano
91e46331fd Fix word detection for DVI documents
This patch attempts to restore the functionalities broken by some changes
(maybe the text column selection code, it was broken also in 4.7).

Text search and text selection work (almost) properly again.

It uses a bit of heuristics to identify the end of a word and merge the
boxes which enclose each character of a word (so that
char_x.right==char_{x+1}.left).
It also tries to recognize if there is a newline ("after_space") after
that a space is found.

BUG: 302004
REVIEW: 107429
FIXED-IN: 4.9.4
2012-11-27 01:03:05 +01:00
Yuri Chornoivan
160e5928a5 Fix email to okular-devel 2012-11-24 09:36:46 +02:00
Script Kiddy
5c030d7871 SVN_SILENT made messages (.desktop file) 2012-11-24 07:31:07 +01:00
Yuri Chornoivan
5bbc87788e REVIEW: 107411\n\nAdd description of command line options to Okular documentation, add man page. 2012-11-23 21:15:19 +02:00
Script Kiddy
aeeb463235 SVN_SILENT made messages (.desktop file) 2012-11-21 06:57:06 +01:00
Script Kiddy
b38206612c SVN_SILENT made messages (.desktop file) 2012-11-20 15:21:13 +01:00
Script Kiddy
b4de423884 SVN_SILENT made messages (.desktop file) 2012-11-19 06:58:54 +01:00
Script Kiddy
36c8d7b167 SVN_SILENT made messages (.desktop file) 2012-11-18 06:58:27 +01:00
Pino Toscano
4e171fbbfe add missing ';' 2012-11-16 01:21:02 +01:00
Mailson Menezes
ce7d96dd96 Assert the request have a valid normalized rect 2012-11-15 21:11:45 -03:00
Mailson Menezes
c0ae3d2e9f Fix issues where some rotated tiles were rejected 2012-11-15 20:50:34 -03:00
Mailson Menezes
7528fb8c88 Change TilesManager::tilesAt use
- The second parameter has changed to an enum
 - Now Page::tilesAt only returns tiles with pixmaps
2012-11-15 20:41:17 -03:00
Mailson Menezes
66e93136f9 Limit zoom to 400% if document doesn't support tiles 2012-11-15 20:24:51 -03:00
Albert Astals Cid
12b6d1c3d3 Kill the ZoomFactor config
It was only used to return 1, that was then used in
CHMGenerator::textPage, that code still looks a bit fishy, but that was already there, it's just now that looks a bit more fishier
2012-11-15 23:45:01 +01:00
Fabio D'Urso
b6f47af50b pagepainter: Avoid unnecessary multiplications by reusing previously calculated value 2012-11-15 23:24:31 +01:00
Fabio D'Urso
629f4a362f pagepainter: Reverted two patches that changed positioning of elements on cropped pages
- "Fix annotation positioning when using tiles"
    3f1a186d0a.
- "Fix PagePainter issues"
    d90236b12d.
2012-11-15 23:24:25 +01:00
Fabio D'Urso
0a64022a61 pagepainter: Fix wrong positioning of tiles if trim margins is on
This patch breaks positioning of other objects, which will be fixed in the
next patch.
2012-11-15 22:48:08 +01:00
Albert Astals Cid
81bf02dc3c Update for beta1 release 2012-11-15 20:43:24 +01:00
Mailson Menezes
31195f03b3 Document ownership of pixmap in Tile 2012-11-12 13:11:34 -03:00
Mailson Menezes
d2d2fa3b2a Refactoring PageView 2012-11-12 13:11:34 -03:00
Mailson Menezes
b762e5f10e Fix issue where the tiles seemed to be deformed while rotating the page
Also, don't mark rotated pixmaps as dirty since we are already updating
them
2012-11-12 13:11:34 -03:00
Fabio D'Urso
d3eb739814 Merged TilesManager::setWidth and setHeight into a single setSize method 2012-11-11 21:39:23 +01:00