Commit graph

803 commits

Author SHA1 Message Date
Pino Toscano cb50789290 slightly better wording
svn path=/trunk/KDE/kdegraphics/okular/; revision=736320
2007-11-13 22:46:44 +00:00
Pino Toscano 6ddb793ae6 correctly locale the icon (when stored as metadata) in the prixmap preview widget
few updates in the list of default stamps

svn path=/trunk/KDE/kdegraphics/okular/; revision=736317
2007-11-13 22:32:59 +00:00
Pino Toscano 537b828e50 for now, disable the animation of the review toolbar, as it seems to be slow sometimes
#define OKULAR_ANIMATE_REVIEW_TOOBAR to re-eanble it

svn path=/trunk/KDE/kdegraphics/okular/; revision=736304
2007-11-13 22:04:04 +00:00
Pino Toscano 0fc6641cca 'Copy link location' -> 'Copy link address', like konqueror
svn path=/trunk/KDE/kdegraphics/okular/; revision=735046
2007-11-10 18:45:48 +00:00
Pino Toscano 0b35107505 fix icons
svn path=/trunk/KDE/kdegraphics/okular/; revision=732755
2007-11-04 17:03:47 +00:00
Pino Toscano 9e5f8163f7 recalc correctly the width of the sidebar when changing the icon size or toggling the text
svn path=/trunk/KDE/kdegraphics/okular/; revision=732427
2007-11-03 20:48:10 +00:00
Albert Astals Cid 9033cfdec8 aZoomFitText is not created atm, so don't try to update it
svn path=/trunk/KDE/kdegraphics/okular/; revision=732304
2007-11-03 12:58:46 +00:00
Pino Toscano 02e7c0abfb disable the "fit to text" zoom option, not yet implemented
svn path=/trunk/KDE/kdegraphics/okular/; revision=732156
2007-11-02 23:23:06 +00:00
Pino Toscano 30855b4e2b remove a deprecated from KIntNumInput
svn path=/trunk/KDE/kdegraphics/okular/; revision=732138
2007-11-02 21:56:52 +00:00
Pino Toscano 616d587c2f don't crash when trying to mapping an invalid proxy index in the group proxy model
svn path=/trunk/KDE/kdegraphics/okular/; revision=732110
2007-11-02 20:21:53 +00:00
Pino Toscano b66872679e change strings to be like used everywhere else
svn path=/trunk/KDE/kdegraphics/okular/; revision=731837
2007-11-02 00:32:22 +00:00
Pino Toscano 36958659a5 Add very short descriptions for the "Rotate left" and "Rotate right" actions, so they take less space when added in the toolbar.
svn path=/trunk/KDE/kdegraphics/okular/; revision=731834
2007-11-02 00:07:32 +00:00
Pino Toscano d51d279afb Make it possible to choose the size for the icons in the sidebar, by choosing it in the popup menu of the sidebar itself.
CCBUG: 151205

svn path=/trunk/KDE/kdegraphics/okular/; revision=731824
2007-11-01 22:58:09 +00:00
Pino Toscano 1cd4ae0a3e When reloading, properly remember the state of the sidebar.
CCBUG: 151130

svn path=/trunk/KDE/kdegraphics/okular/; revision=731721
2007-11-01 17:52:47 +00:00
Pino Toscano 6d375af868 Move all the bookmarking stuff into the BookmarkManager, that now updates the Document observers automatically.
svn path=/trunk/KDE/kdegraphics/okular/; revision=730404
2007-10-28 18:31:33 +00:00
Pino Toscano a2ff1d85fd disable the "construct again the same annotation", it seems too confusing
svn path=/trunk/KDE/kdegraphics/okular/; revision=730290
2007-10-28 11:14:41 +00:00
Pino Toscano cd62fb8d6a icon renamings:
- find-next -> edit-find-next
- find-previous -> edit-find-previous

svn path=/trunk/KDE/kdegraphics/okular/; revision=727831
2007-10-21 21:40:12 +00:00
Pino Toscano fb825ff1d4 add a form widget controller to prepare the pageview to possible changes when the content in a form widget changes
svn path=/trunk/KDE/kdegraphics/okular/; revision=726788
2007-10-18 22:09:49 +00:00
Pino Toscano 7f44aafa94 correctly hide the form widgets when a widget is focused
svn path=/trunk/KDE/kdegraphics/okular/; revision=726769
2007-10-18 20:35:34 +00:00
Pino Toscano 36e6e85b46 Make the text of the values in the Properties dialog selectable using mouse.
BUG: 150293

svn path=/trunk/KDE/kdegraphics/okular/; revision=723800
2007-10-10 18:41:10 +00:00
Pino Toscano 8ff3d1d705 more use of standard actions
svn path=/trunk/KDE/kdegraphics/okular/; revision=722702
2007-10-07 23:09:08 +00:00
Pino Toscano 0b26a91f1f use the standard action names
svn path=/trunk/KDE/kdegraphics/okular/; revision=722687
2007-10-07 22:21:13 +00:00
Pino Toscano a580378469 no need for the PageViewToolBar to have the mouse tracking enabled
svn path=/trunk/KDE/kdegraphics/okular/; revision=722555
2007-10-07 15:30:02 +00:00
Pino Toscano 8d2b86906e okular -> graphics-viewer-document
svn path=/trunk/KDE/kdegraphics/okular/; revision=722448
2007-10-07 10:44:59 +00:00
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
2007-10-06 23:04:28 +00:00
Pino Toscano 61a5cee757 revert nonsense
svn path=/trunk/KDE/kdegraphics/okular/; revision=721905
2007-10-06 09:07:18 +00:00
Thomas Georgiou 5908d4e67d Compile. Thanks to hdh.
svn path=/trunk/KDE/kdegraphics/okular/; revision=721771
2007-10-06 03:08:55 +00:00
Andreas Pakulat 8cac1e3509 Merge KConfig branch
svn path=/trunk/KDE/kdegraphics/okular/; revision=721735
2007-10-06 00:01:16 +00:00
Pino Toscano 42372d4dfb fix layout of the Created/Modified labels
svn path=/trunk/KDE/kdegraphics/okular/; revision=721216
2007-10-04 20:15:43 +00:00
Pino Toscano b44e127990 use a grid layout for the 'general' tab; align the labels of the edit fields to the right
svn path=/trunk/KDE/kdegraphics/okular/; revision=721094
2007-10-04 15:00:39 +00:00
Jakob Petsovits 433c44499c Icon naming spec compliance (code changes):
arrow-* -> go-*

svn path=/trunk/KDE/kdegraphics/okular/; revision=721061
2007-10-04 13:03:22 +00:00
Bernhard Loos 5412b15459 port parts of kdegraphics
svn path=/branches/work/kde4_kconfig/kconfig/port_trunk/kdegraphics/okular/; revision=720917
2007-10-04 01:19:39 +00:00
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
2007-10-03 23:48:38 +00:00
Pino Toscano c47c606f5b all of these functions should have a valid pointer as parameter, so assert instead of silently return
svn path=/trunk/KDE/kdegraphics/okular/; revision=720880
2007-10-03 22:53:27 +00:00
Pino Toscano 76008f84da use the new icon here as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=720879
2007-10-03 22:51:11 +00:00
Pino Toscano bc5aeb2bb8 dear line in the annotation tooltip, please use less vertical space, thanks
svn path=/trunk/KDE/kdegraphics/okular/; revision=720874
2007-10-03 22:45:20 +00:00
Pino Toscano f2684504bc remove the "advanced" tab, whose only purpouse was debugging
add a ' %' suffix for the opacity spinbox

svn path=/trunk/KDE/kdegraphics/okular/; revision=720873
2007-10-03 22:44:11 +00:00
Pino Toscano bdcfe1ee03 proper graphics-viewer-document icon
svn path=/trunk/KDE/kdegraphics/okular/; revision=720714
2007-10-03 14:50:20 +00:00
Pino Toscano 5df1895ec0 don't use deprecated api of KUser
svn path=/trunk/KDE/kdegraphics/okular/; revision=720663
2007-10-03 12:43:44 +00:00
Pino Toscano 02d6dab204 adapt to the new icon names
svn path=/trunk/KDE/kdegraphics/okular/; revision=720180
2007-10-02 16:23:28 +00:00
Pino Toscano e461f0c113 don't include kpixmapeffect.h
svn path=/trunk/KDE/kdegraphics/okular/; revision=720047
2007-10-02 08:05:52 +00:00
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
2007-10-01 15:10:42 +00:00
Pascal Létourneau d0fd4b6f26 Take the margin into account in mouse{Press,Release}Event
svn path=/trunk/KDE/kdegraphics/okular/; revision=718756
2007-09-29 16:36:14 +00:00
Pino Toscano 24c55e3caa reduce the visible rect by -1,-1, so it looks symmetric (and perfect :) )
svn path=/trunk/KDE/kdegraphics/okular/; revision=716582
2007-09-24 23:08:17 +00:00
Pino Toscano 746074cfcb Make use of the Esc key in the content area:
- when the document is auto-scrolling, stop the scrolling
- when building an annotation, stop its construction

svn path=/trunk/KDE/kdegraphics/okular/; revision=716000
2007-09-23 17:45:36 +00:00
Pino Toscano 3c6b0b9181 add a method to toggle any of the tool buttons
svn path=/trunk/KDE/kdegraphics/okular/; revision=715999
2007-09-23 17:40:23 +00:00
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
2007-09-23 15:30:31 +00:00
Pino Toscano b455fb1221 we need to register QModelIndex as metatype to be able to pass it as parameter for queued slot calls
svn path=/trunk/KDE/kdegraphics/okular/; revision=713205
2007-09-16 17:06:18 +00:00
Pino Toscano 4b3b1a910c open just the TOC branch the document wants to be open; properly open them
svn path=/trunk/KDE/kdegraphics/okular/; revision=713165
2007-09-16 15:00:40 +00:00
Pino Toscano 057d26681a +i18n comment
svn path=/trunk/KDE/kdegraphics/okular/; revision=712883
2007-09-15 15:12:30 +00:00
Pino Toscano 30081b4654 Make the findbar look almost like kate's search bar (line edit buddy, tooltips).
svn path=/trunk/KDE/kdegraphics/okular/; revision=712882
2007-09-15 15:10:59 +00:00
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 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 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 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 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
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 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
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 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
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
2007-09-05 22:01:04 +00:00
Pino Toscano cbcd969e6a filter only the page changes interesting for the thumbnails
svn path=/trunk/KDE/kdegraphics/okular/; revision=708701
2007-09-05 13:10:21 +00:00
Pino Toscano 45960f6b71 Allow the use to choose any icon as stamp symbol.
svn path=/trunk/KDE/kdegraphics/okular/; revision=708387
2007-09-04 18:21:33 +00:00
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
2007-09-04 17:02:30 +00:00
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
2007-09-04 11:12:03 +00:00
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
2007-09-03 21:35:05 +00:00
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
2007-09-03 21:29:09 +00:00
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
2007-09-03 19:35:55 +00:00
Pino Toscano 17e6bdfcfd make the bookmark tree showing its contents with no document open;
use a kdelibs method to save 7+ lines

svn path=/trunk/KDE/kdegraphics/okular/; revision=705780
2007-08-28 15:02:39 +00:00
Pino Toscano 0416e07a37 make some view actions disabled by default, so they are not enabled when opening a new empty window
(and little fix for my yesterday's commit, so the preview mode should work again...)

svn path=/trunk/KDE/kdegraphics/okular/; revision=705713
2007-08-28 12:04:18 +00:00
Pino Toscano 8b0a80ba4b Start making the annotation system DRM-aware. In case the document does not want changes to its annotations (and okular is set to obey),
- disable the review toolbar
- make the annotation prioerties dialog read-only
- disable the removal

svn path=/trunk/KDE/kdegraphics/okular/; revision=705415
2007-08-27 22:11:18 +00:00
Pino Toscano a4dada31bb Remember if the text is shown for the sidebar items.
svn path=/trunk/KDE/kdegraphics/okular/; revision=704629
2007-08-25 15:39:17 +00:00
Pino Toscano cb2475cbab properly set the current index, so the first click does not give a flicker
svn path=/trunk/KDE/kdegraphics/okular/; revision=704627
2007-08-25 15:30:40 +00:00
Pino Toscano 21a8ebbe1e simply a bit its layout, making it coherent with the other sidebar panes
svn path=/trunk/KDE/kdegraphics/okular/; revision=704288
2007-08-24 14:39:18 +00:00
Pino Toscano dac41f84ad give the thumbnail list, the toc and the bookmark list a coherent look
svn path=/trunk/KDE/kdegraphics/okular/; revision=704267
2007-08-24 14:20:03 +00:00
Pino Toscano 0b0a33d347 it does not need to be a toolbar, a widget + layout is more than enough
svn path=/trunk/KDE/kdegraphics/okular/; revision=704260
2007-08-24 14:04:48 +00:00
Pino Toscano 0ecdc5b3c6 add the searchId to the searchFinished() signal of the Document, so each search line edit can ignore any search not started by itself
svn path=/trunk/KDE/kdegraphics/okular/; revision=704015
2007-08-23 22:16:37 +00:00
Pino Toscano 78d7cb27a3 improve the support of searching when in presentation mode:
- don't complain about "new" pages to be setup, if the document is the same
- when there's a change in a page (or a page switching) due to the search, ignore any transition

svn path=/trunk/KDE/kdegraphics/okular/; revision=704005
2007-08-23 21:36:41 +00:00