Commit graph

826 commits

Author SHA1 Message Date
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
Pino Toscano
531b8abff5 change the global sidebar "visibility" only when needed (saves some troubles)
svn path=/trunk/KDE/kdegraphics/okular/; revision=703874
2007-08-23 14:05:13 +00:00
Pino Toscano
ffdbac71c6 hopefully fix the keyboard navigation
svn path=/trunk/KDE/kdegraphics/okular/; revision=703795
2007-08-23 10:41:53 +00:00
Pino Toscano
01ec727681 add a "Find:" text in the find bar
svn path=/trunk/KDE/kdegraphics/okular/; revision=703785
2007-08-23 09:58:43 +00:00
Pino Toscano
2127a46eeb really draw the text of selected and hover items with the highlighted text color; micro-fix of the selection change
svn path=/trunk/KDE/kdegraphics/okular/; revision=703781
2007-08-23 09:48:28 +00:00
Pino Toscano
5a069b0543 Make the sidebar able to show the text for the items;
it can be shown/hidden using the popup menu of the sidebat itself.

TODO: save the state across runs.

svn path=/trunk/KDE/kdegraphics/okular/; revision=702635
2007-08-20 23:09:37 +00:00
Pino Toscano
7e4b15542d Usability work on the toolbar:
- shorten the toolbar labels of the Previous/Next Page actions, and put them into the toolbar by default instead of the Back/Forward [history control]
- shorten the toolbar labels of the tool buttons
- remove the Open/Open recent button from the shell toolbar

svn path=/trunk/KDE/kdegraphics/okular/; revision=702549
2007-08-20 20:25:22 +00:00
Pino Toscano
cd0dd24193 i18n fixes
rename 'freetext' to 'inline note'

svn path=/trunk/KDE/kdegraphics/okular/; revision=701876
2007-08-19 16:15:55 +00:00
Pino Toscano
1e3e5a74bf Use a pencil cursor (when available) when drawing stuff in presentation mode.
svn path=/trunk/KDE/kdegraphics/okular/; revision=700158
2007-08-14 23:23:16 +00:00
Albert Astals Cid
41c25cb208 Back from holiday, let's do some comitting :-)
* Update some copyright years and mail addresses
 * Search does not block the GUI anymore YUHUUUUU
   Well, it it does but it's almost unperceptible, that means the searching methods of Document no longer return a bool but a void and the Document::searchFinished signal is used to know if something was found, nothing was found or the user pressed the cancel button !YES! one can cancel search now :-)
 * TextPage no longer holds the area and the current transformed area, it took TOO MUCH memory, now we transform the area each time, it's much more CPU intensive but i could not measure a time loss while searching big documents and i could measure HUNDREDS of MB of usage less.
 * MICRO optimization: Change some code to not detach some containers
 * I still don't have ADSL so this is something like a "blind" commit, Pino will check it compiles against current KDE, not against what's on my computers

svn path=/trunk/KDE/kdegraphics/okular/; revision=699701
2007-08-13 22:25:27 +00:00
Pino Toscano
005267e0af restore the side bar correctly after show/hiding the whole sidebar
svn path=/trunk/KDE/kdegraphics/okular/; revision=698019
2007-08-08 19:22:26 +00:00
Pino Toscano
0ceee0b64e small tweaks to the prev/next buttons in the minibar:
- reduce their width of the 10%
- reduce their icon size, so they don't take 40px of height
- remove the custom hover code, Qt::WA_Hover does that for us
- make use of an already-there function to cut a pair of lines of code (yay for easiness!)

svn path=/trunk/KDE/kdegraphics/okular/; revision=698005
2007-08-08 17:50:47 +00:00
Pino Toscano
a2bda2bebb explain a bit this cryptic lonely two-letters word
svn path=/trunk/KDE/kdegraphics/okular/; revision=697972
2007-08-08 15:44:26 +00:00
Pino Toscano
17ad0df66c New sidebar for okular.
The old sidebar had many problems and limitations, usability issues as well.
This new sidebar tries to simplify and solve many of these issues (like the navigability with the keyboard), with a better looking.
Of course, some glitches are still there, but easily solvable.

svn path=/trunk/KDE/kdegraphics/okular/; revision=697060
2007-08-06 17:24:10 +00:00
Pino Toscano
5bfd0d5bd2 don't draw garbage in the progress widget when there's no document open
svn path=/trunk/KDE/kdegraphics/okular/; revision=696988
2007-08-06 13:21:10 +00:00
Pino Toscano
ee200d286c adapt to the new naming of the 'mouse' device icon
svn path=/trunk/KDE/kdegraphics/okular/; revision=696589
2007-08-05 10:24:21 +00:00
Pino Toscano
9610c6a9c5 SVN_SILENT dead code
svn path=/trunk/KDE/kdegraphics/okular/; revision=696457
2007-08-04 21:47:48 +00:00
Pino Toscano
23016eacd4 Change/set the efault shortcuts for some actions:
- the tools now have Ctrl+1/2/3/4 for Normal, Zoom, Select, TextSelect modes resp.
- the Show/hide navigation panel has F7 now, Ctrl+L conflicts with Konqueror

svn path=/trunk/KDE/kdegraphics/okular/; revision=696405
2007-08-04 17:42:06 +00:00
Pino Toscano
7bef230d46 draw the gradient of the review toolbar using QLinearGradient
svn path=/trunk/KDE/kdegraphics/okular/; revision=696071
2007-08-03 18:32:16 +00:00
Pino Toscano
5150419e81 adapt the debug stuff to the new kdebug way:
- make the output looking more or less like before (using nospace() or removing the spaces)
- remove endl and '\n' at the end of debug outputs
- fixing the QDebug operator<<'s around
- isolate the debug area number of the core into a separate header, and apply it instead of the numbers found in textpage.cpp

svn path=/trunk/KDE/kdegraphics/okular/; revision=694667
2007-07-31 10:19:48 +00:00
Aaron J. Seigo
a8e576712e kiconloader fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=691642
2007-07-24 05:42:32 +00:00
Pino Toscano
bd462a9a0d "Single" -> "Single Page"
"Facing" -> "Facing Pages"

svn path=/trunk/KDE/kdegraphics/okular/; revision=691430
2007-07-23 16:38:14 +00:00
Pino Toscano
5556af3210 get rid of the hand made resize grip and use QSizeGrip - the trick about it was making the widget to be resized a Qt::SubWindow
this makes the annotation window working in RtL mode as well

svn path=/trunk/KDE/kdegraphics/okular/; revision=691341
2007-07-23 13:05:26 +00:00
Pino Toscano
857d423c46 Correctly (hopefully) translate the text annotations now.
svn path=/trunk/KDE/kdegraphics/okular/; revision=691048
2007-07-22 20:20:24 +00:00
Pino Toscano
7c7c673845 Instead of hardcoding Qt::gray, use the Dark color of the widget palette.
Let's see how it looks...

svn path=/trunk/KDE/kdegraphics/okular/; revision=690972
2007-07-22 16:12:30 +00:00
Pino Toscano
ff3cf049ce Shift + Space is one screen back, says the HIG.
BUG: 148054

svn path=/trunk/KDE/kdegraphics/okular/; revision=690227
2007-07-20 12:18:55 +00:00
Pino Toscano
b8a458dcdc old stuff no more used, and no need to waste i18n strings
svn path=/trunk/KDE/kdegraphics/okular/; revision=690057
2007-07-19 23:40:11 +00:00
Pino Toscano
301ab93196 Riactivate the very very very, and I underline very, experimental newstuff support we had before the KNS1 -> KNS2 switch:
- install a newstuff rc config, pointing to the NS1 stuff on okular.kde.org
- show the download dialog for newstuff, properly (hopefully) initialized
- proper linking for the okularpart

svn path=/trunk/KDE/kdegraphics/okular/; revision=690047
2007-07-19 22:27:45 +00:00
Pino Toscano
536b632536 Correctly translate the ink annotations now.
svn path=/trunk/KDE/kdegraphics/okular/; revision=689204
2007-07-17 21:52:22 +00:00
Pino Toscano
668dcad8da Now the annotations can be dragged and moved after being placed on a page, even if the page is rotated.
Ctrl+right mouse button is what is needed to do that.
At the moment, only line, stamp and geometric annotations can be moved with mouse dragging.

svn path=/trunk/KDE/kdegraphics/okular/; revision=689185
2007-07-17 20:58:38 +00:00
Pino Toscano
9f17173619 always as temporary widget, show a text area for the annotation contents
svn path=/trunk/KDE/kdegraphics/okular/; revision=688354
2007-07-15 20:28:37 +00:00
Pino Toscano
54f586f18a remove the editing of unique name and flags, they are internal
svn path=/trunk/KDE/kdegraphics/okular/; revision=688247
2007-07-15 15:17:25 +00:00
Pino Toscano
4754b6713e no need for a parent widget, as its parent will be another layout
svn path=/trunk/KDE/kdegraphics/okular/; revision=688246
2007-07-15 15:09:11 +00:00
Pino Toscano
8114ea7200 fix or add the include guards
svn path=/trunk/KDE/kdegraphics/okular/; revision=688231
2007-07-15 13:53:26 +00:00
Pino Toscano
f2ef436a56 when in embedded mode, create only the base actions for the view (zoom combo/in/out)
svn path=/trunk/KDE/kdegraphics/okular/; revision=687811
2007-07-14 12:31:26 +00:00
Pino Toscano
808aa2a621 duplicate header
svn path=/trunk/KDE/kdegraphics/okular/; revision=686269
2007-07-10 22:20:31 +00:00
Pino Toscano
f1d5e478ba init fix
svn path=/trunk/KDE/kdegraphics/okular/; revision=685658
2007-07-09 12:34:08 +00:00
Pino Toscano
964424d62f stop gracefully the font extraction thread when closing a document or the properties dialog; make the thread deleting itself when finished
svn path=/trunk/KDE/kdegraphics/okular/; revision=685437
2007-07-08 21:22:37 +00:00
Pino Toscano
ff308d7f83 hopefully fix the sorting of the fonts
svn path=/trunk/KDE/kdegraphics/okular/; revision=685398
2007-07-08 18:40:37 +00:00
Pino Toscano
d746b667a4 minor renamings in the EmbedType enum:
- EmbeddedSubSet -> EmbbededSubset
- Embedded -> FullyEmbedded

svn path=/trunk/KDE/kdegraphics/okular/; revision=685329
2007-07-08 16:23:07 +00:00
Pino Toscano
3fd552ef21 Extend the FontInfo class to distinguish the different types of font embedding.
svn path=/trunk/KDE/kdegraphics/okular/; revision=685317
2007-07-08 16:07:37 +00:00
Pino Toscano
8a31e6f3f0 Allow the user to change the visible part(s) of the document by dragging the visible areas in the thumbnails, and to change the zoom of the document by Ctrl+wheel on them.
Patch by Diego R. Brogna, thanks a lot!

BUG: 135521

svn path=/trunk/KDE/kdegraphics/okular/; revision=685273
2007-07-08 14:25:08 +00:00
Pino Toscano
e5037f45b1 Refator a bit the way Document and the generators use to read the font information from a document.
Instead of having a synchronous function that extracts all the information at once, use a function to read the fonts of a single page.
This way, we can get all the result step by step (aka page by page), and possibly in an asynchronous way.
The resuls of the font "scanning" are sent via signals, as well the end of the work.
So, instead of block waiting for the results of all the document at once, the Fonts tab in the properties dialog can have a progress bar with the progress, and the results (the fonts) that are added incrementally to the list.

Only two minor things are left:
- the process is always asynchronous at the moment, as the only generator that can provide this kind of information is the Poppler one (safe)
- there is no check for duplicate fonts
But they should be easy to solve.

svn path=/trunk/KDE/kdegraphics/okular/; revision=685002
2007-07-07 20:35:01 +00:00
Pino Toscano
80d7b04b0f lround() -> qRound()
BUG: 147540

svn path=/trunk/KDE/kdegraphics/okular/; revision=683290
2007-07-04 14:41:16 +00:00
Pino Toscano
8c42d8cf02 add a simple popup menu for the items, just with 'save as' at the moment
svn path=/trunk/KDE/kdegraphics/okular/; revision=682870
2007-07-03 15:30:44 +00:00
Pino Toscano
2602037fb9 display (if available) the file size for attachments, courtesy of Albert for his work in poppler
svn path=/trunk/KDE/kdegraphics/okular/; revision=682847
2007-07-03 14:47:16 +00:00
Albert Astals Cid
5348802a9b MultiSelection sucks, go go go ExtendedSelection
svn path=/trunk/KDE/kdegraphics/okular/; revision=682740
2007-07-03 10:33:11 +00:00
Albert Astals Cid
d511adfd84 fordwardport r678167
svn path=/trunk/KDE/kdegraphics/okular/; revision=678169
2007-06-20 20:31:07 +00:00
Albert Astals Cid
b883cbcfa6 The part starts in dummy mode (very few ui) by default
Can be deactivated using unsetDummyMode(), that is the first thing the okular shell does
that's useful because for example for print preview you don't want to embed all the okular ui to do the preview, you just want to see the ps

svn path=/trunk/KDE/kdegraphics/okular/; revision=671928
2007-06-05 20:49:00 +00:00
Dirk Mueller
12b7b0d5d1 if you don't check the result, then don't waste time
on dynamic_cast (CID 3514)

svn path=/trunk/KDE/kdegraphics/okular/; revision=671475
2007-06-04 20:49:48 +00:00
Laurent Montel
e31f9ada54 Remove not necessary "class classname;"
svn path=/trunk/KDE/kdegraphics/okular/; revision=671220
2007-06-04 07:44:15 +00:00
Robert Knight
bb6936f60c Make the mini-bar look a bit better: Make the previous/next page buttons larger so they are easier to click. Fix the layouting so that the button height is not bound by the font height. Use 'of' instead of '/' to separate the current page and page count.
svn path=/trunk/KDE/kdegraphics/okular/; revision=669147
2007-05-28 16:34:26 +00:00
Robert Knight
99d4342ae8 Remove frame around the page view.
svn path=/trunk/KDE/kdegraphics/okular/; revision=669129
2007-05-28 15:29:29 +00:00
Pino Toscano
753f06e8e3 use the bookmark icon for the bookmark overlay in the thumbnail list
svn path=/trunk/KDE/kdegraphics/okular/; revision=668781
2007-05-27 16:08:45 +00:00
Pino Toscano
b4b3ebdded Okular::Settings::writeConfig() -> Okular::Settings::self()->writeConfig()
svn path=/trunk/KDE/kdegraphics/okular/; revision=667772
2007-05-23 21:59:12 +00:00
Pino Toscano
905ca02fb2 center the "no items" text of the annotation pane, until a better solution comes
svn path=/trunk/KDE/kdegraphics/okular/; revision=667142
2007-05-21 23:12:01 +00:00
Pino Toscano
e83f58d78d instead of emitting a signal, just use a simple action
svn path=/trunk/KDE/kdegraphics/okular/; revision=667074
2007-05-21 19:53:13 +00:00
Pino Toscano
3019616824 Bookmark list: add a tooltip for the top-level items with the number of bookmarks of the file.
svn path=/trunk/KDE/kdegraphics/okular/; revision=666669
2007-05-20 14:35:37 +00:00
Pino Toscano
4e2e675914 No need to show entries with no children.
svn path=/trunk/KDE/kdegraphics/okular/; revision=666450
2007-05-19 22:19:24 +00:00
Pino Toscano
0e9b82be96 get rid of the Xrender-related stuff
svn path=/trunk/KDE/kdegraphics/okular/; revision=666266
2007-05-19 10:51:16 +00:00
Pino Toscano
223d0fc421 remove the special code for painting the blended selection with XRender, Qt can do that nicely (and for free, heh)
svn path=/trunk/KDE/kdegraphics/okular/; revision=666265
2007-05-19 10:42:10 +00:00
Pino Toscano
6735089e77 SVN_SILENT follow the render -> view renaming for the columns as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=666260
2007-05-19 10:19:25 +00:00
Pino Toscano
28580b8625 Bookmarks list: make double click always open the bookmark, while its editing is possible using the edit key (usually F2) or the context menu.
svn path=/trunk/KDE/kdegraphics/okular/; revision=666149
2007-05-18 22:26:03 +00:00
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
2007-05-17 20:48:41 +00:00
Pino Toscano
faeaa3ec01 Sharing the same option for the accessibility render mode and for the view mode is not a good idea, really.
So, create a new ViewMode setting for the single/facing/columns view mode (leaving the RenderMode for compatibility with KPDF).
Rename [Rr]enderMode into [Vv]iewMode in the page view, following the new name of the setting.
Remove the "padding" enums from the settings, as it seems they have no real use beside giving issues.

svn path=/trunk/KDE/kdegraphics/okular/; revision=665773
2007-05-17 20:46:16 +00:00
Pino Toscano
8ccb38b9fe very small cleanup among the #include part
svn path=/trunk/KDE/kdegraphics/okular/; revision=661773
2007-05-06 15:10:16 +00:00
Pino Toscano
1eb435cddb remove the kdebug.h inclusion in area.h
svn path=/trunk/KDE/kdegraphics/okular/; revision=661410
2007-05-05 13:50:44 +00:00
Dirk Mueller
43a23a2de6 the usual "daily unbreak compilation"
svn path=/trunk/KDE/kdegraphics/okular/; revision=661101
2007-05-04 15:41:04 +00:00
Pino Toscano
6aaefb7f68 "pdf"/"pdf file" -> "document"
svn path=/trunk/KDE/kdegraphics/okular/; revision=660526
2007-05-02 23:06:38 +00:00
Pino Toscano
106e96240c rename (almost) every ActionFoo class to FooAction
exception to this is the ActionDocumentAction, renamed to DocumentAction and whose id is DocAction

svn path=/trunk/KDE/kdegraphics/okular/; revision=660523
2007-05-02 22:50:27 +00:00
Pino Toscano
a9532ee414 and a static QBitmap here leaks as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=660422
2007-05-02 17:25:49 +00:00
Pino Toscano
912706a856 revert my r659797, a QButtonGroup can't help here
svn path=/trunk/KDE/kdegraphics/okular/; revision=660408
2007-05-02 16:37:59 +00:00
Pino Toscano
7cfa67ecf4 improve a bit the Document::setPageSize API -- better pass the size, and not an index
svn path=/trunk/KDE/kdegraphics/okular/; revision=660208
2007-05-01 23:21:29 +00:00
Pino Toscano
0f4cd40e26 slotRotation -> setRotation
svn path=/trunk/KDE/kdegraphics/okular/; revision=660207
2007-05-01 23:09:45 +00:00
Pino Toscano
0260a8f2d6 properly isolate rebuildTree() from the itemChanged() signals
svn path=/trunk/KDE/kdegraphics/okular/; revision=660102
2007-05-01 14:51:55 +00:00
Pino Toscano
f8662cfa90 disconnect() the itemChanged() before rebuilding the tree and reconnect after that, otherwise we'll end up saving the bookmarks many times
svn path=/trunk/KDE/kdegraphics/okular/; revision=660050
2007-05-01 12:01:37 +00:00
Pino Toscano
859c246013 drop the idea of the static QBitmap, so it's not leaked anymore
svn path=/trunk/KDE/kdegraphics/okular/; revision=660048
2007-05-01 11:46:47 +00:00
Pino Toscano
bb01aa18da this action button has to stay hidden until really needed
svn path=/trunk/KDE/kdegraphics/okular/; revision=660043
2007-05-01 11:36:25 +00:00