Sumit Sahrawat
3400f76dad
Make inline annotation border width customizable, using a spin widget to accept input
...
REVIEW: 125801
BUGS: 332887
10 years ago
Albert Astals Cid
8bbe773b23
Increase the number of pixels we're going to let render even if we don't have the pixmap
...
Also always allow for downscaling
11 years ago
Michal Humpula
c07ee043a3
Multiple Tiles Managers per Page
...
It's straighforward implementation. Every single place, where there were call for (or with) TilesManager, now has a DocumentObserver as companion. The m_tiledManager reference in PagePrivate was changed to QMap<DocumentObserver, TilesManager>.
REVIEW: 113986
12 years ago
Fabio D'Urso
31a163bc3d
Use same fill rule as Poppler in polygon annotations rendered by PagePainter
...
This is not going to break existing annotations because background
color in polygon annotations is a new 4.11 feature.
13 years ago
Fabio D'Urso
b49db982ea
Make two helper inline functions static
13 years ago
Fabio D'Urso
871f230aa6
Fixed Inplace annotations' layout in PagePainter
...
The bounding box was incorrectly calculated unless the zoom was at 100%.
It caused word wrapping and text alignment errors.
13 years ago
Jon Mease
2ae9e58bb4
Merge window.text, contents and inplaceText annotation properties
...
BUG: 319442
REVIEW: 110391
13 years ago
Fabio D'Urso
51076a2653
Fill polygon annotations with their inner color in PagePainter (for non-PDF docs)
...
Note: Poppler doesn't blend multiply in this case. Maybe we can make this
annotation unbuffered in PagePainter too?
13 years ago
Albert Astals Cid
541650a4f4
Remove the concept of observer/view id
...
Just use the pointer as id :-)
This is BIC and SIC, increase the soversion now to makes sure we don't forget in the future
Patch based in an earlier patch by Bogdan Cristea <cristeab@gmail.com>
REVIEW: 109115
13 years ago
Fabio D'Urso
9f41ff9d13
Paint some other annotation tool icons dynamically
...
Affected tools:
- Note
- Inline Note
- Ink
- Highlighter
Note that the Stamp tool is the only one that's left with a static icon
13 years ago
Mailson Menezes
7528fb8c88
Change TilesManager::tilesAt use
...
- The second parameter has changed to an enum
- Now Page::tilesAt only returns tiles with pixmaps
14 years ago
Fabio D'Urso
b6f47af50b
pagepainter: Avoid unnecessary multiplications by reusing previously calculated value
14 years ago
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 .
14 years ago
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.
14 years ago
Fabio D'Urso
2002556017
pagepainter: removed unnecessary tile.pixmap() check
...
Tiles returned by tilesAt with allowEmpty=false always have a pixmap
14 years ago
Fabio D'Urso
85d5f043a2
Removed useless Tile::operator=
14 years ago
Fabio D'Urso
3af7937384
pagepainter: Use tiles in PageView only
...
Fixes regression introduced by commit 437ddad588
14 years ago
Albert Astals Cid
bb9508e2f4
Be const my friend
14 years ago
Fabio D'Urso
437ddad588
Hide tiles manager within okularcore
...
Only the Tile class (tile.h) is visible from the outside
14 years ago
Fabio D'Urso
e12966b259
Removed possibility to have a tiles manager per observer
...
Now only the PageView can have a tiles manager.
14 years ago
Fabio D'Urso
588b183377
pagepainter: Use paper color as fill color in buffered flow
14 years ago
Mailson Menezes
f91f55d117
Split tile structure in Tile and TileNode
...
The new class TileNode represents a node in the tree structure
whereas Tile is just a data structure to store the pixmap and tile rect
and is used outside tiles manager.
14 years ago
Mailson Menezes
d90236b12d
Fix PagePainter issues
14 years ago
Bogdan Cristea
7ce6990098
Separate settings in core and non core
...
Will make it easier to make separate apps based on the core in the future
Note this will most probably break your settings if you are not running a very up to date kdelibs (4.9 or 4.10)
so be careful on updating
REVIEW: 104947
14 years ago
Mailson Menezes
d3a0fa057a
Split tiles before the request
...
The splitting was only executed after the pixmap arrived the tiles
manager. That was bad and likely to lead to an unnecessary rendering in
the case of a big tile that would be split after all.
This also fixes a bug where some tiles weren't updated.
14 years ago
Mailson Menezes
851a503e81
Move tiles manager to a private header
14 years ago
Mailson Menezes
3f1a186d0a
Fix annotation positioning when using tiles
...
Most of the positioning calculations were taking into account the 'crop'
argument (which is a NormalizedRect) to execute some translations.
If not using tiles the value of crop were always the normalized bounding
box of the page, relative to the page itself. So translating by it is
essentially a noop.
When using tiles this argument represents the normalized viewport,
relative to the page. Although useful for the tiles manager, translating
by 'crop' is not necessary for any of those operations.
14 years ago
Mailson Menezes
62d85380af
Draw annotations and highlights with tiles manager
...
Fix a crash when drawing annotations and highlights on a tile.
14 years ago
Mailson Menezes
923a966aa2
Fix panning issue
...
If the panning action results in a request for new tiles, paint it as
well. The previous code wasn't taking the amount of scroll into
consideration to fetch the tile to be painted.
14 years ago
Mailson Menezes
de2ee00ff8
Improvements on tiles manager
...
- Made improvements on the code (not performance)
- Fix issue of not painting dirty tiles
14 years ago
Mailson Menezes
9f3cf45e37
Rendering with a tiles manager
...
Currently it's only available for PDFs and does not support rotation.
14 years ago
Mailson Menezes
a405c079f4
Rendered image is at the same size of viewport
...
Previously we were rendering the current viewport but the image provided
by poppler was as big as the scaled page.
14 years ago
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