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
Pino Toscano
08eab9344b
fix the drawing of two highlight annotations
...
svn path=/trunk/playground/graphics/okular/; revision=599965
20 years ago
Pino Toscano
ed84916c0d
spell checking
...
svn path=/trunk/playground/graphics/okular/; revision=597875
20 years ago
Albert Astals Cid
a9a27a9894
remove qt3 support calls
...
svn path=/trunk/playground/graphics/okular/; revision=588888
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
Dirk Mueller
89bacb77bb
compile++
...
svn path=/trunk/playground/graphics/okular/; revision=586265
20 years ago
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
20 years ago
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
20 years ago
Albert Astals Cid
5fda8d50b8
did not want to commit that
...
svn path=/trunk/playground/graphics/okular/; revision=584935
20 years ago