Commit graph

826 commits

Author SHA1 Message Date
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
Pino Toscano 280ba5fd68 improve tooltip
svn path=/trunk/playground/graphics/okular/; revision=595313
2006-10-13 23:13:47 +00:00
Albert Astals Cid 7ae910d0b8 fix rendering when at very high zoom levels
svn path=/trunk/playground/graphics/okular/; revision=594633
2006-10-11 20:26:09 +00:00
Pino Toscano 6bd498e8e3 draw the page outline rect correctly again
svn path=/trunk/playground/graphics/okular/; revision=594614
2006-10-11 18:26:23 +00:00
Pino Toscano fd26a17131 show the clear button of the line edit
svn path=/trunk/playground/graphics/okular/; revision=593736
2006-10-08 21:37:28 +00:00
Albert Astals Cid 4458c20075 viewport() -> widget()
well spotted pino! 

svn path=/trunk/playground/graphics/okular/; revision=593718
2006-10-08 20:12:02 +00:00
Albert Astals Cid d212d60a99 correct indentign, that happens because i use vim instead of kate :-/
svn path=/trunk/playground/graphics/okular/; revision=593716
2006-10-08 20:09:32 +00:00
Albert Astals Cid a5b9f5bff9 since QVBoxLayout seems to have changed its behaviour we do the relayouting at hand since it's easy enough
svn path=/trunk/playground/graphics/okular/; revision=593714
2006-10-08 20:06:27 +00:00
Albert Astals Cid d767c84a30 Fix painting when at very few pages and zoom level alst pages where not beign painted
svn path=/trunk/playground/graphics/okular/; revision=593692
2006-10-08 18:20:04 +00:00
Albert Astals Cid e6dae78ac3 Port Q3ScrollView to QScrollArea, probably still has some small issues but seems to work quite well
svn path=/trunk/playground/graphics/okular/; revision=593332
2006-10-07 14:40:32 +00:00
Pino Toscano c2686ba1d1 show the annotation type in the review side tab, and a simple tooltip with its author
svn path=/trunk/playground/graphics/okular/; revision=593266
2006-10-07 11:00:39 +00:00
Pino Toscano 858a6bf783 factor out the text selections ruotines, so they can be used also from other places
svn path=/trunk/playground/graphics/okular/; revision=592041
2006-10-03 17:13:42 +00:00
Pino Toscano ac87494ce0 As suggested by our usability expert Florian, add a bar above the page view showing in case the document has embedded files, that can be clsed with the X button.
svn path=/trunk/playground/graphics/okular/; revision=591837
2006-10-03 10:11:16 +00:00
Albert Astals Cid 792023ffde don't show invalid dates
svn path=/trunk/playground/graphics/okular/; revision=590351
2006-09-29 21:46:13 +00:00
Albert Astals Cid 0ecf1ba8da Fix autoscroll
svn path=/trunk/playground/graphics/okular/; revision=590053
2006-09-29 09:02:07 +00:00
Albert Astals Cid de8d4bad59 reinstantiate the fact that right pressing and dragging in select mode moves you to the selection mode
svn path=/trunk/playground/graphics/okular/; revision=589908
2006-09-28 22:19:31 +00:00
Albert Astals Cid 6bf2d5947f fix my own breakage
svn path=/trunk/playground/graphics/okular/; revision=589890
2006-09-28 21:41:50 +00:00
Pino Toscano 7bebb16619 make the sorting model working correctly, thanks to icefox!
svn path=/trunk/playground/graphics/okular/; revision=589657
2006-09-28 12:21:04 +00:00
Pino Toscano 71933af682 show something in case of documents with no fonts
svn path=/trunk/playground/graphics/okular/; revision=589094
2006-09-27 15:57:15 +00:00
Albert Astals Cid a1a3c9c559 IMadeItWorkSoRemoveTheTODO
svn path=/trunk/playground/graphics/okular/; revision=588911
2006-09-27 10:52:27 +00:00
Albert Astals Cid 7f63a0128c makeItWork
svn path=/trunk/playground/graphics/okular/; revision=588909
2006-09-27 10:52:02 +00:00
Pino Toscano 853d6c70a7 Give a tooltip in the page view for every kind of lnk we support.
Also improve a bit the one in the presentation mode, and give a message when the link is a "go to the page x" link.
Implements KPDF wish #131361.

svn path=/trunk/playground/graphics/okular/; revision=588899
2006-09-27 10:28:03 +00:00
Albert Astals Cid a9a27a9894 remove qt3 support calls
svn path=/trunk/playground/graphics/okular/; revision=588888
2006-09-27 10:04:17 +00:00
Pino Toscano 42310e184c Restructuring a bit how the text-editor-like selection works:
* putting it in an own view mode
* associating the selection to every page
* using a better algorithm to calculate the selection, even in a page range
* moving its drawing from the page view to the page painter, so it's possibile to draw it just like it's done with eg annotations

Other changes (more or less related):
* moved the annotation popup to a better place, so it won't interfere with annotation drawing
* commented some debug code in TextPage

svn path=/trunk/playground/graphics/okular/; revision=588795
2006-09-26 22:22:01 +00:00
Pino Toscano 62e29bcc8f KPDF -> okular
svn path=/trunk/playground/graphics/okular/; revision=587004
2006-09-21 09:39:32 +00:00
Pino Toscano aafd2b684e more KPDF -> okular renaming in comments, include guards and READMEs
svn path=/trunk/playground/graphics/okular/; revision=587000
2006-09-21 09:33:56 +00:00
Tobias Koenig df7d144c10 Moved all classes in core/ into the 'Okular' namespace and removed
nearly all references to kpdf (knewstuff still missing).

svn path=/trunk/playground/graphics/okular/; revision=586993
2006-09-21 08:45:36 +00:00
Laurent Montel 95486afabf clear button is not necessary it's into klineeedit now
svn path=/trunk/playground/graphics/okular/; revision=586807
2006-09-20 16:55:05 +00:00
Pino Toscano 9bbabc1f64 Forward port to okular of KPDF commit 586747:
Make okular a bit more friendly for users of RtL languages:
- correctly place the message pane (top-left corner of page view for LtR, top-right for RtL)
- make the mini-progressbar fully usable for both the writing directions
(the icons of the previous/next page buttons were already fixed by me)

svn path=/trunk/playground/graphics/okular/; revision=586751
2006-09-20 13:58:28 +00:00
Pino Toscano f2ecb5fb91 use the right icon when showing annotation-related messages
svn path=/trunk/playground/graphics/okular/; revision=586560
2006-09-19 23:14:12 +00:00
Pino Toscano b1d70d87a8 icon change for the annotation property action
svn path=/trunk/playground/graphics/okular/; revision=586559
2006-09-19 23:12:49 +00:00
Pino Toscano 45615e5289 Reworked a bit the ObjectRect API, by allowing subclassing for easiness wrt Annotation's. The brand new AnnotationObjectRect is responsible for providing the annotation bounding rect (that may vary for the various annotation types).
Adapted also to receive the X and Y scale, so the bounding rect for every kind of ObjectRect can depend on a specific page size.
As a consequence, we can add also the annotations among the rects of a Page, and use the standard getObjectRect to find them.

svn path=/trunk/playground/graphics/okular/; revision=586457
2006-09-19 17:17:29 +00:00
Pino Toscano 4d0d19be83 - reduce a bit the font used for the date label
- shrink the option button as much as we can

svn path=/trunk/playground/graphics/okular/; revision=586288
2006-09-19 10:20:13 +00:00
Pino Toscano 1773275615 draw the icon of a linked text annotation always with a fixed, regardless of zoming
svn path=/trunk/playground/graphics/okular/; revision=586286
2006-09-19 10:19:13 +00:00
Dirk Mueller 89bacb77bb compile++
svn path=/trunk/playground/graphics/okular/; revision=586265
2006-09-19 09:09:30 +00:00
Pino Toscano b273826b35 - don't visually consider a zero-length input as failed search
- no need to manually store the case sensitivity, just use the action

svn path=/trunk/playground/graphics/okular/; revision=586035
2006-09-18 14:54:29 +00:00
Pino Toscano 27dc15c960 use a standard color (yellow) when the annotation color is not defined
svn path=/trunk/playground/graphics/okular/; revision=585682
2006-09-17 18:22:00 +00:00
Pino Toscano dc2c0bef27 Rewrite almost completely the AnnotWindow so it uses less hacks and more Qt stuff; now it's a bit more clean
svn path=/trunk/playground/graphics/okular/; revision=585647
2006-09-17 16:09:10 +00:00
Pino Toscano 78bffae1e3 the annotation toolbar can be moved around again
svn path=/trunk/playground/graphics/okular/; revision=585598
2006-09-17 13:01:36 +00:00
Pino Toscano dbff613876 update the modification time when clicking on Ok
svn path=/trunk/playground/graphics/okular/; revision=585467
2006-09-17 09:27:01 +00:00
Pino Toscano 3b2420e7c0 SVN_SILENT {x|y}scale -> page{width|height}
svn path=/trunk/playground/graphics/okular/; revision=585461
2006-09-17 09:08:03 +00:00
Pino Toscano a5ee705911 Annotations:
reverting back the drawing of InPlace Text annotations to the unbuffered ones, but with a more clever behaviout than before:
- the text is drawn wrt the size of the page, and thenscaled to the real annotation boundary size. this makes the drawing of the annotation more similar to the page layout
- the bounding rectangle is drawn to be max 1pixel wide: if the drawn page is smaller than the page, then the rect is scaled along with the text, otherwise it's drawn after the scaling, so it won't appear huge at high levels of zoom
The AnnotationEngine's had to be modified by adding a page pointer parameter to the event() function, necessary to compute correctly the bounding rect of an inline text annotation.

svn path=/trunk/playground/graphics/okular/; revision=585289
2006-09-16 21:16:58 +00:00
Pino Toscano be5163d35e const
svn path=/trunk/playground/graphics/okular/; revision=585245
2006-09-16 17:11:13 +00:00
Pino Toscano 6c2ea7b63d replace the hard-coded close button with a standard one.
the whole widget needs more loving, though.

svn path=/trunk/playground/graphics/okular/; revision=585241
2006-09-16 17:06:56 +00:00
Pino Toscano 7ee4cbcae9 format a datetime in the kde's way
svn path=/trunk/playground/graphics/okular/; revision=585234
2006-09-16 16:38:09 +00:00
Pino Toscano 2202f9cf3e Annotations:
- draw the leader lines (and the extensions) for Line annotations that have them
- add a config widget for setting their length in Line annotations

svn path=/trunk/playground/graphics/okular/; revision=585212
2006-09-16 14:58:32 +00:00
Brad Hards 0e5f1bc41d Fix typo in column title.
Resize columns to fit contents, and widget to fit contents (more or
less - the second part isn't too good).

svn path=/trunk/playground/graphics/okular/; revision=585027
2006-09-16 03:49:40 +00:00
Albert Astals Cid 5fda8d50b8 did not want to commit that
svn path=/trunk/playground/graphics/okular/; revision=584935
2006-09-15 21:12:25 +00:00
Albert Astals Cid 4e04b301f1 Almost foget to fordwardport r582561
Fix bug 133507 that prevented the correct restoring of the document viewport on session restore for remote documents

svn path=/trunk/playground/graphics/okular/; revision=584932
2006-09-15 21:08:48 +00:00
Laurent Montel 8ad07fc5da Compile++
svn path=/trunk/playground/graphics/okular/; revision=584683
2006-09-15 11:57:39 +00:00
Pino Toscano 8357b47a8c Annotations:
support the Hidden and DenyDelete flags

svn path=/trunk/playground/graphics/okular/; revision=584409
2006-09-14 18:42:28 +00:00
Pino Toscano f1fa2511e8 Annotations:
- fix once again the PixmapPreviewSelector to support adding a visible name and an id for each item: this way we can add new pixmaps to it associating every pixmap name to a visible string (usually i18n'ed)
- when clicking on Apply in the Annotation Properties dialog, there are no changes pending so the annotation is unchanged again

svn path=/trunk/playground/graphics/okular/; revision=584208
2006-09-14 10:36:15 +00:00
Pino Toscano 58610481d8 Annotations:
- really activate the Apply button of the Properties dialog only when something is changed
- apply the changed in real-time, so they cna be seen directly with Apply and no need to close the dialog
- add a small fix (last, I hope) for the PixmapPreviewSelector about the pixmap loading 

svn path=/trunk/playground/graphics/okular/; revision=583922
2006-09-13 19:52:46 +00:00
Pino Toscano 15baef171e Annotations:
- improve the icon loading strategy for Stamp and Text(Linked) annotations: first look where we have the custom icons, then in the system place(s)
- add a simple (for now) TextAnnotationWidget to change the icon of a Linked Text annotation

svn path=/trunk/playground/graphics/okular/; revision=583882
2006-09-13 18:19:22 +00:00
Pino Toscano a6dfc76123 extract a PixmapPreviewSelector out of the StampAnnotationWidget
svn path=/trunk/playground/graphics/okular/; revision=583857
2006-09-13 17:28:32 +00:00
Tobias Koenig 2f0946e831 Make selection tool working again
svn path=/trunk/playground/graphics/okular/; revision=583789
2006-09-13 12:49:12 +00:00
Tobias Koenig c3c79fa216 SVN_SILENT code cleanup
svn path=/trunk/playground/graphics/okular/; revision=583782
2006-09-13 12:11:42 +00:00
Pino Toscano c178ed6392 if we're constructing a polygon (closed), then really set that it is closed instead of closign manually adding the first point to the path
svn path=/trunk/playground/graphics/okular/; revision=583633
2006-09-12 20:47:36 +00:00
Pino Toscano c3a4b37301 Annotations:
start a basic system for the annotation properties editing. Add a base class that will act as "interface", and a factory to create the right subclass depending on the annotation type.
Adapt the Annotation Properties dialog to interact with the annotation widget.
Add the editing support for Stamp Annotation (but the artwork are missing, grrr)

svn path=/trunk/playground/graphics/okular/; revision=583620
2006-09-12 20:21:34 +00:00
Pino Toscano aabe548eac when we have no color set for a Linked TextAnnotation, don't try to colorize the icon with a valid color, but leave it gray instead
svn path=/trunk/playground/graphics/okular/; revision=583618
2006-09-12 20:15:28 +00:00
Pino Toscano 05d97ede77 Annotations:
- make the PagePainter draw all the points specified in a LineAnnotation, as it can represent also a Polygon or Polyline annotation
- automatically read the annotation dom element in the base AnnotatorEngine class, so every engine won't need to read it on its own
- properly reset some vars in the engines
- when constructing a Stamp annotation, use the right 'icon' attribute of the annotation element (and not the icon of the engine)
- renamed the TwoPointsEngine into PolyLineEngine, and abstracted to construct a polygon/polyline with a specified number of sides
- added a polygon button on the annotation toolbar
- check better if the annotator has to paint something

svn path=/trunk/playground/graphics/okular/; revision=583102
2006-09-11 11:51:10 +00:00
Pino Toscano 3578b4b9e8 Annotations:
- improve the calculation of the bounding rect for freetext annotations
- fix the drawing of the pixmap associated with the PickPointEngine
- implement the creation of stamp annotations

svn path=/trunk/playground/graphics/okular/; revision=582808
2006-09-10 16:10:40 +00:00
Pino Toscano 0395938c7a move the drawing of the TextAnnotation::InPlace from the unbuffered annotations to the buffered ones: this allow us to draw using the specified opacity, and later we could easily draw the callout
svn path=/trunk/playground/graphics/okular/; revision=582624
2006-09-09 22:25:33 +00:00
Albert Astals Cid 5d7dd80086 fordwardport r582532
svn path=/trunk/playground/graphics/okular/; revision=582534
2006-09-09 17:31:36 +00:00
Pino Toscano 53fa802939 now the PickPointEngine can draw the pixmap either in the center or in the bottom-right part of the cursor
svn path=/trunk/playground/graphics/okular/; revision=582293
2006-09-08 23:06:22 +00:00
Pino Toscano ecf3fec2d1 the standard icon names as specified in the PDF Reference are CamelCase, so better lowering them when loading their icons
svn path=/trunk/playground/graphics/okular/; revision=582292
2006-09-08 23:02:55 +00:00
Pino Toscano b66b54a9c9 very small fixes about annotations
svn path=/trunk/playground/graphics/okular/; revision=582276
2006-09-08 21:08:51 +00:00
Pino Toscano d77701bc61 visible texts need to be i18n'ed
svn path=/trunk/playground/graphics/okular/; revision=581267
2006-09-05 20:40:39 +00:00
Pino Toscano 08e3a7de21 improve a bit the annotation dialog:
- use two standard kde widgets for the color selection and for the opacity slider
- clean up the code by storing only what we need to store, and by #include'ing most of the stuff in the cpp only

svn path=/trunk/playground/graphics/okular/; revision=581263
2006-09-05 20:22:19 +00:00
Dirk Mueller 3c092edf3f if tmp can be null then m_current can be as well (CID 2644)
svn path=/trunk/playground/graphics/okular/; revision=580808
2006-09-04 14:57:39 +00:00
Tobias Koenig 90140c1479 warnings--
svn path=/trunk/playground/graphics/okular/; revision=578892
2006-08-30 14:17:22 +00:00
Tobias Koenig 69a72ebbe8 We have to use setFixedSize() here, otherwise the layout will set a height
of 0 for the ThumbnailWidget => ThumbnailWidget::region() is empty => QWidget::repaint
won't paint the content of the widget.

Now the thumbnails are showed on startup again and when the orientation is
changed the layout of the thumbnails is adapted as well...

svn path=/trunk/playground/graphics/okular/; revision=578852
2006-08-30 12:32:58 +00:00
Albert Astals Cid 760fdbcadb makeItBuild
svn path=/trunk/playground/graphics/okular/; revision=578661
2006-08-29 21:09:55 +00:00
Laurent Montel fcac6654b8 Adapt to new qtdbus
svn path=/trunk/playground/graphics/okular/; revision=578226
2006-08-28 18:12:22 +00:00
Albert Astals Cid 5ce0f2a634 branchport r573007
svn path=/trunk/playground/graphics/okular/; revision=573009
2006-08-14 15:03:12 +00:00
Chu Xiaodong 9c575a91d3 replace embedded annotation dialog with annot window, child of PageView
svn path=/trunk/playground/graphics/okular/; revision=572243
2006-08-11 23:53:48 +00:00
Chu Xiaodong a6516a74ef Fix annotation size difference when added in diff scales
svn path=/trunk/playground/graphics/okular/; revision=571739
2006-08-10 15:12:37 +00:00
Chu Xiaodong e6078e98c3 call Annotation context menu any time(implemented in pageview.cpp)
svn path=/trunk/playground/graphics/okular/; revision=571653
2006-08-10 08:59:58 +00:00
Chu Xiaodong e207d0d6f4 Note&TextBox annotation remove operation enabled
svn path=/trunk/playground/graphics/okular/; revision=571630
2006-08-10 06:32:03 +00:00
Pino Toscano 6e53be7386 fix crash when the TwoPointsEngine successfully creates an annotation
CCMAIL: Chu Xiaodong <xiaodongchu@gmail.com>

svn path=/trunk/playground/graphics/okular/; revision=571434
2006-08-09 15:28:29 +00:00
Pino Toscano f26c31409a less qt3_support
svn path=/trunk/playground/graphics/okular/; revision=571390
2006-08-09 15:12:10 +00:00
Pino Toscano 9531690655 source files don't need to be executable
svn path=/trunk/playground/graphics/okular/; revision=571247
2006-08-08 21:59:29 +00:00
Chu Xiaodong 521cec3577 added missing file, sorry :-P
svn path=/trunk/playground/graphics/okular/; revision=571135
2006-08-08 15:42:12 +00:00
Chu Xiaodong 3f81e3788f Free TextAnnotation,pop-up window and annotation properties dialog added.
svn path=/trunk/playground/graphics/okular/; revision=571124
2006-08-08 15:31:13 +00:00
Laurent Montel ead282936e Compile++
svn path=/trunk/playground/graphics/okular/; revision=569954
2006-08-05 10:35:03 +00:00
Clarence Dang 2561c5f879 remove probably unwanted debug from previous commit
svn path=/trunk/playground/graphics/okular/; revision=567576
2006-07-29 12:54:01 +00:00
Clarence Dang 8ecc533c70 Allow entering of "123" zoom instead of only "123%". Previously, if it couldn't find a % to chop, it would kill the last digit (the '3' in "123", giving an incorrect, 12%).
Add hack to get around "10&0%" action text which sometimes happens with kdelibs4.

okular developers: after updating kdelibs, zooming should work perfectly - please let me know if it doesn't.


svn path=/trunk/playground/graphics/okular/; revision=567575
2006-07-29 12:52:35 +00:00
Pino Toscano 61565f3f1b KIO::Job -> KJob
svn path=/trunk/playground/graphics/okular/; revision=565146
2006-07-22 14:38:11 +00:00
Albert Astals Cid 50cef946b2 qt4 port
svn path=/trunk/playground/graphics/okular/; revision=564985
2006-07-21 23:03:31 +00:00
Pino Toscano de91a0e587 SVN_SILENT spell check
svn path=/trunk/playground/graphics/okular/; revision=564873
2006-07-21 15:57:26 +00:00
Clarence Dang 8fa041d06f make zoom combobox work; editing the text directly is not supported yet
svn path=/trunk/playground/graphics/okular/; revision=564799
2006-07-21 11:26:45 +00:00
Pino Toscano 25eb77c1de some fixes according to EBN:
- fix single char addition to QString's
- some spell checking

svn path=/trunk/playground/graphics/okular/; revision=563891
2006-07-18 19:06:01 +00:00
Pino Toscano 14b1e51907 assign shortcuts and icons to the tabs
svn path=/trunk/playground/graphics/okular/; revision=563360
2006-07-17 11:52:41 +00:00
Pino Toscano aafa09c535 for some strange reason the QSortFilterProxyModel seems crashy - so #ifdef it for the moment
svn path=/trunk/playground/graphics/okular/; revision=563356
2006-07-17 11:30:58 +00:00
Pino Toscano e5b044eb3c SVN_SILENT reindent to four-spaces
svn path=/trunk/playground/graphics/okular/; revision=562589
2006-07-15 10:23:43 +00:00
Pino Toscano 1ba01ac6f1 Refactor a bit how ObjectRect works: now it's an independent class, that keeps the shape of the "kept" object using a QPainterPath [the qreal version to QRegion].
Modified the constructors to specify if a rect represents a rectangular region or an elliptic one; added a new one to create a region defined using a polygon.
Adapted to the new API the generators that support links (all but the DjVu one - will be adapted and improved soon).

svn path=/trunk/playground/graphics/okular/; revision=561890
2006-07-13 15:03:18 +00:00
Pino Toscano bfc6133c9c update a thumbnail only if its visible area rect is changed
svn path=/trunk/playground/graphics/okular/; revision=561676
2006-07-12 22:00:46 +00:00
Pino Toscano 0b3a61356b use the own layout direction, no warning
svn path=/trunk/playground/graphics/okular/; revision=561531
2006-07-12 12:00:40 +00:00
Pino Toscano cc447bd3dc use the layout direction of the parent treewidget
svn path=/trunk/playground/graphics/okular/; revision=561525
2006-07-12 11:16:20 +00:00
Pino Toscano 250cca6cb5 no need to recalc the flags every time we paint
svn path=/trunk/playground/graphics/okular/; revision=560135
2006-07-09 11:10:24 +00:00
Pino Toscano fd03b7e799 the speech of the current selection (via kttsd) is working again
svn path=/trunk/playground/graphics/okular/; revision=560087
2006-07-09 09:00:08 +00:00