Pino Toscano
f770c6b542
Add a port of the kdelibs classes KTreeWidgetSearchLine* that use QTreeView/QModelIndex instead of TreeWidget/QTreeWidgetItem.
...
This way, we can really filter a tree view and avoid the limitations of QSortFilterProxyModel.
svn path=/trunk/KDE/kdegraphics/okular/; revision=710310
19 years ago
Pino Toscano
b12610e46a
when an annotation was updated, update all the annotation for its page (we can't do else, at the moment...)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=710252
19 years ago
Pino Toscano
b56ad8c3ae
Change the DocumentObserver::notifySetup() to allow a better tuning of the different setup options (different layout for the pages, or different document).
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=710227
19 years ago
Pino Toscano
928a7be1e9
properly unregister upon destruction from the document (checking if it's still alive)
...
don't attempt to rebuild the annotation tree if the document has no pages
svn path=/trunk/KDE/kdegraphics/okular/; revision=710044
19 years ago
Pino Toscano
f2f15e0918
rename AnnotationItem to AnnItem, it gave me enough troubles to be left so long...
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=710036
19 years ago
Pino Toscano
e6cc6a58c4
properly update when an annotation is added or removed (TODO: when is just changed)
...
also, return the PageRole for the page tree items
svn path=/trunk/KDE/kdegraphics/okular/; revision=710034
19 years ago
Pino Toscano
4415a36e3e
rename the AnnotationItem to AnnotationToolItem, otherwise there's a plain conflict with the private class of the AnnotationModel
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=710030
19 years ago
Pino Toscano
239434362e
Basic version of a tree model for the document annotations.
...
It provides the items this way:
root
+ page 1
| + annotations for page 1
+ page 2
| + annotations for page 2
.. and so on
It does not return subtrees for pages without annotations.
svn path=/trunk/KDE/kdegraphics/okular/; revision=709946
19 years ago
Pino Toscano
73329a23cf
reserve a place for the annotation model
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709945
19 years ago
Pino Toscano
1765025575
class with static methods -> namespace
...
add constness to the parameters where missing
svn path=/trunk/KDE/kdegraphics/okular/; revision=709912
19 years ago
Pino Toscano
815ac3867e
move the annotation tooltip creation procedure in a single place
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709910
19 years ago
Pino Toscano
0bfbda8810
btter handle "empty" authors in the review tree
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709906
19 years ago
Pino Toscano
c141af6017
look for Poppler::PSConverter::setOutputDevice(), and use it if found
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709853
19 years ago
Pino Toscano
8e6d1619f3
now that poppler 0.6 was released, i can enable the code to get the size of the embedded files
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709831
19 years ago
Pino Toscano
05dc08d028
include the blitz include dir as well
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709618
19 years ago
Albert Astals Cid
8d0b9b2832
KImageEffect::flatten -> Blitz::flatten
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709615
19 years ago
Pino Toscano
0b76db026f
don't tell kdeprint to remove the file, KTemporaryFile does that for us
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709588
19 years ago
Pino Toscano
ee925f2e58
add a postscript export overload that takes a QFile*, so we can properly use KTemporaryFile with printing
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709582
19 years ago
Pino Toscano
2498bea799
update the cursor correctly in text selection mode
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709558
19 years ago
Pino Toscano
eb27c7f823
use the new icon Nuno kindly made for the presentation mode
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709542
19 years ago
Pino Toscano
1350802160
in case the document has no title, put just the filename as title, not the whole path
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709512
19 years ago
Pino Toscano
1bd4373ceb
move the okular-poppler specific configuration into its own config.h
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709493
19 years ago
Pino Toscano
2a29b247f7
save really few bytes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709414
19 years ago
Pino Toscano
a2b2db70eb
SVN_SILENT old code
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709398
19 years ago
Pino Toscano
0cf7f95f3a
Disable the minibar for now, let's see how okular looks like w/o it.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709374
19 years ago
Pino Toscano
0517d30bfc
Remove the "Show Search Bar" option, mostly unuseful.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709361
19 years ago
Pino Toscano
962a134d2b
Properly enable/disable the whole "Export As" menu, not just the "Export to Text" action.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709336
19 years ago
Pino Toscano
ef3769ea5b
DocPath -> X-DocPath for .desktop of type Application
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709100
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
Pino Toscano
805b0f3386
Introduce a selective merging strategy for text areas, so we merge only all the areas of a text "line" together, not also with the areas above (if the lines overlap).
...
Adapt the text selection to merge correctly depending on the current rotation.
Drawback: darker overlap zones if two lines overlap.
svn path=/trunk/KDE/kdegraphics/okular/; revision=708745
19 years ago
Pino Toscano
97fa2243ea
don't do the merge when turning a regular area rect into an highlight area rect
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708740
19 years ago
Pino Toscano
cbcd969e6a
filter only the page changes interesting for the thumbnails
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708701
19 years ago
Pino Toscano
99a99a1590
instead of just keeping the transformation matrix, add the pointer to the owning page in a text page, so a text page can know more information, and with no need to manually be updated by the page
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708443
19 years ago
Pino Toscano
45960f6b71
Allow the use to choose any icon as stamp symbol.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708387
19 years ago
Pino Toscano
fd0d892373
make the spacer expand a bit less, and fix a crash when the current annotation type has no info
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708367
19 years ago
Pino Toscano
4c80e8a8e1
properly ignore a mouse press if it's going to be context menu event
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708268
19 years ago
Pino Toscano
bf9af4433d
move deleteTextSelections() to the private class
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708155
19 years ago
Pino Toscano
d81d4aedd9
small api fixup ('const QContainer' it's pointless as return value)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708147
19 years ago
Pino Toscano
a76e3d8e84
few bits more i did at uni today
...
svn path=/trunk/KDE/kdegraphics/doc/okular/; revision=708128
19 years ago
Pino Toscano
ab23a54823
select all text is done
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708125
19 years ago
Pino Toscano
969bc7b908
Ctrl+A to select all the text in the document.
...
Implements KPDF bug #109346 .
svn path=/trunk/KDE/kdegraphics/okular/; revision=708124
19 years ago
Troy Unrau
6b6e0a8dc4
Fixed zoom factor issue. When zooming out at 100%, you would end up at 80%,
...
but zooming in from 80% would give you 90%. Zoom levels are now
symmetrical when using toolbar zoom or CTRL+scrollmouse.
Thanks to pinotree to pointing out the appropriate code for me to fix.
svn path=/trunk/KDE/kdegraphics/okular/; revision=708122
19 years ago
Pino Toscano
323411021a
SVN_SILENT i can consider the text selection mostly done
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708104
19 years ago
Pino Toscano
351f66a9b4
remove TextPage::transform() from the public API, and make the Page change the TextPage transformation easily
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708085
19 years ago
Pino Toscano
1bd879c240
extract the definition of the private class of TextPage to an own file, and rename it to TextPagePrivate
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708084
19 years ago
Pino Toscano
d66f6b8f4a
better check before starting searching on a NULL text page...
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708081
19 years ago
Pino Toscano
490cf6fc67
Add a new text selection algo that should be a bit more reliable than the current one (just commented out), especially if the backend does not provide text areas in the logical order. Drawback: slightly slower.
...
Adapt both the algo's to work on untransformed text areas, but to return transformed areas.
svn path=/trunk/KDE/kdegraphics/okular/; revision=708078
19 years ago
Pino Toscano
9a1b575ac0
properly rotate/transform the text page and the highlight areas
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708054
19 years ago
Pino Toscano
4913076ee9
extract in an own static function te calculation of a rotation matrix from both source and destination rotations
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708049
19 years ago
Pino Toscano
0d7db7513b
save the url of the document to its xml metadata file
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708039
19 years ago