Commit graph

4078 commits

Author SHA1 Message Date
Pino Toscano 1b02168dce force an update of the cursor when changing mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=712509
2007-09-14 16:02:02 +00:00
Pino Toscano a0b2ad4a4c activate by default the clear button on every document search lineedit
svn path=/trunk/KDE/kdegraphics/okular/; revision=712501
2007-09-14 15:42:27 +00:00
Pino Toscano bb59c02642 nuke Document::continueLastSearch(), continueSearch(id) is enough
svn path=/trunk/KDE/kdegraphics/okular/; revision=712500
2007-09-14 15:40:00 +00:00
Pino Toscano f8ed5302ec - move the Document::requestDone() to the private class, as it's something internal to the generator work
- make the Generator internally keep an pointer to the private class Document, so we can access easily to the Document' stuff

svn path=/trunk/KDE/kdegraphics/okular/; revision=712498
2007-09-14 15:29:16 +00:00
Pino Toscano aaed55f037 extract the DocumentPrivate class in an own file
svn path=/trunk/KDE/kdegraphics/okular/; revision=712493
2007-09-14 15:17:36 +00:00
Pino Toscano e6ad3722ae few apidox more
svn path=/trunk/KDE/kdegraphics/okular/; revision=712478
2007-09-14 14:19:52 +00:00
Pino Toscano 006111382b common d_ptr+q_ptr structure for Generator/TextDocumentGenerator, and their private classes
svn path=/trunk/KDE/kdegraphics/okular/; revision=712465
2007-09-14 13:31:55 +00:00
Pino Toscano 7eb8659d4f Add a tool button in the toolbar with the "select" actions.
Preparing a bit for separating rectangular text selection and rectangular image selection.

svn path=/trunk/KDE/kdegraphics/okular/; revision=712381
2007-09-14 10:02:33 +00:00
Pino Toscano cb693241b4 Accessibility configuration "refactory", part #2:
make the group containing the "change colors" information shrink to the minimum size (depending on the configuration widget chosen)

svn path=/trunk/KDE/kdegraphics/okular/; revision=712179
2007-09-13 20:16:19 +00:00
Pino Toscano 5fe5082302 Restucture a bit the Accessibility configuration:
- old way: all the options (and their configurations) at once
- new way: options in a combo box, with only the configuration for the active option that is shown below
Based on Florian's idea and mockups, thanks!

svn path=/trunk/KDE/kdegraphics/okular/; revision=712131
2007-09-13 18:00:01 +00:00
Script Kiddy 4c9b70db9d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=711908
2007-09-13 05:55:31 +00:00
Pino Toscano eaf827005b set the tooltip just once
svn path=/trunk/KDE/kdegraphics/okular/; revision=711306
2007-09-12 00:09:35 +00:00
Pino Toscano 83454a5ff3 fix some memory leaks
svn path=/trunk/KDE/kdegraphics/okular/; revision=711280
2007-09-11 22:27:39 +00:00
David Faure 4f98f7b436 Build - BLITZ_INCLUDES includes the qimageblitz/ subdir already.
svn path=/trunk/KDE/kdegraphics/okular/; revision=711023
2007-09-11 07:36:54 +00:00
Pino Toscano f2b06de9fc don't draw external annotations (the backend told us it draws them)
svn path=/trunk/KDE/kdegraphics/okular/; revision=710783
2007-09-10 21:34:07 +00:00
Pino Toscano f72692799e look for the old kpdf stuff only if the "new okular" stuff is not found
svn path=/trunk/KDE/kdegraphics/okular/; revision=710703
2007-09-10 17:20:58 +00:00
Pino Toscano 18afc2df79 SVN_SILENT dead code
svn path=/trunk/KDE/kdegraphics/okular/; revision=710640
2007-09-10 14:26:42 +00:00
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
2007-09-10 13:58:08 +00:00
Pino Toscano 5da8a9861e invalidate the page filter proxy model less times
svn path=/trunk/KDE/kdegraphics/okular/; revision=710549
2007-09-10 09:39:03 +00:00
Tobias Koenig c70cb99bdc Add proxy model for grouping by author
svn path=/trunk/KDE/kdegraphics/okular/; revision=710548
2007-09-10 09:35:08 +00:00
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
2007-09-10 08:51:43 +00:00
Pino Toscano 49994d2d3c reduce to the minimum the priority of okular as image handler
svn path=/trunk/KDE/kdegraphics/okular/; revision=710434
2007-09-09 23:00:22 +00:00
Pino Toscano bc509794eb remove two empty DocumentObserver notifications
svn path=/trunk/KDE/kdegraphics/okular/; revision=710426
2007-09-09 22:28:19 +00:00
Tobias Koenig 075eabe799 Fixed the notifications
svn path=/trunk/KDE/kdegraphics/okular/; revision=710389
2007-09-09 20:40:37 +00:00
Tobias Koenig 709e0eed1d Print fancy information when no annotations are available
svn path=/trunk/KDE/kdegraphics/okular/; revision=710354
2007-09-09 18:32:54 +00:00
Tobias Koenig cdcde2aeaf Don't delete the documents in the converters, they are deleted
by the TextDocumentGenerator.

svn path=/trunk/KDE/kdegraphics/okular/; revision=710348
2007-09-09 18:06:53 +00:00
Pino Toscano 08727a7cea a bit prettier
svn path=/trunk/KDE/kdegraphics/okular/; revision=710340
2007-09-09 17:33:14 +00:00
Tobias Koenig 9642e7ae5e Add proxy models for the AnnotationModel and port SideReviews
to it

svn path=/trunk/KDE/kdegraphics/okular/; revision=710330
2007-09-09 16:51:55 +00:00
Pino Toscano a917f080e6 Create a model for the TOC, and use that for displaying the TOC of the document.
svn path=/trunk/KDE/kdegraphics/okular/; revision=710317
2007-09-09 16:15:33 +00:00
Tobias Koenig e40be7a9c3 Some GUI improvements
svn path=/trunk/KDE/kdegraphics/okular/; revision=710312
2007-09-09 15:58:10 +00:00
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
2007-09-09 15:50:00 +00:00
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
2007-09-09 12:33:49 +00:00
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
2007-09-09 10:50:36 +00:00
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
2007-09-09 00:27:16 +00:00
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
2007-09-08 23:46:49 +00:00
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
2007-09-08 23:39:30 +00:00
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
2007-09-08 23:15:03 +00:00
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
2007-09-08 17:10:35 +00:00
Pino Toscano 73329a23cf reserve a place for the annotation model
svn path=/trunk/KDE/kdegraphics/okular/; revision=709945
2007-09-08 16:58:31 +00:00
Pino Toscano 1765025575 class with static methods -> namespace
add constness to the parameters where missing

svn path=/trunk/KDE/kdegraphics/okular/; revision=709912
2007-09-08 14:44:21 +00:00
Pino Toscano 815ac3867e move the annotation tooltip creation procedure in a single place
svn path=/trunk/KDE/kdegraphics/okular/; revision=709910
2007-09-08 14:41:40 +00:00
Pino Toscano 0bfbda8810 btter handle "empty" authors in the review tree
svn path=/trunk/KDE/kdegraphics/okular/; revision=709906
2007-09-08 14:29:46 +00:00
Pino Toscano c141af6017 look for Poppler::PSConverter::setOutputDevice(), and use it if found
svn path=/trunk/KDE/kdegraphics/okular/; revision=709853
2007-09-08 11:21:16 +00:00
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
2007-09-08 10:45:05 +00:00
Pino Toscano 05dc08d028 include the blitz include dir as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=709618
2007-09-07 22:57:17 +00:00
Albert Astals Cid 8d0b9b2832 KImageEffect::flatten -> Blitz::flatten
svn path=/trunk/KDE/kdegraphics/okular/; revision=709615
2007-09-07 22:52:11 +00:00
Pino Toscano 0b76db026f don't tell kdeprint to remove the file, KTemporaryFile does that for us
svn path=/trunk/KDE/kdegraphics/okular/; revision=709588
2007-09-07 21:27:50 +00:00
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
2007-09-07 21:06:57 +00:00
Pino Toscano 2498bea799 update the cursor correctly in text selection mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=709558
2007-09-07 19:57:46 +00:00
Pino Toscano eb27c7f823 use the new icon Nuno kindly made for the presentation mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=709542
2007-09-07 19:14:03 +00:00