Albert Astals Cid
24b20c5521
do not trust kdelibs to give a pixmap even if we ask for it since sometimes it fails
...
BUGS: 230282
svn path=/trunk/KDE/kdegraphics/okular/; revision=1106763
16 years ago
Pino Toscano
f31db87a63
add a ExternallyDrawn flag to mark annotations which are drawn elsewhere (eg by the generator)
...
mostly useful with External annotations, it is not applied yet
svn path=/trunk/KDE/kdegraphics/okular/; revision=1068014
16 years ago
Laurent Montel
c2fc9836e8
Fix iterator
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
18 years ago
Pino Toscano
fba08521c0
consider annotBoundary as boundary *without* cropping to the requested limits
...
this should fix drawing problems with note, stamp, and geometric annotations
BUG: 160396
svn path=/trunk/KDE/kdegraphics/okular/; revision=870163
18 years ago
Pino Toscano
f80f5ca79c
insolate the "stamp+icon" loading method in an own function
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=862778
18 years ago
Jakob Petsovits
df5364da6c
Copy Okular's app icon from Oxygen core as "okular",
...
in the hicolor namespace. Before, the non-specified
"graphics-viewer-document" icon was used, which caused
icon loaders from other toolkits not to find this icon
as they don't consider Oxygen by default.
Also update all the references that made use of the
"graphics-viewer-document" icon in the code and
the many .desktop files.
svn path=/trunk/KDE/kdegraphics/okular/; revision=819965
18 years ago
Pino Toscano
a921cca1f0
finish painting before assigning to another image
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=817856
18 years ago
Pino Toscano
2b971b07b2
Make it possible to draw just sections (crops within bounding boxes) of pages.
...
Separated normal & cropped geometries in page items;
made the page painter able to draw based on a crop section;
add a config + menu option for turning the white borders removal.
Based on a patch by the Mr. anonymous kde2eran@tromer.org, thanks.
BUG: 161599
svn path=/trunk/KDE/kdegraphics/okular/; revision=809496
18 years ago
Pino Toscano
13e05a7894
factorize the creation of pens with "standard" annotation style settings
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=797655
18 years ago
Pino Toscano
522f72a302
geometric annotations: draw a dashed border if set so
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=797613
18 years ago
Pino Toscano
2b4bfa777b
improve a bit the drawing of geom annotations:
...
- no more use a temporary image
- do nothing if there is nothing to draw (0-width border, and no inner color)
svn path=/trunk/KDE/kdegraphics/okular/; revision=794229
18 years ago
Pino Toscano
e786e9dfb9
Deprecate the own point width of the geometric annotation in favour of the width of the style.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=794222
18 years ago
Pino Toscano
66c950fcbb
use a yellow color if the annotation's one is not valid
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=765918
18 years ago
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
18 years ago
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
19 years ago
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
19 years ago
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
19 years ago
Pino Toscano
bdcfe1ee03
proper graphics-viewer-document icon
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=720714
19 years ago
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
19 years ago
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
19 years ago
David Faure
4f98f7b436
Build - BLITZ_INCLUDES includes the qimageblitz/ subdir already.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=711023
19 years ago
Pino Toscano
f2b06de9fc
don't draw external annotations (the backend told us it draws them)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=710783
19 years ago
Pino Toscano
18afc2df79
SVN_SILENT dead code
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=710640
19 years ago
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
19 years ago
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
19 years ago
Albert Astals Cid
8d0b9b2832
KImageEffect::flatten -> Blitz::flatten
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709615
19 years ago
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
19 years ago
Aaron J. Seigo
a8e576712e
kiconloader fixes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=691642
19 years ago
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
19 years ago
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
19 years ago
Pino Toscano
2577cf1773
convert the busyPixmap from KStaticDeleter to K_GLOBAL_STATIC
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656418
19 years ago
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
19 years ago
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
19 years ago
Pino Toscano
95bb597a85
hide the text selection inside the private class of Page
...
svn path=/trunk/playground/graphics/okular/; revision=648095
19 years ago
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
19 years ago
Laurent Montel
34edbef72d
Port to new api
...
svn path=/trunk/playground/graphics/okular/; revision=621624
19 years ago
Pino Toscano
652787611d
make it build with the new kdelibs
...
svn path=/trunk/playground/graphics/okular/; revision=619217
19 years ago
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
19 years ago
Tobias Koenig
6f9d0df5cd
Further annotation API cleanup
...
svn path=/trunk/playground/graphics/okular/; revision=612395
20 years ago
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
20 years ago
Tobias Koenig
57139e3192
API cleanup (utils.h), renamed getDpiX -> dpiX() and getDpiY -> dpiY()
...
svn path=/trunk/playground/graphics/okular/; revision=608236
20 years ago
Albert Astals Cid
ccbd55a036
don't look twice in the map
...
svn path=/trunk/playground/graphics/okular/; revision=606547
20 years ago
Tobias Koenig
893d6a4280
Missed this occurence of inkPaths which lead to a crash/assert...
...
svn path=/trunk/playground/graphics/okular/; revision=606525
20 years ago
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
20 years ago
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
20 years ago
Pino Toscano
e5e7393e22
the opacity value applies also to the brush color
...
svn path=/trunk/playground/graphics/okular/; revision=606027
20 years ago
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
20 years ago
Tobias Koenig
57a240aca8
Replace cropImageOnImage by a simple QImage::copy()
...
svn path=/trunk/playground/graphics/okular/; revision=605194
20 years ago
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
20 years ago
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
20 years ago