Commit graph

3015 commits

Author SHA1 Message Date
Pino Toscano
c1dc76485a DOX: slightly improve apidox generation
SVN_SILENT


svn path=/trunk/playground/graphics/okular/; revision=623061
2007-01-13 22:55:00 +00:00
Leandro Emanuel López
2fe0e8e958 The if is not needed.
svn path=/trunk/playground/graphics/okular/; revision=623040
2007-01-13 21:42:39 +00:00
Pino Toscano
5bd13f7c0e update the keep status only when really needed
svn path=/trunk/playground/graphics/okular/; revision=623026
2007-01-13 20:03:28 +00:00
Albert Astals Cid
c9102c7cfd Add loadDocumentFromData method to the pdf backend.
You need poppler cvs version as of a few seconds ago to make it work

svn path=/trunk/playground/graphics/okular/; revision=622998
2007-01-13 17:59:22 +00:00
Pino Toscano
8a7c2ad654 As requested by our usability expert Florian, add a Bookmarks menu with the bookmarks in the current document, if any.
svn path=/trunk/playground/graphics/okular/; revision=622995
2007-01-13 17:28:54 +00:00
Pino Toscano
e3992fb642 move the KBookmarkOwner implementation into the d-ptr
svn path=/trunk/playground/graphics/okular/; revision=622959
2007-01-13 15:26:05 +00:00
Pino Toscano
5c3b2fc75d SVN_SILENT useless include
svn path=/trunk/playground/graphics/okular/; revision=622950
2007-01-13 14:49:25 +00:00
Pino Toscano
afc18f9d97 Re-add the possibility to toggle a page bookmark quickly (ie with the popup menu).
svn path=/trunk/playground/graphics/okular/; revision=622945
2007-01-13 14:45:51 +00:00
Pino Toscano
af8487c920 no need to link okularcore with kparts, kio is needed though
svn path=/trunk/playground/graphics/okular/; revision=622862
2007-01-13 13:06:10 +00:00
Pino Toscano
1d15fab909 one more kpdf wish implemented, more or less
svn path=/trunk/playground/graphics/okular/; revision=622792
2007-01-13 00:54:43 +00:00
Leandro Emanuel López
12862b7f46 Applied indentation. Four spaces, no tabs
svn path=/trunk/playground/graphics/okular/; revision=622791
2007-01-13 00:33:50 +00:00
Leandro Emanuel López
21c42d89c7 Don't leak memory
svn path=/trunk/playground/graphics/okular/; revision=622789
2007-01-13 00:18:44 +00:00
Leandro Emanuel López
26f4618ae3 Moved the handleCompressed method to part
svn path=/trunk/playground/graphics/okular/; revision=622784
2007-01-12 23:54:26 +00:00
Pino Toscano
91b7675c14 configurationWidget() is too generic -> rename to printConfigurationWidget()
svn path=/trunk/playground/graphics/okular/; revision=622782
2007-01-12 23:48:29 +00:00
Pino Toscano
4f8724b62b Improve a bit the image generator, even if it's just a toy:
- use QImage instead of QPixmap, and save some QPixmap <-> QImage conversions
- make it able to read from raw data (read from stdin) as a simple example of the functionality

svn path=/trunk/playground/graphics/okular/; revision=622775
2007-01-12 23:03:12 +00:00
Pino Toscano
24ec1e37c5 Add the ability to read from standard input, eg
$ command_that_produce_a_document | okular -
Expand a but the Generator API so a generator can directly read from the raw data read from stdin. Generators that can not read from raw data will open the temporary file with the saved data.

svn path=/trunk/playground/graphics/okular/; revision=622774
2007-01-12 22:49:14 +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
Pino Toscano
1b49db09d5 be sure to delete the old pixmap before setting a new one
svn path=/trunk/playground/graphics/okular/; revision=621863
2007-01-09 23:37:26 +00:00
Pino Toscano
ba36aa3953 fix broken blind porting
svn path=/trunk/playground/graphics/okular/; revision=621803
2007-01-09 20:16:04 +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
Tobias Koenig
53c97a481b Add generator plugin for the FictionBook format (http://en.wikipedia.org/wiki/FictionBook),
you can find documents e.g. under http://www.fictionbook.ru

svn path=/trunk/playground/graphics/okular/; revision=620876
2007-01-07 16:42:24 +00:00
Pino Toscano
2538e1fce0 remove old enum (belongs to the external -removed- notification system)
svn path=/trunk/playground/graphics/okular/; revision=620790
2007-01-07 11:46:33 +00:00
Pino Toscano
2de89d6eb8 don't leak the format mask and the (empty) kdjvu
svn path=/trunk/playground/graphics/okular/; revision=620781
2007-01-07 10:46:50 +00:00
Pino Toscano
d156bdf36c give it a parent so it's automatically deleted and not leaked
svn path=/trunk/playground/graphics/okular/; revision=620773
2007-01-07 09:43:58 +00:00
Pino Toscano
2d49a3c7ee the dvi generator optionally requires freetype
svn path=/trunk/playground/graphics/okular/; revision=620651
2007-01-06 21:14:13 +00:00
Pino Toscano
5636ac551f don't leak memory when loading page actions from poppler, and sound objects
svn path=/trunk/playground/graphics/okular/; revision=620533
2007-01-06 14:25:33 +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
edecb5b1b3 SVN_SILENT clean up
svn path=/trunk/playground/graphics/okular/; revision=620359
2007-01-05 19:17:00 +00:00
Pino Toscano
439d76c8f8 better icon (and with the RtL version)
svn path=/trunk/playground/graphics/okular/; revision=620355
2007-01-05 19:02:39 +00:00
Pino Toscano
55d26ba370 no more initial rotation
svn path=/trunk/playground/graphics/okular/; revision=620317
2007-01-05 17:17:30 +00:00
Pino Toscano
4b922367e2 Use a proper enum to deal with orientation/rotation all around okular.
svn path=/trunk/playground/graphics/okular/; revision=620312
2007-01-05 17:09:47 +00:00
Tobias Koenig
7f9581f455 Add missing Q_DISABLE_COPY
svn path=/trunk/playground/graphics/okular/; revision=620303
2007-01-05 16:40:07 +00:00
Tobias Koenig
42614623e8 Rotate the highlights correctly
svn path=/trunk/playground/graphics/okular/; revision=620273
2007-01-05 15:16:36 +00:00
Pino Toscano
8fbebeb737 no need to pass a reference to an enum value
svn path=/trunk/playground/graphics/okular/; revision=620270
2007-01-05 15:00:12 +00:00
Tobias Koenig
7cff5de9ce Coding style cleanup
svn path=/trunk/playground/graphics/okular/; revision=620258
2007-01-05 14:40:38 +00:00
Pino Toscano
91296b627a SVN_SILENT no more needed
svn path=/trunk/playground/graphics/okular/; revision=620159
2007-01-05 12:54:03 +00:00
Pino Toscano
64769a62ce let the Document forward the BookmarkManager signal
svn path=/trunk/playground/graphics/okular/; revision=620158
2007-01-05 12:51:58 +00:00
Pino Toscano
3f8d978f68 allow only the Document to construct a BookmarkManager
svn path=/trunk/playground/graphics/okular/; revision=620153
2007-01-05 12:44:35 +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
Albert Astals Cid
9194097545 Fix strange behaviour reported by dimsuz on #kpdf regarding the rightclick event when on zoom mode
svn path=/trunk/playground/graphics/okular/; revision=619948
2007-01-04 21:06:44 +00:00
Pino Toscano
81694d6a83 donìt leak in the google-like searches
svn path=/trunk/playground/graphics/okular/; revision=619924
2007-01-04 18:59:31 +00:00
Pino Toscano
9f8ea8b546 don't leak when doing AllDocument/FindNext searches
svn path=/trunk/playground/graphics/okular/; revision=619897
2007-01-04 18:13:00 +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
6c4fac7c72 two more wishes done
svn path=/trunk/playground/graphics/okular/; revision=619682
2007-01-04 00:23:45 +00:00
Pino Toscano
20661ff61e Add an interface (implemented by the Part) for controlling the really basic document viewer functionalities. This (along with a small refactor in the okular shell) gives the user the possibility to start okular with:
-p, --page <page> : to select the startup page
      --presentation : to start directly in presentation mode
implementing also KPDF wishes #134115 and #137905.

svn path=/trunk/playground/graphics/okular/; revision=619681
2007-01-04 00:20:50 +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
Pino Toscano
bd14706edb leak a bit less memory
svn path=/trunk/playground/graphics/okular/; revision=619558
2007-01-03 17:57:03 +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