Fabio D'Urso
1fdc4cbc72
Only draw the bounding box of (ExternallyDrawn & BeingMoved) annotations
14 years ago
Fabio D'Urso
29db8bafbc
Render ExternallyDrawn annotations in PagePainter if they are BeingMoved
14 years ago
Albert Astals Cid
7825e4c545
Fix stuff for a better merge
14 years ago
Mohammad Mahfuzur Rahman Mamun
746414b86b
changing the branch name
14 years ago
Michel Ludwig
2fd4100cbd
Coding style fixes
15 years ago
Michel Ludwig
e8e0237ca0
Add the possibility to show sources location graphically on the rendered pages.
...
Note that currently the rotation of pages is not taken into account as one still has
to find a unique way of handling this.
15 years ago
Mohammad Mahfuzur Rahman Mamun
dca4ee559c
Another Code Refactoring done
15 years ago
Mohammad Mahfuzur Rahman Mamun
8667667222
unnecessary changes removed from pagepainter.cpp
15 years ago
Mohammad Mahfuzur Rahman Mamun
3bbc5bc8b8
Removed the case of right click for text Selection where even if no text is selected right click would allow the user to copy text
15 years ago
Mohammad Mahfuzur Rahman Mamun
10b11903c2
Removal of black selection for epub or odt is working with some problem
15 years ago
Albert Astals Cid
439e7b9799
remove unused variables
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230896
15 years ago
Albert Astals Cid
f95073babb
If we are going to copy raw data from src to dest we need to make sure both are in the same image format
...
Thanks to Adrià Arrufat for the testing
BUGS: 243434
svn path=/trunk/KDE/kdegraphics/okular/; revision=1225247
15 years ago
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