Commit graph

826 commits

Author SHA1 Message Date
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
Pino Toscano
ea163815a8 hopefully make really use in presentation mode of the global shortcuts for first/last/next/prev page
svn path=/trunk/KDE/kdegraphics/okular/; revision=659849
2007-04-30 22:04:11 +00:00
Pino Toscano
f9d3246141 use a button group and simplify a bit
svn path=/trunk/KDE/kdegraphics/okular/; revision=659797
2007-04-30 20:26:26 +00:00
Pino Toscano
2c1d5aa44e Refactor a bit the annotating toolbar, so it can handle better its items and cha
nges to its status. This brings us:
- less item reloading (previously done every time the toolbar is shown, now only when needed)
- the toolbar is redrawn correctly if it's shown and a new document is open
- as Albert pointed me yesterday, no need to show the annotating tools that act on text if the document does not support the extraction of text

svn path=/trunk/KDE/kdegraphics/okular/; revision=659722
2007-04-30 17:40:53 +00:00
Pino Toscano
dde7280d55 respect the DRM permissions for form filling
svn path=/trunk/KDE/kdegraphics/okular/; revision=658944
2007-04-28 23:22:20 +00:00
Albert Astals Cid
c4f3580d28 commit the code that will replace the AGG based code once QPainter works
http://www.trolltech.com/developer/task-tracker/index_html?id=158815&method=entry
for more information

svn path=/trunk/KDE/kdegraphics/okular/; revision=656841
2007-04-22 14:01:03 +00:00
Pino Toscano
56a44d8e25 fix off-by-one error in the rect of a thumbnail
svn path=/trunk/KDE/kdegraphics/okular/; revision=656829
2007-04-22 13:04:31 +00:00
Pino Toscano
2577cf1773 convert the busyPixmap from KStaticDeleter to K_GLOBAL_STATIC
svn path=/trunk/KDE/kdegraphics/okular/; revision=656418
2007-04-21 10:44:18 +00:00
Pino Toscano
1b042d4c9f make the auto-advance timer singleshot, otherwise we can't stop it if a non-timed page follows one or more timed-one(s)
accept also 0 as page duration, meaning that we have to skip immediately to the next page
the implementation is still not perfect, we need to paint each slide even if the time set is 0, but we're improving

svn path=/trunk/KDE/kdegraphics/okular/; revision=656317
2007-04-21 00:02:12 +00:00
Pino Toscano
6cf46e9160 make the D-Bus call for the search have effect also when in presentation mode;
give focus to the presentation search toolbar when showing it

svn path=/trunk/KDE/kdegraphics/okular/; revision=656256
2007-04-20 19:45:33 +00:00
Pino Toscano
fd6ed8e1c5 SVN_SILENT i18n fix
svn path=/trunk/KDE/kdegraphics/okular/; revision=656175
2007-04-20 13:53:01 +00:00
Pino Toscano
0e12746a92 Link -> Action renaming.
TextDocumentConverter::addLink -> addAction
Document::processLink -> processAction

svn path=/trunk/KDE/kdegraphics/okular/; revision=656145
2007-04-20 12:49:17 +00:00
Pino Toscano
5f21b15d99 Link -> Action renaming.
Step #2: Link -> Action for the action hierarchy, and for the ObjectRect type.

svn path=/trunk/KDE/kdegraphics/okular/; revision=656140
2007-04-20 12:37:12 +00:00
Pino Toscano
f3e484082d Link -> Action renaming.
Step #1: link.(cpp|h) -> action.(cpp|h)

svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
2007-04-20 11:26:05 +00:00
Albert Astals Cid
0d47b62715 krazy include order issues
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
2007-04-19 18:30:20 +00:00
Urs Wolfer
989ed1ac23 fix icon names
svn path=/trunk/KDE/kdegraphics/okular/; revision=654591
2007-04-16 15:47:46 +00:00
Albert Astals Cid
b0339a4e40 fix some easy krazy issues
svn path=/trunk/KDE/kdegraphics/okular/; revision=654317
2007-04-15 19:11:10 +00:00
Pino Toscano
29e8bbc50f make it possible for generators to decide the initial open/close state for the items of a TOC
svn path=/trunk/KDE/kdegraphics/okular/; revision=654247
2007-04-15 15:48:39 +00:00
Pino Toscano
92b8e8bf1a in the top bar, add a label with the number of pages
svn path=/trunk/KDE/kdegraphics/okular/; revision=654187
2007-04-15 11:10:21 +00:00
David Jarvie
6ccde0505c Add fancy date option to KLocale::formatDate(), KLocale::formatDateTime()
svn path=/trunk/KDE/kdegraphics/okular/; revision=652038
2007-04-09 23:36:26 +00:00
Pino Toscano
88feb05854 use QCursor instead of KCursor for cursor shapes
svn path=/trunk/playground/graphics/okular/; revision=649588
2007-04-02 21:12:19 +00:00
Pino Toscano
95bb597a85 hide the text selection inside the private class of Page
svn path=/trunk/playground/graphics/okular/; revision=648095
2007-03-30 14:08:20 +00:00
Pino Toscano
5e1c70b8cb Use an opaque background for the presentation top bar, as it looks better with Oxygen icons.
Original patch by Wilfried Huss, thanks!

CCMAIL: okular-devel@kde.org

svn path=/trunk/playground/graphics/okular/; revision=647275
2007-03-27 20:36:24 +00:00
Albert Astals Cid
e5e91b7dad Thanks for helping Wilfried, but i am reverting this change as the transparency is the intended look.
If you feel it is wrong to have the topbar transparent please write to okular mailing list https://mail.kde.org/mailman/listinfo/okular-devel and we will be happy to discuss with you and others if having the topbar transparent is a good solution or not.
Albert.
CCMAIL: Wilfried.Huss@gmx.at

svn path=/trunk/playground/graphics/okular/; revision=646819
2007-03-26 18:41:16 +00:00
Pino Toscano
82389f9efa after constructing the text annotation, delete the selection as it's no more useful (and it isn't leaked)
svn path=/trunk/playground/graphics/okular/; revision=646514
2007-03-26 00:01:22 +00:00
Pino Toscano
229f3cf1de add a private function for the nearest Page pixmap, for the PagePainter usage;
this way, the pixmap structure can be finally hidden in the private class

svn path=/trunk/playground/graphics/okular/; revision=646502
2007-03-25 22:36:41 +00:00
Wilfried Huss
37235743bf Fix drawing of the toolbar.
svn path=/trunk/playground/graphics/okular/; revision=646481
2007-03-25 20:43:42 +00:00
Pino Toscano
a02c0785fe use the right icons for the rotation
svn path=/trunk/playground/graphics/okular/; revision=646383
2007-03-25 15:15:50 +00:00
Pino Toscano
213b25284f make the annotation tool tooltip text translatable
svn path=/trunk/playground/graphics/okular/; revision=646205
2007-03-24 22:56:32 +00:00
Pino Toscano
abd42c14cd the PickPoint annotator engine can draw a dashed frame around the selected zone if a tool wants it; applied to the free text annotation for now [and improved its description while I was there]
svn path=/trunk/playground/graphics/okular/; revision=646200
2007-03-24 22:45:14 +00:00
Pino Toscano
5d5eb0f2ad don't leak the menu
svn path=/trunk/playground/graphics/okular/; revision=645966
2007-03-24 01:13:47 +00:00
Pino Toscano
363023331d add a 'find next' button in the search bar of presentation mode
svn path=/trunk/playground/graphics/okular/; revision=645960
2007-03-23 23:28:39 +00:00
Pino Toscano
38c0e26674 keep the right position when we resize
svn path=/trunk/playground/graphics/okular/; revision=645759
2007-03-23 15:02:22 +00:00
Christian Ehrlicher
c5c2da7c89 fix win32 compilation
warnings--

svn path=/trunk/playground/graphics/okular/; revision=643874
2007-03-18 17:14:36 +00:00
Pino Toscano
6452da8291 PageSizeLabel misses its moc
svn path=/trunk/playground/graphics/okular/; revision=643859
2007-03-18 16:22:09 +00:00
Urs Wolfer
6a7101b632 take use of antialiased painter
svn path=/trunk/playground/graphics/okular/; revision=643728
2007-03-18 10:21:21 +00:00
Pino Toscano
8704da3d13 react to highlights and draw them
svn path=/trunk/playground/graphics/okular/; revision=643612
2007-03-17 23:28:05 +00:00
Pino Toscano
f55c401b20 Refactor the document search interfaces, as discussed on the mailing list.
Merge the search in normal mode and the type-ahead in a search bar that appears on the bottom of the page view. This should work nicely.
In presentation mode, add a small floating search toolbar that takes care of searching during the presentation mode, on document request. This is not working yet, but basically most of the work is done.

Please test and report any problems you find.

CCMAIL: okular-devel@kde.org

svn path=/trunk/playground/graphics/okular/; revision=643607
2007-03-17 22:58:41 +00:00
Pino Toscano
af1fd0c1f3 new icon name
svn path=/trunk/playground/graphics/okular/; revision=643535
2007-03-17 18:12:23 +00:00
Pino Toscano
d6dd0aa28c support for configuring the viewport moving; fix small issue with minimum search text length
svn path=/trunk/playground/graphics/okular/; revision=643530
2007-03-17 18:02:23 +00:00
Pino Toscano
05b00c2200 support (not so much tested) for the Next search type
svn path=/trunk/playground/graphics/okular/; revision=643515
2007-03-17 17:28:16 +00:00
Pino Toscano
0ac881f1f3 isolate the search search bar in an own class (child of KLineEdit), so it can be used with no copy-paste job
svn path=/trunk/playground/graphics/okular/; revision=643508
2007-03-17 16:58:01 +00:00
Pino Toscano
9581cc9594 the toolbar is not moveable
svn path=/trunk/playground/graphics/okular/; revision=643472
2007-03-17 14:58:19 +00:00
Pino Toscano
4da2254d24 move the private stuff of PageViewToolBar into the already existing private class
svn path=/trunk/playground/graphics/okular/; revision=643300
2007-03-16 20:36:48 +00:00
Pino Toscano
426e21ba6f just read the annotation tools _once_
svn path=/trunk/playground/graphics/okular/; revision=643295
2007-03-16 20:19:22 +00:00
Pino Toscano
55f8590f48 make it compile with Qt4.3 (snapshot)
svn path=/trunk/playground/graphics/okular/; revision=643279
2007-03-16 19:18:47 +00:00
Pino Toscano
9ccf6d520d adapt the icon names to the icon naming spec
svn path=/trunk/playground/graphics/okular/; revision=640710
2007-03-08 21:41:46 +00:00
Tobias Koenig
da204fd4b8 Match the forms exactly into the surrounding frame
svn path=/trunk/playground/graphics/okular/; revision=638384
2007-03-01 19:34:06 +00:00
Pino Toscano
a5f6538d43 avoid the jumping of the pageview to the next (hidden) focus form widget when hiding them
svn path=/trunk/playground/graphics/okular/; revision=637148
2007-02-25 14:59:26 +00:00
Pino Toscano
db8a10dc2c Preliminary supports for text and choice form fields.
This includes:
- the interfaces for the generators
- the basic widgets for editing their value
- a top bar for show/hide the forms of a document
- the implementation of the forms for the PDF backend
still nothing that can be done with them, nor the value of the forms can be saved...
... but it's a start! :-)

svn path=/trunk/playground/graphics/okular/; revision=637001
2007-02-25 00:07:59 +00:00
Pino Toscano
252de94b21 improve a bit the PageViewTopMessage api, in preparation of new future usage
svn path=/trunk/playground/graphics/okular/; revision=636493
2007-02-23 10:54:30 +00:00
Pino Toscano
1161debb9c i18n change: the plural forms are with %1, %2, etc now, %n is no more
svn path=/trunk/playground/graphics/okular/; revision=633277
2007-02-13 17:45:54 +00:00
Pino Toscano
3b062a8b6f In presentation mode, stop all the sound playbacks when switching page and when closing the presentation.
svn path=/trunk/playground/graphics/okular/; revision=630501
2007-02-05 15:27:11 +00:00
Pino Toscano
1e7cb0b2eb First version of an audio player for okular, able to play the sounds in the documents.
At the moment is quite simple and works only for external sounds.
Activate the sound playing when processing links and when switching pages in presentation mode only.

svn path=/trunk/playground/graphics/okular/; revision=630315
2007-02-05 00:49:40 +00:00
Albert Astals Cid
1587b9605a unnecessary but fun small optimizations, basically avoid unnecessary detach() calls by ensuring the const method is called
also remove a double search on a qmap

svn path=/trunk/playground/graphics/okular/; revision=629869
2007-02-03 23:09:40 +00:00
Pino Toscano
0a40c2ad0f double the width of the prev/next page buttons
svn path=/trunk/playground/graphics/okular/; revision=629217
2007-02-01 23:54:41 +00:00
Pino Toscano
f329a3e6dc SVN_SILENT unused
svn path=/trunk/playground/graphics/okular/; revision=628066
2007-01-28 23:16:17 +00:00
Pino Toscano
b4821c5f07 Disable the Zoom In/Zoom Out actions when resp. the maximum/minimum zoom is reached.
svn path=/trunk/playground/graphics/okular/; revision=627927
2007-01-28 16:29:48 +00:00
Pino Toscano
573f989b47 don't keep the domelement for every toc item, just extract the needed information
svn path=/trunk/playground/graphics/okular/; revision=627174
2007-01-25 21:35:20 +00:00
Pino Toscano
5b3606eb50 Copy -> Copy Text
svn path=/trunk/playground/graphics/okular/; revision=625577
2007-01-20 13:49:59 +00:00
Pino Toscano
b163e04115 Support for labelling the pages, and for displaying the page label (if any) in the table of contents side pane.
svn path=/trunk/playground/graphics/okular/; revision=625312
2007-01-19 23:30:32 +00:00
Pino Toscano
1041866493 Improve the Orientation menu, as suggested by our usability export Florian:
instead of choosing the orientation degrees (eg 0, 90, etc), use two Rotate Left/Right actions to rotate the whole document 90 degrees resp. on the left or on the right.
Also add an 'Original orientation' action to restore to the orientation of the document.

svn path=/trunk/playground/graphics/okular/; revision=625297
2007-01-19 21:43:53 +00:00
Pino Toscano
b9514f2310 finish drawing on the mask before setting it to the widget
svn path=/trunk/playground/graphics/okular/; revision=621865
2007-01-09 23:38:15 +00:00
Laurent Montel
34edbef72d Port to new api
svn path=/trunk/playground/graphics/okular/; revision=621624
2007-01-09 11:02:04 +00:00
Pino Toscano
dcd943cef7 SVN_SILENT fix #ifdef
svn path=/trunk/playground/graphics/okular/; revision=620441
2007-01-06 01:08:05 +00:00
Pino Toscano
18fab3d130 Improve the way we deal with generators that give the possibility to change the size of the pages: instead of let them destroy and recreate the pages (bad), ask them the sizes they support, then do the work ourselves and notify the generator when the work is done.
While I was at it, I changed from "paper size" to "page size", it should be better.

svn path=/trunk/playground/graphics/okular/; revision=620411
2007-01-05 23:12:06 +00:00
Pino Toscano
46632f1f6f As now the requests are done in the right order, request first the next and then the previous page.
svn path=/trunk/playground/graphics/okular/; revision=619959
2007-01-04 21:47:54 +00:00
Tobias Koenig
ac792e5c9c Fixed krazy issues
svn path=/trunk/playground/graphics/okular/; revision=619843
2007-01-04 15:22:28 +00:00
Pino Toscano
4aa85cdb49 One single char remove to create correctly the queue of pixmap requests: new asynchronous requests goes as last one in the group of other with the same priority.
Thus, if an observer requests eg pixmap for pages 2 and 3, now they are generated in the correct order the observer specified, and not in the reversed one.
Then, revert part of r619673, as the order is fixed now.

svn path=/trunk/playground/graphics/okular/; revision=619810
2007-01-04 14:28:54 +00:00
Pino Toscano
fa3f297b06 Fix a nasty bug that could happened in presentation mode:
when requestng -synchronously- a pixmap for the current page, it could be scheduled in the queue. Then, requesting the previous and next page in presentation mode -in a second request- caused the deletion of the original page request
The fix consists in requesting all the requests -at once-, so no request is lost.
Furthermore, swap the order of previous and next page request so the next page pixmap is requested before (worth touching Document directly?)

svn path=/trunk/playground/graphics/okular/; revision=619673
2007-01-04 00:02:48 +00:00
Tobias Koenig
ea51ee18f5 Do a lot of include cleanups... we install all important
header files now

svn path=/trunk/playground/graphics/okular/; revision=619492
2007-01-03 14:30:48 +00:00
Pino Toscano
652787611d make it build with the new kdelibs
svn path=/trunk/playground/graphics/okular/; revision=619217
2007-01-03 00:17:31 +00:00
Tobias Koenig
86a1fd3b69 Big cleanup of Document API and documentation:
* add full API docs
 * renamed getMetaData -> metaData
 * removed supportsRotation in Document and Generator
 * moved Permission and SearchDirection enums into separated header core/global.h

svn path=/trunk/playground/graphics/okular/; revision=619183
2007-01-02 22:37:55 +00:00
Tobias Koenig
14ea3ab2ef Further documentation and API cleanups
svn path=/trunk/playground/graphics/okular/; revision=619054
2007-01-02 17:05:49 +00:00
Pino Toscano
6d3cd62a11 it's no more needed to have the annotation boundary in the gui
svn path=/trunk/playground/graphics/okular/; revision=618240
2006-12-31 18:01:15 +00:00
Pino Toscano
c51c412057 ok, let's sdo it seriously now: use the right precision for the page duration that a PDF can give us
svn path=/trunk/playground/graphics/okular/; revision=618194
2006-12-31 14:41:34 +00:00
Pino Toscano
88779aa7d2 SVN_SILENT give the items IDs
svn path=/trunk/playground/graphics/okular/; revision=618144
2006-12-31 11:20:33 +00:00
Pino Toscano
5083655c11 Implement the page duration in presentation mode, and read the info from PDF documents.
svn path=/trunk/playground/graphics/okular/; revision=618136
2006-12-31 10:48:49 +00:00
Tobias Koenig
777877f2d2 Refactor the RMB menu for annotations, so we can use the menu for
the PageView and the SideReview.

BUGS: 137722

svn path=/trunk/playground/graphics/okular/; revision=617807
2006-12-30 12:40:54 +00:00
Pino Toscano
ff029376ce simplify
svn path=/trunk/playground/graphics/okular/; revision=617271
2006-12-28 15:48:13 +00:00
Pino Toscano
936ee20de5 old and unused files from the SoC
svn path=/trunk/playground/graphics/okular/; revision=617259
2006-12-28 15:09:22 +00:00
Pino Toscano
ea071caf9d Improve the way we get the contents of an annotation; dynamically change the tooltip of the annotation item in the side review pane.
svn path=/trunk/playground/graphics/okular/; revision=617106
2006-12-28 00:40:09 +00:00
Pino Toscano
48a772be4b move the ui-related utils functions for annotations in an own utils class
svn path=/trunk/playground/graphics/okular/; revision=617097
2006-12-27 23:56:38 +00:00
Pino Toscano
8add3d7863 really disable the active tool when hiding the annotating toolbar, thanks Bart for pointing that out
svn path=/trunk/playground/graphics/okular/; revision=617023
2006-12-27 19:22:22 +00:00
Pino Toscano
846dbf7cb9 don't shadow a class member
svn path=/trunk/playground/graphics/okular/; revision=616996
2006-12-27 17:25:26 +00:00
Pino Toscano
bbb55280d5 Simplify the auxiliary functions used within RegularArea<>, patch by André Wöbbeking.
Make the return value of RegularArea::geometry a simple list instead of a pointer, as suggested by André.

CCMAIL: Woebbeking@kde.org

svn path=/trunk/playground/graphics/okular/; revision=616994
2006-12-27 17:10:06 +00:00
Pino Toscano
c248956942 better use HTML ref instead of ref, otherwise we'll have "encoding" problems
svn path=/trunk/playground/graphics/okular/; revision=616993
2006-12-27 17:02:45 +00:00
Pino Toscano
539921bdf6 Improving the bookmark capabilities of okular.
Adding a BookmarkManager class that takes care of handling them in a proper way.
Adding a new tab in the sidebar to manage them:
- shows all the bookmarks in all the documents, or just in the current document
- cliking on a bookmark will bring to that bookmark, loading the document if necessary
- editing a bookmark title is possible either using F2 or right click -> Rename
- right click -> Remove to remove a bookmark
The only way to add new bookmark for the moment is the "old" way, ie right click -> Add bookmark, and it's not possible add more than one bookmark per page (but the system does not limit that).
The whole system should not be too difficult to understand, I will check with our usability master Florian next days.

svn path=/trunk/playground/graphics/okular/; revision=616979
2006-12-27 16:04:49 +00:00
André Wöbbeking
6e7d98b829 adapt to Aaron's kdelibs changes
svn path=/trunk/playground/graphics/okular/; revision=616901
2006-12-27 10:03:34 +00:00
Pino Toscano
112e1237b7 Add support for showing icons in the page view top message.
With simplier words: add an 'attach' icon in the message pane that informs about attachments in the current document.

svn path=/trunk/playground/graphics/okular/; revision=616780
2006-12-26 19:25:11 +00:00
Pino Toscano
62831ce6b9 SVN_SILENT reindent correctly
svn path=/trunk/playground/graphics/okular/; revision=616707
2006-12-26 14:36:26 +00:00
Pino Toscano
b9a2413619 remove the evil hack of the separator by using a custom role for the page number
svn path=/trunk/playground/graphics/okular/; revision=616706
2006-12-26 14:35:27 +00:00
Pino Toscano
b7328d7234 add an handy DocumentViewport::isValid() and use it where possible instead of doing checks manually
svn path=/trunk/playground/graphics/okular/; revision=616667
2006-12-26 12:26:49 +00:00
Pino Toscano
349dfb7eb1 move the delegate used to draw the side page numbers in an own file
svn path=/trunk/playground/graphics/okular/; revision=616662
2006-12-26 12:01:30 +00:00
Pino Toscano
dff36b98f8 simplify RegularAreaRect by avoiding the usage of pointers, as they don't give benefits anyway.
Fixing also the text extraction when using the rectangular selection across two or more pages.

svn path=/trunk/playground/graphics/okular/; revision=616264
2006-12-24 18:19:18 +00:00
Pino Toscano
25cec88b81 Add a way to change the font of text annotations.
At the moment, used only in in-place text annotations.

svn path=/trunk/playground/graphics/okular/; revision=616121
2006-12-23 18:37:04 +00:00
Pino Toscano
41cba45a4b clarify a debug statement, and silence others
svn path=/trunk/playground/graphics/okular/; revision=616100
2006-12-23 16:36:08 +00:00
Pino Toscano
ab508c75a9 hopefully draw the toc item correcty, this time
svn path=/trunk/playground/graphics/okular/; revision=615872
2006-12-23 00:34:40 +00:00
Pino Toscano
fd6166e74c update correctly when the option for toggling the page numbers in the toc is changed
svn path=/trunk/playground/graphics/okular/; revision=615815
2006-12-22 20:42:36 +00:00
Pino Toscano
3c0069f811 Display - if available - the page number on the right of every item in the table of contents.
Implements the KPDF wish #122863.

svn path=/trunk/playground/graphics/okular/; revision=615801
2006-12-22 19:26:28 +00:00
Pino Toscano
536ebab639 SmallIconSet -> KIcon
DesktopIconSet -> KIcon
fix the #include's accordingly, where possible

svn path=/trunk/playground/graphics/okular/; revision=615251
2006-12-20 20:37:50 +00:00
Laurent Montel
06b79cdf27 Compile++
svn path=/trunk/playground/graphics/okular/; revision=614897
2006-12-19 12:23:43 +00:00
Laurent Montel
81a9d32fe8 Compile++
svn path=/trunk/playground/graphics/okular/; revision=612690
2006-12-12 10:15:18 +00:00
Tobias Koenig
6f9d0df5cd Further annotation API cleanup
svn path=/trunk/playground/graphics/okular/; revision=612395
2006-12-11 07:59:02 +00:00
Pino Toscano
9343b5e54c temporarily disable the 'find next' shortcut from kactioncollection
svn path=/trunk/playground/graphics/okular/; revision=611143
2006-12-06 21:59:37 +00:00
Pino Toscano
5f7df5ba1a adapt to the recent kdelibs (plus a FIXME for a regression)
svn path=/trunk/playground/graphics/okular/; revision=610857
2006-12-05 20:29:20 +00:00
Tobias Koenig
a9f58440df First large commit for the Annotation API cleanup
* Moved all public member variables of Annotation to private
    and add accessors
  * Renamed RevScope and RevType to RevisionScope and RevisionType
  * Add API documentation (@pino, please review)

svn path=/trunk/playground/graphics/okular/; revision=610749
2006-12-05 11:05:50 +00:00
Albert Astals Cid
579644c631 forwardport r609253 and while at it fix broke pixmaprequest call
**** r609253 ****
Preload next and previous page if threading is enabled and not on low memory setting

svn path=/trunk/playground/graphics/okular/; revision=609258
2006-11-29 22:00:13 +00:00
Tobias Koenig
327334c194 Show newlines in annotation popup correctly
svn path=/trunk/playground/graphics/okular/; revision=609166
2006-11-29 16:41:12 +00:00
Albert Astals Cid
1987645027 fordwardport r608521
Using a singleshot timer to start the auto page change is bad because if the user changes the page manually you get more than one timer active at once and then next pages change in what seems a random time.

svn path=/trunk/playground/graphics/okular/; revision=608531
2006-11-27 20:17:11 +00:00
Tobias Koenig
57139e3192 API cleanup (utils.h), renamed getDpiX -> dpiX() and getDpiY -> dpiY()
svn path=/trunk/playground/graphics/okular/; revision=608236
2006-11-27 08:13:47 +00:00
Tobias Koenig
c7aba89080 Bugfix: Show content of AnnotWindow in popup
svn path=/trunk/playground/graphics/okular/; revision=608233
2006-11-27 08:09:27 +00:00
Pino Toscano
afa2e5a999 iterator -> const_iterator
svn path=/trunk/playground/graphics/okular/; revision=607842
2006-11-25 22:32:13 +00:00
Pino Toscano
3022f55916 iterator -> const_iterator
svn path=/trunk/playground/graphics/okular/; revision=607839
2006-11-25 22:21:00 +00:00
Albert Astals Cid
da3cd5c2fd put this inside the ifdef, makes too much noise if you don't want to see that much debug
svn path=/trunk/playground/graphics/okular/; revision=607508
2006-11-24 21:44:25 +00:00
Pino Toscano
5ce4b0674e Make okular able to copy the text selection to the clipboard (finally!).
svn path=/trunk/playground/graphics/okular/; revision=607496
2006-11-24 21:02:38 +00:00
Pino Toscano
f070c5cd32 When in aggressive mode, for the viewer area keep also the page previous and the one next to the pages currently visible.
svn path=/trunk/playground/graphics/okular/; revision=607468
2006-11-24 19:29:52 +00:00
Tobias Koenig
81fb3a383b Further cleanup of Page API:
* getAnnotations() -> annotations()
  * setBookmark()/hasBookmark() -> setBookmarked()/isBookmarked()
  * moved as much private API of Page as possible to private class

svn path=/trunk/playground/graphics/okular/; revision=607233
2006-11-23 19:25:52 +00:00
Tobias Koenig
4848631daf Renamed all the Page::getXyz() methods to Page::xyz() to be konsistent
with the rest of KDE and ... we are no Java developers ;)

svn path=/trunk/playground/graphics/okular/; revision=607204
2006-11-23 17:11:04 +00:00
Tobias Koenig
14d6515b16 Changed the enum SearchDir to SearchDirection and use less strange
abbreviations for its items.

Replaced the 'bool strictCase' parameter of Page::findText
with 'Qt::CaseSensitivity caseSensitivity' for better readable code.


svn path=/trunk/playground/graphics/okular/; revision=607203
2006-11-23 16:54:28 +00:00
Tobias Koenig
a7b04cb92b Replaced
Page::setSearchPage( TextPage* );
  Page::hasSearchPage();

with

  Page::setTextPage( TextPage* );
  Page::hasTextPage();

to make the API clearer. The TextPage is not only used for
searching but also for extracting selected text, so the term
'search' is confusing...


svn path=/trunk/playground/graphics/okular/; revision=607195
2006-11-23 16:09:26 +00:00
Albert Astals Cid
ee046a1ad6 fordward port Revision 606296
********
 Fix "No scrolling when selection reaches border"

svn path=/trunk/playground/graphics/okular/; revision=607042
2006-11-22 21:32:21 +00:00
Pino Toscano
1c710fc2eb better use itemActivated
svn path=/trunk/playground/graphics/okular/; revision=606823
2006-11-21 22:25:12 +00:00
Pino Toscano
2840bc7c3d Smootly move the viewer area to the annotation when an annotation item in the review tab is double-clicked.
BUG: 137631

svn path=/trunk/playground/graphics/okular/; revision=606817
2006-11-21 22:08:49 +00:00
Albert Astals Cid
ac1c0b75bc const_iterator is your friend :-)
svn path=/trunk/playground/graphics/okular/; revision=606558
2006-11-20 20:10:42 +00:00
Albert Astals Cid
ccbd55a036 don't look twice in the map
svn path=/trunk/playground/graphics/okular/; revision=606547
2006-11-20 19:07:45 +00:00
Tobias Koenig
893d6a4280 Missed this occurence of inkPaths which lead to a crash/assert...
svn path=/trunk/playground/graphics/okular/; revision=606525
2006-11-20 17:39:27 +00:00
Tobias Koenig
a490cc0cd7 Add the following functionality:
* Bring QPixmap* back to make Albert happy ;)
 * Store only one QPixmap per page/size and rotate it directly
 * Rotate ObjectRects (boundary)
 * Rotate Annotations (point coordinates)
 * Don't reload pixmaps, ObjectRects and annotations on rotation

svn path=/trunk/playground/graphics/okular/; revision=606371
2006-11-20 07:53:32 +00:00
Pino Toscano
45fe1103c4 SVN_SILENT const
svn path=/trunk/playground/graphics/okular/; revision=606150
2006-11-19 13:50:41 +00:00
Pino Toscano
69e9777ad2 delete the page items when destroying the page view
svn path=/trunk/playground/graphics/okular/; revision=606143
2006-11-19 13:20:22 +00:00
Pino Toscano
c0ab6c7b88 properly delete it
svn path=/trunk/playground/graphics/okular/; revision=606112
2006-11-19 11:36:06 +00:00
Pino Toscano
4a40c3fd9f fix the drawing artifacts when the review toolbar is placed in eg right or bottom position
svn path=/trunk/playground/graphics/okular/; revision=606106
2006-11-19 11:01:27 +00:00
Pino Toscano
0f4884e7fc make the agg drawing routine take into account the opacity value for both pena dn brush color, and paint the ink annotation using also the specified opacity level
svn path=/trunk/playground/graphics/okular/; revision=606104
2006-11-19 10:44:00 +00:00
Pino Toscano
e5e7393e22 the opacity value applies also to the brush color
svn path=/trunk/playground/graphics/okular/; revision=606027
2006-11-19 01:27:18 +00:00
Pino Toscano
6fe91bae4d usability: as the annotation tools can be used only in normal mode, switch to normal mode when the user choose to use them
svn path=/trunk/playground/graphics/okular/; revision=606026
2006-11-19 01:23:06 +00:00
Pino Toscano
44a69612ef Make okular able to construct and display Geometric (Rectangle/Ellipse) Annotations.
Extended the annotation properties dialog to choose the type (rect/ellipse) or the color for the inner part.
Added a button in the review toolbar to construct a cyan ellipse.

svn path=/trunk/playground/graphics/okular/; revision=606023
2006-11-19 00:46:01 +00:00
Albert Astals Cid
73f0a7269d resize the pageview widget when no doc is opened so the "gray" area expands
svn path=/trunk/playground/graphics/okular/; revision=606019
2006-11-19 00:04:16 +00:00
Pino Toscano
d3e6ffe673 fix error did in the previous commit
svn path=/trunk/playground/graphics/okular/; revision=606016
2006-11-18 23:51:20 +00:00
Pino Toscano
8450a373a2 makeItCompile
svn path=/trunk/playground/graphics/okular/; revision=605993
2006-11-18 21:43:54 +00:00
Albert Astals Cid
9099fbecf7 Some krazy fixes
svn path=/trunk/playground/graphics/okular/; revision=605992
2006-11-18 21:36:56 +00:00
Pino Toscano
e955192030 make the pixmap optional in the PickPointEngine
svn path=/trunk/playground/graphics/okular/; revision=605990
2006-11-18 21:24:25 +00:00
Pino Toscano
4cb1a040c0 extend the property dialog for the highlight annotation, so it's possible to change the type of highlighting
svn path=/trunk/playground/graphics/okular/; revision=605982
2006-11-18 20:37:03 +00:00
Pino Toscano
33fb7d9eb5 add a black underline tool to the review toolbar
svn path=/trunk/playground/graphics/okular/; revision=605981
2006-11-18 20:32:34 +00:00
Pino Toscano
5a03c11e0a better check that we've selected something
svn path=/trunk/playground/graphics/okular/; revision=605908
2006-11-18 15:22:16 +00:00
Pino Toscano
274469dae8 Almost complete support for inverse search within okular.
THe system generally works; what is missing is a good activating strategy (added in TODO - our usability expert is working on that), and a GUI to configure the editor.
The DVI backend was adapted to use this new feature.
(The PDF backend will use it soon.)

svn path=/trunk/playground/graphics/okular/; revision=605708
2006-11-17 22:15:15 +00:00
Tobias Koenig
57a240aca8 Replace cropImageOnImage by a simple QImage::copy()
svn path=/trunk/playground/graphics/okular/; revision=605194
2006-11-15 20:02:51 +00:00
Leandro Emanuel López
6c65a2cdb5 activate the item's link title if installed.
svn path=/trunk/playground/graphics/okular/; revision=604940
2006-11-14 18:55:43 +00:00
Aaron J. Seigo
77932c92dd two small changes, passed by pintoree on irc:
- render the viewed rect area in the thumbnail a bit more elegantly
- Render Mode -> View Mode ... "render" is geekanese, "view" is proper luserian

svn path=/trunk/playground/graphics/okular/; revision=604731
2006-11-14 00:27:30 +00:00
Leandro Emanuel López
c8db3ae9c4 Set the NewStuffDialog window title and when a item is installed one click open the PDF.
svn path=/trunk/playground/graphics/okular/; revision=604730
2006-11-14 00:22:23 +00:00
Pino Toscano
eb63c03bd5 we can draw inplace text annotation fully transparent, and be sure to use the alpha color when painting them
svn path=/trunk/playground/graphics/okular/; revision=604208
2006-11-12 00:48:30 +00:00
Pino Toscano
d50a458de4 fix regression: behave correctly when putting the mouse out of a link area
svn path=/trunk/playground/graphics/okular/; revision=604067
2006-11-11 13:45:44 +00:00
Pino Toscano
e681776682 don't show a wide minibar when no document is opened
svn path=/trunk/playground/graphics/okular/; revision=604048
2006-11-11 12:00:03 +00:00
Albert Astals Cid
ea831f2214 following popular aclamation we use whole numbers as default zoom values
svn path=/trunk/playground/graphics/okular/; revision=603082
2006-11-07 19:29:48 +00:00
Pino Toscano
f66f7333ed usability fix: mouse wheel up goes to the next page, not to the previous (and viceversa for mouse wheel down)
svn path=/trunk/playground/graphics/okular/; revision=602310
2006-11-05 17:29:07 +00:00
Pino Toscano
b6756ecfa4 usability fix: don't make clicks in the top bar of the presentation mode being propagated to the presentation widget
svn path=/trunk/playground/graphics/okular/; revision=602308
2006-11-05 17:25:46 +00:00
Pino Toscano
a23fab8291 display eg '66.7%' instead of '66.70%' in zoom combobox
svn path=/trunk/playground/graphics/okular/; revision=601624
2006-11-03 22:09:16 +00:00
Tobias Koenig
bea71df6e0 * Made image rotation asynchronous
* Changed Page API and PagePainter to work only with QImage

svn path=/trunk/playground/graphics/okular/; revision=601581
2006-11-03 17:57:32 +00:00
Pino Toscano
49074ea305 improve these strings, as our usability master suggested
svn path=/trunk/playground/graphics/okular/; revision=601511
2006-11-03 13:59:44 +00:00
Pino Toscano
3336a73429 fix regression (related to kpdf's #99315)
svn path=/trunk/playground/graphics/okular/; revision=601363
2006-11-03 00:12:23 +00:00
Pino Toscano
5862ea6dc8 create an Identity settings section and move the author field there
svn path=/trunk/playground/graphics/okular/; revision=601335
2006-11-02 22:19:32 +00:00
Pino Toscano
91611a9afc better this way
svn path=/trunk/playground/graphics/okular/; revision=601332
2006-11-02 21:57:59 +00:00
Pino Toscano
1112ada99f add an option to configure the color of the pencil of the presentation mode
svn path=/trunk/playground/graphics/okular/; revision=601067
2006-11-01 23:03:48 +00:00
Pino Toscano
4cb78d9ec6 stop the popping up of a "what's this?" context menu when pressing the right mouse button (to go to the previous page)
svn path=/trunk/playground/graphics/okular/; revision=600984
2006-11-01 15:37:57 +00:00
Pino Toscano
4130ba5e49 Just like any other presentation application, now you can draw red paths on a page during the presentation mode.
Like that kind of applications, the drawings are erased when switching page and when exiting the presentation, and there is a button to explicitely clear the page.

svn path=/trunk/playground/graphics/okular/; revision=600982
2006-11-01 15:34:27 +00:00
Pino Toscano
fdbd0101a4 move the AnnotatorEngine base class and the SmoothPath engine out of the private use of the page view annotator
svn path=/trunk/playground/graphics/okular/; revision=600980
2006-11-01 15:23:11 +00:00
Albert Astals Cid
511e6f32a1 fix porting bug
Thanks Pino for noticing

svn path=/trunk/playground/graphics/okular/; revision=600483
2006-10-30 18:17:11 +00:00
Pino Toscano
e7f46c265e i like icons
svn path=/trunk/playground/graphics/okular/; revision=600478
2006-10-30 18:03:56 +00:00
Pino Toscano
2bd05e79d5 a generator can not block the gui events of the main page view, otherwise bad things will happen - it's also not really logic to allow such a thing, better think about something else if a generator wants to interact with the gui somehow
svn path=/trunk/playground/graphics/okular/; revision=600225
2006-10-29 22:33:24 +00:00
Pino Toscano
e5f7314c65 hand-written ROUND -> qRound
svn path=/trunk/playground/graphics/okular/; revision=600081
2006-10-29 13:42:07 +00:00
Holger Freyther
d8e92f5ff8 okular/ui/pageview.cpp: Make it compile with QtMac
I have XRender available on my system but I use QtMac
    so only check for XRender if we use Qt/X11.

svn path=/trunk/playground/graphics/okular/; revision=600075
2006-10-29 13:17:19 +00:00
Pino Toscano
08eab9344b fix the drawing of two highlight annotations
svn path=/trunk/playground/graphics/okular/; revision=599965
2006-10-29 09:50:57 +00:00
Pino Toscano
95046e8889 use the right arrows in RtL layout
svn path=/trunk/playground/graphics/okular/; revision=599954
2006-10-29 08:52:31 +00:00
Pino Toscano
f387bb2b0a Cancel selecting when Esc is pressed.
Implements KPDF wish #126359.

svn path=/trunk/playground/graphics/okular/; revision=599881
2006-10-28 23:27:44 +00:00
Pino Toscano
6ac2174811 move the configuration update procedures of the page view into the page view itself
make the pageview update when changing the number of columns in overview mode

svn path=/trunk/playground/graphics/okular/; revision=599878
2006-10-28 22:58:05 +00:00
Pino Toscano
8def2109ec change the metaData() function of the Generator to use QVariant as type for the returned value and for the 'option' parameter, this gives more flexibility
svn path=/trunk/playground/graphics/okular/; revision=599847
2006-10-28 19:18:36 +00:00
Pino Toscano
0be674f981 Forwardport SVN commit 599376 by pino:
Don't try querying the document if it's closed.

svn path=/trunk/playground/graphics/okular/; revision=599385
2006-10-26 20:59:07 +00:00
Pino Toscano
03e01b97f6 it's not a real composition effect, but this should help a bit...
svn path=/trunk/playground/graphics/okular/; revision=598542
2006-10-23 21:35:58 +00:00
Pino Toscano
4c0808fabf a bit less of #include's
svn path=/trunk/playground/graphics/okular/; revision=598229
2006-10-22 23:00:39 +00:00
Pino Toscano
ab1fe9f8cc initialize a pointer is always a good idea
svn path=/trunk/playground/graphics/okular/; revision=598206
2006-10-22 21:20:08 +00:00
Pino Toscano
23b3a7f6a1 ooops forgot to remove some debug
svn path=/trunk/playground/graphics/okular/; revision=598204
2006-10-22 21:07:41 +00:00
Pino Toscano
339bfc6907 Create a new AnnotationEngine to select some text from the current page, and make it able to distill Highlight annotations. Now you can hightlight th text in your document, wooo :)
svn path=/trunk/playground/graphics/okular/; revision=598201
2006-10-22 20:53:56 +00:00
Pino Toscano
5f28d1163f make a pair of actions name and label more close to the others
remove unused (duplicated) action

svn path=/trunk/playground/graphics/okular/; revision=598165
2006-10-22 18:19:17 +00:00
Pino Toscano
d010d05e6e make the AnnotatorEngine able to return a list of annotations (this will be useful later...)
svn path=/trunk/playground/graphics/okular/; revision=598151
2006-10-22 16:43:55 +00:00
Pino Toscano
7d6f5be0e5 less verbose
svn path=/trunk/playground/graphics/okular/; revision=598093
2006-10-22 13:49:11 +00:00
Pino Toscano
d37a58ec71 show something as caption for the presentation mode; show always the file name instead of the full url when in both the part and presentation mode there is no document title available
svn path=/trunk/playground/graphics/okular/; revision=597895
2006-10-21 23:21:11 +00:00
Pino Toscano
ed84916c0d spell checking
svn path=/trunk/playground/graphics/okular/; revision=597875
2006-10-21 22:07:05 +00:00
Pino Toscano
1fabb1880d rename setSelected to setCurrent, as it clashes with a new function of Qt4.2
svn path=/trunk/playground/graphics/okular/; revision=597727
2006-10-21 13:11:43 +00:00
Albert Astals Cid
d3f03d2144 Change slotRequestVisiblePixmaps that is called due to a rotation change to a queued petition, this makes rotation changing from 0º to 180º work as previously pixmaps where not reasked because the page items relayouting was done after (in a queded petition) and so they did not intersect at this stage, now as we use a queued petition too for slotRequestVisiblePixmaps, the order is correct and works
Transform QTimer::singleShot to QMetaObject::invokeMethod as thiago said it is better

svn path=/trunk/playground/graphics/okular/; revision=597307
2006-10-19 21:18:39 +00:00
Pino Toscano
85bf380d7d this seems a little bit faster...
svn path=/trunk/playground/graphics/okular/; revision=596608
2006-10-17 22:56:49 +00:00
Pino Toscano
a5d7d31d33 isolate the Xrender dependant code, so okular can be compile and work even without it
svn path=/trunk/playground/graphics/okular/; revision=596572
2006-10-17 21:26:43 +00:00
Pino Toscano
ef1fb7e8d5 const
svn path=/trunk/playground/graphics/okular/; revision=596146
2006-10-16 19:47:20 +00:00
Pino Toscano
87904adec4 change a bit how we look for objects in a page: first look for annotations, then links (acrobat reader does this way too, so it should be the "right" thing to do)
svn path=/trunk/playground/graphics/okular/; revision=596127
2006-10-16 19:19:42 +00:00
Pino Toscano
1deb800611 instead of being a frame, just use two frames acting as side lines to emulate a
visual zone for the minibar. this makes the prev/next buttons more reachable.

svn path=/trunk/playground/graphics/okular/; revision=595840
2006-10-15 21:10:52 +00:00
Albert Astals Cid
5143cd2512 Report page size
It's only reported in case it makes sense for the format
Only implemented for pdf atm
If all pages have the same size it's reported on document properties
else there's a label shown in the new bottom bar with the size of the current page

svn path=/trunk/playground/graphics/okular/; revision=595822
2006-10-15 19:37:14 +00:00
Albert Astals Cid
7cd16e9d61 fix indenting + hoverbuttons do not accept focus
svn path=/trunk/playground/graphics/okular/; revision=595774
2006-10-15 16:12:26 +00:00
Pino Toscano
f27f44fd79 Detach the progress widget from the minibar, and move the minibar as a small toolbar on the bottom of the page view.
Implements KPDF wish #102788.

svn path=/trunk/playground/graphics/okular/; revision=595764
2006-10-15 15:59:22 +00:00
Pino Toscano
2b143ca661 better this than a null icon
svn path=/trunk/playground/graphics/okular/; revision=595472
2006-10-14 12:19:16 +00:00
Pino Toscano
22aac31f78 remove some code that is done automatically by Qt for us
svn path=/trunk/playground/graphics/okular/; revision=595471
2006-10-14 12:18:31 +00:00
Pino Toscano
c8ba6d8c15 be sure to remove also the pointer to the old annotation window when deleting the window itself
svn path=/trunk/playground/graphics/okular/; revision=595393
2006-10-14 10:55:10 +00:00
Pino Toscano
c9346d8331 tooltip for annotation on the pageview
svn path=/trunk/playground/graphics/okular/; revision=595377
2006-10-14 10:07:42 +00:00
Pino Toscano
20947b2e8d much like the other side panes
svn path=/trunk/playground/graphics/okular/; revision=595366
2006-10-14 08:52:34 +00:00