Commit graph

98 commits

Author SHA1 Message Date
Pino Toscano 44aa2d7088 Globally store an icon loader different that the global one (eg the KPart one);
this way we can load our custom icons when embedded in other shells than ours.

svn path=/trunk/KDE/kdegraphics/okular/; revision=752473
2007-12-24 15:02:32 +00:00
Pino Toscano 4cbfcb582b for now, paint the external annotations as well, as we have no way to know whether the general is able to paint them
svn path=/trunk/KDE/kdegraphics/okular/; revision=736321
2007-11-13 23:03:22 +00:00
Albert Astals Cid 498c0fc0e0 QPixmap::toImage does not always give us QImage::Format_ARGB32_Premultiplied so enforce it
svn path=/trunk/KDE/kdegraphics/okular/; revision=722225
2007-10-06 23:04:28 +00:00
Pino Toscano 6e6eaab798 when drawing a normalized path, use a polygon to draw the path when the path has no filling
svn path=/trunk/KDE/kdegraphics/okular/; revision=720899
2007-10-03 23:48:38 +00:00
Pino Toscano bdcfe1ee03 proper graphics-viewer-document icon
svn path=/trunk/KDE/kdegraphics/okular/; revision=720714
2007-10-03 14:50:20 +00:00
Rafael Fernández López 396bcc107b Code adaptation because of changes on libraries related to revision 719630
svn path=/trunk/KDE/kdegraphics/okular/; revision=719644
2007-10-01 15:10:42 +00:00
Pino Toscano aa4ca4d9b3 always fill the page with the paper color, so page pixmaps with alpha does not cause garbage to be left on the page
svn path=/trunk/KDE/kdegraphics/okular/; revision=715954
2007-09-23 15:30:31 +00:00
David Faure 4f98f7b436 Build - BLITZ_INCLUDES includes the qimageblitz/ subdir already.
svn path=/trunk/KDE/kdegraphics/okular/; revision=711023
2007-09-11 07:36:54 +00:00
Pino Toscano f2b06de9fc don't draw external annotations (the backend told us it draws them)
svn path=/trunk/KDE/kdegraphics/okular/; revision=710783
2007-09-10 21:34:07 +00:00
Pino Toscano 18afc2df79 SVN_SILENT dead code
svn path=/trunk/KDE/kdegraphics/okular/; revision=710640
2007-09-10 14:26:42 +00:00
Pino Toscano de70e1355f when drawing an inline text annotation, instead of manually scaling the 1:1 image to the page (resulting a bit ugly), scale the font drawing when drawing on the image at the zoomed size
svn path=/trunk/KDE/kdegraphics/okular/; revision=710631
2007-09-10 13:58:08 +00:00
Pino Toscano df27f63497 Highlight annotations: do not draw a solid border around them, and take into account the alpha value.
svn path=/trunk/KDE/kdegraphics/okular/; revision=710543
2007-09-10 08:51:43 +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
Aaron J. Seigo a8e576712e kiconloader fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=691642
2007-07-24 05:42:32 +00:00
Pino Toscano e0274514ff When paiting an empty page (because there are no pixmaps for it), then fill with a color conforming with all the accessibility settings (not just the paper color).
svn path=/trunk/KDE/kdegraphics/okular/; revision=665774
2007-05-17 20:48:41 +00:00
Albert Astals Cid c4f3580d28 commit the code that will replace the AGG based code once QPainter works
http://www.trolltech.com/developer/task-tracker/index_html?id=158815&method=entry
for more information

svn path=/trunk/KDE/kdegraphics/okular/; revision=656841
2007-04-22 14:01:03 +00:00
Pino Toscano 2577cf1773 convert the busyPixmap from KStaticDeleter to K_GLOBAL_STATIC
svn path=/trunk/KDE/kdegraphics/okular/; revision=656418
2007-04-21 10:44:18 +00:00
Pino Toscano 5f21b15d99 Link -> Action renaming.
Step #2: Link -> Action for the action hierarchy, and for the ObjectRect type.

svn path=/trunk/KDE/kdegraphics/okular/; revision=656140
2007-04-20 12:37:12 +00:00
Albert Astals Cid 0d47b62715 krazy include order issues
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
2007-04-19 18:30:20 +00:00
Pino Toscano 95bb597a85 hide the text selection inside the private class of Page
svn path=/trunk/playground/graphics/okular/; revision=648095
2007-03-30 14:08:20 +00:00
Pino Toscano 229f3cf1de add a private function for the nearest Page pixmap, for the PagePainter usage;
this way, the pixmap structure can be finally hidden in the private class

svn path=/trunk/playground/graphics/okular/; revision=646502
2007-03-25 22:36:41 +00:00
Laurent Montel 34edbef72d Port to new api
svn path=/trunk/playground/graphics/okular/; revision=621624
2007-01-09 11:02:04 +00:00
Pino Toscano 652787611d make it build with the new kdelibs
svn path=/trunk/playground/graphics/okular/; revision=619217
2007-01-03 00:17:31 +00:00
Pino Toscano dff36b98f8 simplify RegularAreaRect by avoiding the usage of pointers, as they don't give benefits anyway.
Fixing also the text extraction when using the rectangular selection across two or more pages.

svn path=/trunk/playground/graphics/okular/; revision=616264
2006-12-24 18:19:18 +00:00
Tobias Koenig 6f9d0df5cd Further annotation API cleanup
svn path=/trunk/playground/graphics/okular/; revision=612395
2006-12-11 07:59:02 +00:00
Tobias Koenig a9f58440df First large commit for the Annotation API cleanup
* Moved all public member variables of Annotation to private
    and add accessors
  * Renamed RevScope and RevType to RevisionScope and RevisionType
  * Add API documentation (@pino, please review)

svn path=/trunk/playground/graphics/okular/; revision=610749
2006-12-05 11:05:50 +00:00
Tobias Koenig 57139e3192 API cleanup (utils.h), renamed getDpiX -> dpiX() and getDpiY -> dpiY()
svn path=/trunk/playground/graphics/okular/; revision=608236
2006-11-27 08:13:47 +00:00
Albert Astals Cid ccbd55a036 don't look twice in the map
svn path=/trunk/playground/graphics/okular/; revision=606547
2006-11-20 19:07:45 +00:00
Tobias Koenig 893d6a4280 Missed this occurence of inkPaths which lead to a crash/assert...
svn path=/trunk/playground/graphics/okular/; revision=606525
2006-11-20 17:39:27 +00:00
Tobias Koenig a490cc0cd7 Add the following functionality:
* Bring QPixmap* back to make Albert happy ;)
 * Store only one QPixmap per page/size and rotate it directly
 * Rotate ObjectRects (boundary)
 * Rotate Annotations (point coordinates)
 * Don't reload pixmaps, ObjectRects and annotations on rotation

svn path=/trunk/playground/graphics/okular/; revision=606371
2006-11-20 07:53:32 +00:00
Pino Toscano 0f4884e7fc make the agg drawing routine take into account the opacity value for both pena dn brush color, and paint the ink annotation using also the specified opacity level
svn path=/trunk/playground/graphics/okular/; revision=606104
2006-11-19 10:44:00 +00:00
Pino Toscano e5e7393e22 the opacity value applies also to the brush color
svn path=/trunk/playground/graphics/okular/; revision=606027
2006-11-19 01:27:18 +00:00
Pino Toscano 44a69612ef Make okular able to construct and display Geometric (Rectangle/Ellipse) Annotations.
Extended the annotation properties dialog to choose the type (rect/ellipse) or the color for the inner part.
Added a button in the review toolbar to construct a cyan ellipse.

svn path=/trunk/playground/graphics/okular/; revision=606023
2006-11-19 00:46:01 +00:00
Tobias Koenig 57a240aca8 Replace cropImageOnImage by a simple QImage::copy()
svn path=/trunk/playground/graphics/okular/; revision=605194
2006-11-15 20:02:51 +00:00
Pino Toscano eb63c03bd5 we can draw inplace text annotation fully transparent, and be sure to use the alpha color when painting them
svn path=/trunk/playground/graphics/okular/; revision=604208
2006-11-12 00:48:30 +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 08eab9344b fix the drawing of two highlight annotations
svn path=/trunk/playground/graphics/okular/; revision=599965
2006-10-29 09:50:57 +00:00
Pino Toscano ed84916c0d spell checking
svn path=/trunk/playground/graphics/okular/; revision=597875
2006-10-21 22:07:05 +00:00
Albert Astals Cid a9a27a9894 remove qt3 support calls
svn path=/trunk/playground/graphics/okular/; revision=588888
2006-09-27 10:04:17 +00:00
Pino Toscano 42310e184c Restructuring a bit how the text-editor-like selection works:
* putting it in an own view mode
* associating the selection to every page
* using a better algorithm to calculate the selection, even in a page range
* moving its drawing from the page view to the page painter, so it's possibile to draw it just like it's done with eg annotations

Other changes (more or less related):
* moved the annotation popup to a better place, so it won't interfere with annotation drawing
* commented some debug code in TextPage

svn path=/trunk/playground/graphics/okular/; revision=588795
2006-09-26 22:22:01 +00:00
Tobias Koenig df7d144c10 Moved all classes in core/ into the 'Okular' namespace and removed
nearly all references to kpdf (knewstuff still missing).

svn path=/trunk/playground/graphics/okular/; revision=586993
2006-09-21 08:45:36 +00:00
Pino Toscano 1773275615 draw the icon of a linked text annotation always with a fixed, regardless of zoming
svn path=/trunk/playground/graphics/okular/; revision=586286
2006-09-19 10:19:13 +00:00
Dirk Mueller 89bacb77bb compile++
svn path=/trunk/playground/graphics/okular/; revision=586265
2006-09-19 09:09:30 +00:00
Pino Toscano a5ee705911 Annotations:
reverting back the drawing of InPlace Text annotations to the unbuffered ones, but with a more clever behaviout than before:
- the text is drawn wrt the size of the page, and thenscaled to the real annotation boundary size. this makes the drawing of the annotation more similar to the page layout
- the bounding rectangle is drawn to be max 1pixel wide: if the drawn page is smaller than the page, then the rect is scaled along with the text, otherwise it's drawn after the scaling, so it won't appear huge at high levels of zoom
The AnnotationEngine's had to be modified by adding a page pointer parameter to the event() function, necessary to compute correctly the bounding rect of an inline text annotation.

svn path=/trunk/playground/graphics/okular/; revision=585289
2006-09-16 21:16:58 +00:00
Pino Toscano 2202f9cf3e Annotations:
- draw the leader lines (and the extensions) for Line annotations that have them
- add a config widget for setting their length in Line annotations

svn path=/trunk/playground/graphics/okular/; revision=585212
2006-09-16 14:58:32 +00:00
Albert Astals Cid 5fda8d50b8 did not want to commit that
svn path=/trunk/playground/graphics/okular/; revision=584935
2006-09-15 21:12:25 +00:00
Albert Astals Cid 4e04b301f1 Almost foget to fordwardport r582561
Fix bug 133507 that prevented the correct restoring of the document viewport on session restore for remote documents

svn path=/trunk/playground/graphics/okular/; revision=584932
2006-09-15 21:08:48 +00:00
Pino Toscano 8357b47a8c Annotations:
support the Hidden and DenyDelete flags

svn path=/trunk/playground/graphics/okular/; revision=584409
2006-09-14 18:42:28 +00:00
Pino Toscano 15baef171e Annotations:
- improve the icon loading strategy for Stamp and Text(Linked) annotations: first look where we have the custom icons, then in the system place(s)
- add a simple (for now) TextAnnotationWidget to change the icon of a Linked Text annotation

svn path=/trunk/playground/graphics/okular/; revision=583882
2006-09-13 18:19:22 +00:00