Commit graph

546 commits

Author SHA1 Message Date
Albert Astals Cid 385933205a Change code so there is no a return inside three ifs 2012-09-25 12:53:35 +02:00
Albert Astals Cid 4befd95ef8 sendGeneratorRequest -> sendGeneratorPixmapRequest 2012-09-25 11:09:34 +02:00
Mailson Menezes ca89ffe96c Avoid making unnecessary requests
Some requests may take a while to process in a highly zoomed region.
Since those requests are not yet finished, other requests to the same
region are likely to be made (specially if the user is scrolling fast)
and the generator will have to render the same region repeatedly.

Also when changing zoom rapidly some pixmaps can arrive at the tiles
manager when another request has already been posted. This pixmap is not
necessary anymore and should be discarded (the tiles manager will get a
new pixmap anyway).
2012-09-24 22:41:57 -03:00
Albert Astals Cid d917fe1e12 Unify the forward and backward search methods
Same functionality 60 lines of duplicated code less to maintain
2012-09-25 00:14:10 +02:00
Tobias Koenig d3e0dadcac Introduce notifyCurrentPageChanged callback DocumentObserver interface 2012-09-06 08:46:10 +02:00
Mailson Menezes fe9d9118a2 Adjust normalized rect upon tiles manager creation
Must be the smallest normalized rect containing all visible tiles
2012-08-26 18:27:38 -03:00
Mailson Menezes 96f325896e Keep track of visible region even when not using tiles
The visible region was set in the PixmapRequest only a tiles manager was
available. Because of that the generator could check if it was supposed
to used tiles by simply checking if its normalized rect was null.
However is good to know the visible region even when a tiles manager is
not present. This way if the request is big enough to start a tiles
manager we already know the visible region and can change the
PixmapRequest accordingly.
2012-08-24 14:02:07 -03:00
Mailson Menezes 1bfe8610c9 Do not evict visible tiles
Also avoid trying to evict more tiles if the tiles manager is empty (all
tiles were previously removed)
2012-08-20 00:47:33 -03:00
Mailson Menezes 66500e05b8 Check the incoming PixmapRequest before using it 2012-08-19 16:00:15 -03:00
Mailson Menezes 11b848cad9 Only use tiles if the generator supports it
Add the new virtual method Generator::supportsTiles (defaults to false)
2012-08-19 15:10:27 -03:00
Mailson Menezes 851a503e81 Move tiles manager to a private header 2012-08-17 15:23:58 -03:00
Mailson Menezes 401c3f7e5d Add rotation support to tiles manager 2012-08-17 14:30:53 -03:00
Mailson Menezes 3c09b93713 Merge branch 'master' into tiled-rendering
Conflicts:
	core/document.cpp
2012-08-15 11:44:22 -03:00
Mailson Menezes 3d630fbb2a Remove unused tiles 2012-08-13 01:09:38 -03:00
Mailson Menezes 032f03a0e8 Track memory usage of tiles 2012-07-16 18:19:02 -03:00
Mailson Menezes 9c09eb938e Use tiles only when it's necessary
In other words: don't use tiles when the page is not big enough
2012-07-16 18:19:01 -03:00
Fabio D'Urso 569c9b84ce Before preloading pixmaps check that they fit in cache 2012-07-10 00:57:49 +02:00
Fabio D'Urso 00afec8617 Refactoring of cleanupPixmapMemory
memoryToFree calculation now lives in DocumentPrivate::calculateMemoryToFree()
2012-07-10 00:57:17 +02:00
Fabio D'Urso 1feb549d3d Clean pixmap cache in order of descreasing distance from current viewport
Previously it was cleaned in FIFO order

I also moved the pixmap selection logic in a separate function, that
will be needed in the next patches.

Note: This behaviour is yet not optimal for the thumbnails panel,
because it is allowed to be at a page different than the current
viewport
2012-07-10 00:56:19 +02:00
Mailson Menezes 48d105672f Use NormalizedRect instead of VisiblePageRect on PixmapRequest 2012-07-08 15:24:20 -03:00
Albert Astals Cid cd8485c7bc Make the freeSwap out param optional 2012-06-24 23:53:01 +02:00
Fabio D'Urso 3c2d2e1b7a Better memory limit tuning in greedy mode to avoid triggering the OOM if swap is full
Using Albert's new formula
2012-06-24 21:05:14 +02:00
Albert Astals Cid 0e01e11717 Do not update the last update time on failure
Because the code *should* work so it failing is exceptional and we don't want to cache the value
2012-06-24 20:08:18 +02:00
Albert Astals Cid fb5a178311 Fix underflwo in memoryToFree found by Fabio 2012-06-24 19:03:38 +02:00
Albert Astals Cid 444e6b7b19 Fix underflow in getFreeMemory()
It actually serves three purposes:
a) Make sure all the values are there (this should be always true, but doesn't hurt making sure) because if SwapFree was there but SwapTotal was not, it'd be a mess
b) add up things in order so we don't underflow, currently the code did process stuff as it came in the file, and it happens that SwapTotal appears before SwapFree in /proc/meminfo so it actually did  "MemFree:" + "Buffers:" + "Cached:" - "SwapTotal:" + "SwapFree:", which can underflow if "MemFree:" + "Buffers:" + "Cached:" < "SwapTotal:"
c) Do not underflow at all, so if  "MemFree:" + "Buffers:" + "Cached:" +  "SwapFree:" < "SwapTotal:" we return 0 correctly not a zillion of free memory

Aurélien you might want to update gwenviews copy of this code (there's a few other bugfixes we did a while ago you didn't update either)

CCMAIL: agateau@kde.org

BUGS: 291129
2012-06-20 00:37:37 +02:00
Albert Astals Cid 791a4ac39e Fix spacing 2012-06-20 00:37:36 +02:00
Albert Astals Cid e7a4e3b392 Remove misleading comment 2012-06-20 00:37:36 +02:00
Fabio D'Urso 939891c9dd Renamed Document::SaveCapability members I added ten minutes ago
Forms -> SaveFormsCapability
Annotations -> SaveAnnotationsCapability
2012-06-14 00:31:17 +02:00
Fabio D'Urso 7c3c28fdf6 Fixed unclear text
Also turns a if-if sequence in a if-elseif to make more evident that
we never show both messages.
2012-06-13 23:45:56 +02:00
Fabio D'Urso 23eb083b00 Show a warning if annotations will not be saved to PDF.
The only affected generator is poppler (because it's the only one with
saving support).
Since version 0.20, Poppler can save annotations to PDF. If the user is
using an older version, this patch warns him that annotations are not
saved.
2012-06-13 22:59:55 +02:00
Mailson Menezes a405c079f4 Rendered image is at the same size of viewport
Previously we were rendering the current viewport but the image provided
by poppler was as big as the scaled page.
2012-06-09 14:39:06 -03:00
Fabio D'Urso 5930478352 Keep original filename when creating a .okular archive from a .okular archive
This patch makes sure that the file saved in the .okular file keeps
the original filename (and, in particular, the extension) even if the
user is re-exporting a .okular archive as .okular archive. Before this
patch, the file boundled in the .okular archive would be named like the
.okular file it was exported from (eg foo.okular instead of foo.pdf).
Note: Okular had no problems in reopening it, but advanced users
unpacking the ZIP file obtained a .okular file which is actually a
native file, and not an okular archive.
2012-06-07 18:59:39 +02:00
Fabio D'Urso 9a11294b12 Sort bookmarks from the same page in viewport order 2012-06-05 00:49:16 +02:00
Fabio D'Urso 86c92ffec2 Fixes against causes of annotation data loss + Improved GUI message logic
1) If the user had previously annotated the document with an old okular
version and the document contains existing annotations and no /Encrypt
(ie the case where annotation changes are no longer saved locally), make
Document::saveDocumentInfo write the original unmodified local
annotations back to XML, so that it seems that the original file was not
changed. If the user makes annotation changes, code from previous
patches already asks him to save them to a different document on close.

2) Ask "Save changes?" if the user has modified annotations in a .okular
archive.
BUG: 300197

3) Turned a "sorry" message in a "information" (with dontshowthisagain),
because now we also have the "Save changes?" prompt to inform the user.

4) Suppressed all annotation-related message boxes on document opening
2012-06-05 00:49:01 +02:00
Mailson Menezes 83282971d8 Render current viewport only 2012-05-29 14:06:02 -03:00
Fabio D'Urso e3f1c388de Ask "Save annotation changes?" if there are unsaved annotations that cannot be saved locally
This patch turns Okular into a ReadWritePart. Annotation editing is always
disabled if we're loaded as ReadOnlyPart, no matter the document type.

REVIEW: 105020
2012-05-23 23:43:44 +02:00
Fabio D'Urso 04935266d2 Fix wrong text 2012-05-23 00:52:20 +02:00
Fabio D'Urso b3782d82a1 Fallback behavior for documents whose generator provides native annotation editing support without saveAs support
The only affected generator is poppler. Note that:
Document has /Encrypt <=iff=> SaveInterface supportsOption(SaveChanges) is false

This patch enforces the following behavior (and warns the user the first time
he edits an annotation).

- If the document has /Encrypt, warn that "Save as" is not available, but it's
possible to export as okular archive. New annotations will be automatically
saved to XML as usual.
Note that the previous patch already made all existing annotations uneditable,
because there's no way to save them.

- If the document has no /Encrypt and there are existing external annotations,
warn that changes won't be saved automatically. The user needs to "Save as" or
changes will be lost.

- If the document has no /Encrypt and there aren't existing external
annotations, don't show any warning. New annotations will be automatically saved
to XML as usual and to file if "Save as" is pressed.
2012-05-17 23:51:00 +02:00
Fabio D'Urso b33d71ef81 Enable edit/removal of external annotations if the generator supports it 2012-05-17 23:50:55 +02:00
Fabio D'Urso 157638f2f9 Added Annotation::BeingMoved flag to avoid refreshing pixmaps while moving annotations 2012-05-17 23:50:39 +02:00
Fabio D'Urso f6fa2a5614 Disable GUI operations on certain types of annotations
Modification and removal of *external* annotations are disabled by this
patch. Note that this change doesn't remove any functionality, because they
have never been implemented (AnnotationProxy is defined by the previous
patch).

The #if0'd blocks will be enabled by a future patch that provides fallback
behavior for generators that don't support saving changes.
2012-05-17 23:50:10 +02:00
Fabio D'Urso ec9f068d77 Added AnnotationProxy to SaveInterface
Based on Pino Toscano's earlier work
2012-05-17 23:49:58 +02:00
Fabio D'Urso 07c57bb2ab Dead code removed (PagePrivate::modifyAnnotation)
The first if ("modified already") is always taken
2012-05-17 23:49:54 +02:00
Tobias Koenig 4639ded310 Implement autostart support for movie annotations
Evaluate MovieActions to implement autostart behavior for movie annotations.

REVIEW:104271
2012-04-03 14:18:10 +02:00
Albert Astals Cid d3d8025ef1 Merge remote-tracking branch 'origin/KDE/4.8'
Conflicts:
	VERSION
	core/version.h
2012-03-09 00:29:48 +01:00
Albert Astals Cid bf47b97cc2 Do not return 0 in getFreeMemory for the first two seconds 2012-03-09 00:26:51 +01:00
Albert Astals Cid 4d8ba36488 Add greedy preloading option
Based on a patch by Sebastian Rose <s.rose@semkath.de>
REVIEW: 103129
BUGS: 184196
2012-03-09 00:12:20 +01:00
Albert Astals Cid 83a052b3ac Revert 604187b7a3 and 258cd6562a
I did not have time to finish the poppler work and even if this will probably be good for using the poppler work, this adds new API and I don't want to commit to this since having a proper look at making it work
Sorry i failed to fulfill my promise
2011-12-11 22:20:45 +01:00
Michel Ludwig 00b01aa987 Add method 'setLastSourceLocationViewport( const Okular::DocumentViewport& vp )' to PageView
Undo changes to the class 'DocumentViewport'.
2011-11-01 21:13:20 +00:00
Michel Ludwig 2fd4100cbd Coding style fixes 2011-10-23 14:22:58 +01:00
Michel Ludwig e8e0237ca0 Add the possibility to show sources location graphically on the rendered pages.
Note that currently the rotation of pages is not taken into account as one still has
to find a unique way of handling this.
2011-10-17 20:56:45 +01:00
Michel Ludwig 0e29008150 Initial commit of the 'ViewerInterface' and of a first implementation. 2011-09-10 18:15:52 +01:00
Albert Astals Cid 258cd6562a Core work for Reset Forms Action support
Heavily inspired in Guillermo Amaral patches
CCMAIL: gamaral@kde.org
2011-08-25 02:24:38 +02:00
Montel Laurent f9f65979f5 Normalize signals/slots 2011-07-31 21:22:04 +02:00
Kevin Kofler e001fbab55 Fix landscape documents getting printed in portrait format if "Landscape" is selected in the print dialog (the default).
Partly based on a patch by Falk from KDE bug #181290.

BUG: 181290
REVIEW: 101513
2011-07-28 01:41:48 +02:00
David Palacio db7d8ff608 Test if the file is readable if it is a regular file.
*REVIEW: 6667

svn path=/trunk/KDE/kdegraphics/okular/; revision=1230523
2011-05-05 20:51:05 +00:00
Pino Toscano 96ae09cfde ignore setViewport() for page numbers out of the document
CCBUG: 266133

svn path=/trunk/KDE/kdegraphics/okular/; revision=1220028
2011-02-12 14:49:32 +00:00
Pino Toscano 40d20ca58d in each page, add a pointer to the owner document
svn path=/trunk/KDE/kdegraphics/okular/; revision=1217914
2011-01-29 15:38:18 +00:00
Albert Astals Cid 6f3667b9d7 forwardport r1216334 okular/branches/KDE/4.6/kdegraphics/okular/core/document.cpp:
use prettyUrl to get a prettier url

svn path=/trunk/KDE/kdegraphics/okular/; revision=1216336
2011-01-22 18:46:56 +00:00
Albert Astals Cid fab89241b2 Implement memory functions for freebsd
Patch by Alberto Villa
BUGS: 218418

svn path=/trunk/KDE/kdegraphics/okular/; revision=1207422
2010-12-18 01:07:33 +00:00
Pino Toscano ba0dd22f71 when archiving, resolve the symlink if the document path is that
CCBUG: 245243

svn path=/trunk/KDE/kdegraphics/okular/; revision=1161859
2010-08-10 23:49:30 +00:00
Albert Astals Cid 4e551e6867 Improve error message
svn path=/trunk/KDE/kdegraphics/okular/; revision=1148688
2010-07-11 15:32:43 +00:00
Albert Astals Cid 25f95bbc9f duplicate code is evil
svn path=/trunk/KDE/kdegraphics/okular/; revision=1115314
2010-04-15 22:26:58 +00:00
Albert Astals Cid 3583f6010a move from virtual to slot to not kick ABI in the nuts
svn path=/trunk/KDE/kdegraphics/okular/; revision=1114947
2010-04-14 23:33:14 +00:00
Albert Astals Cid 0f0cacd63a add a way to generators give a bit more info of why printing failed
and implement it in the pdf generator, others welcome to implement the function
for other generators

svn path=/trunk/KDE/kdegraphics/okular/; revision=1114944
2010-04-14 23:07:27 +00:00
Glen Kaukola 45c82f8636 Krazy: Check for spelling errors
svn path=/trunk/KDE/kdegraphics/okular/; revision=1110329
2010-04-02 18:49:13 +00:00
Pino Toscano 7a88256b35 use abs() before comparing to the current time, otherwise the comparison will always fail when the midnight passes
svn path=/trunk/KDE/kdegraphics/okular/; revision=1105306
2010-03-19 19:52:38 +00:00
Albert Astals Cid 667e07a343 setAttribute with doubles is evil as it uses the current locale and we don't want that, use QString::number
BUGS: 211990

svn path=/trunk/KDE/kdegraphics/okular/; revision=1050633
2009-11-17 19:37:57 +00:00
Albert Astals Cid b9d749bc0d Commit "Document information" patch by Luigi Toscano, 8 months without a nack from any devel and i like it, so let's commit it
Luigi's mail says
********
The attached patch changes a bit the handling of document informations 
and the informations shown in the info page.
- document path is added to the information and a button allows you to 
toggle between to file name (default) and the complete path;
- the number of the page is added to the information set by 
documentInfo() and not by the properties dialog (so the latter will not 
modify datas);
- the order of the information shown is the fixed now (see 
orderedProperties).
*********

Then there are a few things of my own since some const here and there and adding three values to Key enum

Also it fixes wish 208999
BUGS: 208999

svn path=/trunk/KDE/kdegraphics/okular/; revision=1049872
2009-11-16 00:46:33 +00:00
Albert Astals Cid 4041eb7f5b empty the pixmaps queue stack before doing the loop waiting for executing pixmap requests to empty, otherwise a single shot timed call to sendGeneratorRequest can kick us in the back cause bad things to happen, ranging from crashes to the app waiting forever in the loop
Patch provided by pino and tested by me
BUG: 212066

svn path=/trunk/KDE/kdegraphics/okular/; revision=1047671
2009-11-11 19:36:58 +00:00
Albert Astals Cid a79fe451fd check the search we are doing is still alive, otherwise doesn't make sense to keep on doing it and even more doing so might make us crash
svn path=/trunk/KDE/kdegraphics/okular/; revision=1045410
2009-11-06 00:19:10 +00:00
Albert Astals Cid 0b1124c4a8 do not accept new pixmap requests if we are shutting down
svn path=/trunk/KDE/kdegraphics/okular/; revision=1041420
2009-10-27 23:38:13 +00:00
Albert Astals Cid 10ba02cbd5 in case we have a new enough poppler give a better error message when we can't save files with /Encrypt
BUGS: 208119

svn path=/trunk/KDE/kdegraphics/okular/; revision=1037771
2009-10-19 23:00:52 +00:00
Pino Toscano 90074bef90 check the actual mime type names and not their pointers
BUG: 210882

svn path=/trunk/KDE/kdegraphics/okular/; revision=1037414
2009-10-19 00:20:18 +00:00
Albert Astals Cid 27830a988e Add a [hidden] config option to set hinting to fonts
Defaults to disabled
Made the dvi and pdf backends honor the hinting setting

svn path=/trunk/KDE/kdegraphics/okular/; revision=1032936
2009-10-08 21:55:51 +00:00
Albert Astals Cid b55024cfd7 Do not start a search if it's already running
BUGS: 203142

svn path=/trunk/KDE/kdegraphics/okular/; revision=1009822
2009-08-10 22:28:54 +00:00
Armin Berres 555cb3c9a1 add synctex support for pdf files
svn path=/trunk/KDE/kdegraphics/okular/; revision=1003016
2009-07-27 14:15:33 +00:00
Pino Toscano df230edd3a fix signal/slot connection
svn path=/trunk/KDE/kdegraphics/okular/; revision=990840
2009-07-03 12:51:56 +00:00
Pino Toscano b2472bef0d check that the rotation page notification really refers to a page of a document
fixes crash when rotating documents opened in one of more than one okular tabs in konqueror

svn path=/trunk/KDE/kdegraphics/okular/; revision=989681
2009-06-30 17:21:55 +00:00
Pino Toscano dc7583eb8b Add the concept of "next destination" next to the "next viewport" one.
This allows a resolution, if set, of that named destination when opening a document.
CCBUG: 192032

svn path=/trunk/KDE/kdegraphics/okular/; revision=967542
2009-05-13 14:24:30 +00:00
Pino Toscano 42afd676d9 handle relative file names in source reference links correctly
svn path=/trunk/KDE/kdegraphics/okular/; revision=942963
2009-03-23 01:22:17 +00:00
Pino Toscano 4d48c59a34 now that we have a small "progress" animation next to the search line edit in the find bar, there's no need for the "searching for ..." dialog
feedback about this new "notification" is much welcome
CCBUG: 155858

svn path=/trunk/KDE/kdegraphics/okular/; revision=926301
2009-02-15 00:38:24 +00:00
Patrick Spendrin 3330a5f992 fix crash in okular - forward port r923029
svn path=/trunk/KDE/kdegraphics/okular/; revision=923031
2009-02-08 02:36:04 +00:00
Pino Toscano e449fd1ef0 on document closing, clear the fifo with allocated text pages
(fixes potential crash because of references to potentially non-existing pages in the next open document)

svn path=/trunk/KDE/kdegraphics/okular/; revision=923020
2009-02-08 01:32:49 +00:00
Pino Toscano 3b905e3cf4 undefine the internal macros at the end
svn path=/trunk/KDE/kdegraphics/okular/; revision=908738
2009-01-10 11:32:54 +00:00
Pino Toscano 46a2bb5273 When the loaded document is empty, consider its loading as failed.
(Added a TODO for a proper UI message.)
BUG: 179447

svn path=/trunk/KDE/kdegraphics/okular/; revision=904821
2009-01-03 10:17:15 +00:00
Pino Toscano cba63bd669 Pass the plugin keyword when creating generators.
This should make the Ruby binding work again.

BUG: 177537

svn path=/trunk/KDE/kdegraphics/okular/; revision=895926
2008-12-12 00:16:20 +00:00
Pino Toscano 769a70956f add more checks against invalid viewports
fix crash when activating some of the toc items in the testcase of #176513 (still it would be nice to know why they are "void" items"...)

svn path=/trunk/KDE/kdegraphics/okular/; revision=890803
2008-11-30 11:28:08 +00:00
Pino Toscano 52a666f073 When starting an incremental search, do not consider the start page "done" if there was a match in it.
svn path=/trunk/KDE/kdegraphics/okular/; revision=890800
2008-11-30 11:02:02 +00:00
Patrick Spendrin d7c9bcb596 under windows there is no gid yet
svn path=/trunk/KDE/kdegraphics/okular/; revision=885793
2008-11-17 22:16:28 +00:00
Pino Toscano e5b13e2d5b claim support for application/vnd.kde.okular-archive in the correct way, ie via .desktop files
thanks Albert for waking me up

svn path=/trunk/KDE/kdegraphics/okular/; revision=884982
2008-11-16 13:19:35 +00:00
Pino Toscano 938ed4acfa claim support of the new application/vnd.kde.okular-archive mimetype, and check it where appropriate
svn path=/trunk/KDE/kdegraphics/okular/; revision=884851
2008-11-16 01:17:48 +00:00
Pino Toscano b6c5ba1bc8 Add API to load and save "document archives", ie an .okular archive with document and metadata (currently annotations).
Few missing to be done in it:
- more checks when saving
- make it use a proper mimetype

CCBUG: 151614

svn path=/trunk/KDE/kdegraphics/okular/; revision=884597
2008-11-15 14:15:31 +00:00
Pino Toscano acab77c691 add a loadDocumentInfo() variant that takes the file name to read stuff from, and make the non-parameters one calling the new one
svn path=/trunk/KDE/kdegraphics/okular/; revision=884461
2008-11-15 00:34:03 +00:00
Laurent Montel c2fc9836e8 Fix iterator
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
2008-11-11 18:48:40 +00:00
Pino Toscano 9d8c52b5eb Shuffle a bit the way documents are opened:
- when there are no backends for handling the document mimetype, try harder using the mimetype from the file content only
- when the backend fails loading, try again with the backend that handles the mimetype of the file content
BUG: 166034

svn path=/trunk/KDE/kdegraphics/okular/; revision=881991
2008-11-09 14:21:20 +00:00
Pino Toscano 5542445f04 replace the home-made placeholder replacements with KMacroExpander+KShell, and use KProcess
svn path=/trunk/KDE/kdegraphics/okular/; revision=873601
2008-10-19 19:40:17 +00:00
Pino Toscano 4da5b7a105 Add a configuration page for the text editor used for source references links (that is, the ones used also for inverse search).
Factor out the editor commands structure.

svn path=/trunk/KDE/kdegraphics/okular/; revision=873570
2008-10-19 18:01:16 +00:00
Pino Toscano 97335bf267 simple optimization in the Google-like search: split the search terms just once
svn path=/trunk/KDE/kdegraphics/okular/; revision=873283
2008-10-19 10:07:48 +00:00
Pino Toscano e0f2e1dd13 disable the "no results found" dialog when searching. search users should use the proper signal to get the search result (and do proper feedback)
CCBUG: 155858

svn path=/trunk/KDE/kdegraphics/okular/; revision=870011
2008-10-11 15:03:46 +00:00
Pino Toscano 27e703f878 always deal with memory measures as ulonglong, this way systems with >4 GB of memory work for real now
svn path=/trunk/KDE/kdegraphics/okular/; revision=867871
2008-10-04 19:31:36 +00:00
Pino Toscano d3b0b62cfc Make Okular able to distinguish the LilyPond "Point and click" links,
and make them act as source references when activated.

FEATURE: 163569

svn path=/trunk/KDE/kdegraphics/okular/; revision=863572
2008-09-22 13:41:28 +00:00
Pino Toscano 0eab41cc97 do not use the specified widget as parent for the Document, but just keep it
svn path=/trunk/KDE/kdegraphics/okular/; revision=863377
2008-09-21 22:44:42 +00:00
Pino Toscano 6fe1576442 Correctly get the filename from the original url, not from the local file name of the real file being open.
BUG: 168068

svn path=/trunk/KDE/kdegraphics/okular/; revision=842324
2008-08-05 09:15:24 +00:00
Albert Astals Cid 61964b930f And now okular coupled with poppler from 5 minutes ago has the hability to let you save to file fonts embedded into a pdf file
svn path=/trunk/KDE/kdegraphics/okular/; revision=840789
2008-08-01 20:26:22 +00:00
Pino Toscano 4d1a48cddb when saving the internal xml, be sure to save it as utf-8, and to advertize the encoding in the main processing instruction
svn path=/trunk/KDE/kdegraphics/okular/; revision=839566
2008-07-30 10:57:08 +00:00
Pino Toscano 8bad2a8629 & is different than |
fix a condition that made the view loading and saving vanish into the hyperspace

BUG: 167220

svn path=/trunk/KDE/kdegraphics/okular/; revision=836658
2008-07-22 18:14:44 +00:00
Pino Toscano 830fcef561 handle relative paths in browse actions, second and hopefully better try
svn path=/trunk/KDE/kdegraphics/okular/; revision=817344
2008-06-05 20:22:46 +00:00
Pino Toscano 3cc607ff69 handle relative paths in browse links, as shown by the testcase provided by knusperfrosch
and, btw, master dfaure rocks once again!

svn path=/trunk/KDE/kdegraphics/okular/; revision=817340
2008-06-05 20:08:07 +00:00
Pino Toscano e4dc8d8126 Load and save in the XML document info all the properties of the various View's, that are specific to each document.
At the moment, they are the zoom mode and level of the page view.
BUG: 155752

svn path=/trunk/KDE/kdegraphics/okular/; revision=814998
2008-05-31 21:13:15 +00:00
Pino Toscano afc6f89727 Check whether the document to open is absolute as first thing, so we can open it directly even with no document open.
BUG: 162459

svn path=/trunk/KDE/kdegraphics/okular/; revision=811109
2008-05-22 10:23:41 +00:00
Pino Toscano 18f486c2c1 add the possibility to store an useful bounding box of a page, and for generators to notify the document (and its observers) on its change
original patch by kde2eran@tromer.org, thanks!
CCMAIL: kde2eran@tromer.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=809467
2008-05-18 23:06:21 +00:00
Albert Astals Cid bb23209234 limit the number of text pages we keep in memory so that searching does not bring your system to its knees
BUG: 161213

svn path=/trunk/KDE/kdegraphics/okular/; revision=803949
2008-05-04 15:10:32 +00:00
Pino Toscano e13e74db92 add a private slot for hooks on config change
svn path=/trunk/KDE/kdegraphics/okular/; revision=803946
2008-05-04 15:02:35 +00:00
Albert Astals Cid 3fd8f39b77 make sure we don't detach
svn path=/trunk/KDE/kdegraphics/okular/; revision=801823
2008-04-27 21:01:05 +00:00
Albert Astals Cid 048a879e32 Fordwardport commit 801781:
Correctly calculate the amount of memory to free, should fix bug 153675

svn path=/trunk/KDE/kdegraphics/okular/; revision=801782
2008-04-27 18:08:14 +00:00
Pino Toscano 5851ddf6a8 Start a View class for managing the "views" of a document.
Provide ways to register & unregister the view from a Document, and to get/set the view capabilities.

svn path=/trunk/KDE/kdegraphics/okular/; revision=801657
2008-04-27 11:05:59 +00:00
Pino Toscano 39463af93b stop the audio playbacks when closing the current document, not just once when exiting
svn path=/trunk/KDE/kdegraphics/okular/; revision=797093
2008-04-14 21:58:14 +00:00
Pino Toscano 513c7cf225 Add a scripter class to execute scripts on request.
Trigger its execution at the document loading, if there are "top level" scripts,
and when a script action is activated.

svn path=/trunk/KDE/kdegraphics/okular/; revision=796637
2008-04-13 22:31:59 +00:00
Malcolm Hunter 2f62610563 More typo fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=795917
2008-04-11 22:09:50 +00:00
Malcolm Hunter b6124a900b Typo fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=795906
2008-04-11 21:16:43 +00:00
Pino Toscano 8a858a9449 Core implementation of the backward text search, to be used now in the search bar.
Works pretty well -- the only problem left is that when changing the search direction, the first match is the current match.

svn path=/trunk/KDE/kdegraphics/okular/; revision=785629
2008-03-14 14:14:06 +00:00
Pino Toscano 8b6a259b48 Add a continueSearch() for optionally changing the search direction
svn path=/trunk/KDE/kdegraphics/okular/; revision=785619
2008-03-14 13:57:01 +00:00
Pino Toscano 87fc624534 count only the consecutive pages with no search results
svn path=/trunk/KDE/kdegraphics/okular/; revision=785613
2008-03-14 13:47:18 +00:00
Pino Toscano c9089f3160 Add the possibility to save a copy of the document with the changes to it (only for form fields at the moment).
On the Document/Generator side, introduce a proper interface for the purpouse.

On the GUI side, add a new "Save As" function that save the changed document to a location.
The action is enabled only if the current backend can provide the functionality.

svn path=/trunk/KDE/kdegraphics/okular/; revision=784661
2008-03-11 23:40:59 +00:00
Pino Toscano e023effb15 Add a requestPixmaps() overload that takes options as flags.
This way we can tell to "merge" in a smart way the new pixmap request with the enqueued ones of the same ID.

Add a (private) slot to refresh all the pixmaps of a page.

svn path=/trunk/KDE/kdegraphics/okular/; revision=783259
2008-03-07 15:50:48 +00:00
Pino Toscano e9bd289993 Keep a list of the currently active pixmap requests (usually one at most), and wait for their finish when closing the document.
svn path=/trunk/KDE/kdegraphics/okular/; revision=769281
2008-02-01 00:43:45 +00:00
Pino Toscano a0a3c239e2 Standardize our naming: Okular.
CCMAIL: okular-devel@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=763904
2008-01-20 15:35:19 +00:00
Pino Toscano f238c3d95d Start adding a configuration to toggle anti-aliasing for both text and graphics.
Let the Document propagate these settings to the backends, if they query for them.

svn path=/trunk/KDE/kdegraphics/okular/; revision=757647
2008-01-05 15:50:40 +00:00
Pino Toscano 4a71603ab6 take the list of the supported mimetypes from the kpart .desktop, as they contain more mimetypes (including the compressed versions)
[the compressed versions are not in the "generator" .desktop files because okular can deal natively with any gzip- or bzip2- compressed version of the supported document types]

svn path=/trunk/KDE/kdegraphics/okular/; revision=755661
2008-01-02 00:37:51 +00:00
Pino Toscano 02dde1035c for now, don't create xml storage files for non-local urls, as the local name will always change
svn path=/trunk/KDE/kdegraphics/okular/; revision=755447
2008-01-01 16:22:29 +00:00
Pino Toscano 1aab311b5c Slightly change the indexes used to query the generator for fonts:
- 0..n-1 are the page indexes again
- -1 is for the fonts not reall belonging to a single page (or when no selective page extraction can be done)

svn path=/trunk/KDE/kdegraphics/okular/; revision=753866
2007-12-28 17:06:43 +00:00
Pino Toscano a8758221fe Return the current configuration for gfx and text antialias.
For now they are always true, as no GUI can be added due to feature+string freeze.

svn path=/trunk/KDE/kdegraphics/okular/; revision=749280
2007-12-16 23:36:12 +00:00
Pino Toscano fb2a432097 update the free memory check timer on win32 as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=747259
2007-12-11 13:52:55 +00:00
Pino Toscano 66376cf31f make swap() private
svn path=/trunk/KDE/kdegraphics/okular/; revision=744918
2007-12-04 21:36:32 +00:00
Pino Toscano 6aa123656a Port the plugin system to the standard KDE factory and loader, getting rid of the custom system okular had so far.
This requires a generator to have a
  MyGenerator(QObject *parent, const QVariantList &args)
constructor in order to be successfully loaded.
The OKULAR_EXPORT_PLUGIN macro was adapted, and the generators to provide it the about data; the protected Generator::setAboutData() is no more needed.

Remove the 'lib' prefix from plugins, unneeded now.

CCMAIL: okular-devel@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=744169
2007-12-02 20:57:24 +00:00
John Layt 1b1ed9451b Enable Okular printing features:
* Add FilePrinter class to enable printing via postscript files
* DJVU, PDF, and PS backends print FilePrinter
* All backends enable printing of bookmarked pages
* Print and Print Preview actions enabled/disabled depending on backends
  printing ability

Note that FilePrinter only works on *NIX platforms with Cups, lpr, or lp.



svn path=/trunk/KDE/kdegraphics/okular/; revision=741990
2007-11-26 21:43:54 +00:00
Pino Toscano dfce0d1fcd centralize the way we know whether a generator is configurable, and properly manage i18n loading in that case
svn path=/trunk/KDE/kdegraphics/okular/; revision=741325
2007-11-25 12:49:30 +00:00
Pino Toscano 07dd3fe824 give the debug area to the kWarning() calls
svn path=/trunk/KDE/kdegraphics/okular/; revision=741314
2007-11-25 12:18:10 +00:00
Pino Toscano 1214468229 directly take the componentdata
svn path=/trunk/KDE/kdegraphics/okular/; revision=741313
2007-11-25 12:15:55 +00:00
Pino Toscano 1e08dc6a95 correctly check whether a generator was already loaded, even when no generator was previously loaded
fixes the ghostcript config page not showing when starting an empty okular

svn path=/trunk/KDE/kdegraphics/okular/; revision=741308
2007-11-25 12:08:37 +00:00
Pino Toscano ba7d0732c1 ignore any "empty" component data
svn path=/trunk/KDE/kdegraphics/okular/; revision=741067
2007-11-24 18:07:59 +00:00
Pino Toscano 2340d9c6d8 Save the rotation of the document, so when reopening the document the last rotation is kept.
This also fixed the problem of the lost rotation when reloading because of document change.

CCBUG: 151130

svn path=/trunk/KDE/kdegraphics/okular/; revision=731697
2007-11-01 16:15:34 +00:00
Christian Ehrlicher ec72d7e654 mingw compile++
warnings--

svn path=/trunk/KDE/kdegraphics/okular/; revision=731467
2007-10-31 19:44:35 +00:00
Pino Toscano 6d375af868 Move all the bookmarking stuff into the BookmarkManager, that now updates the Document observers automatically.
svn path=/trunk/KDE/kdegraphics/okular/; revision=730404
2007-10-28 18:31:33 +00:00
John Layt 070285e039 Port from KPrinter to QPrinter, remove dependency on KDE4_KDEPRINT_LIBS.
*** Note this is not a complete port, most of the generators use the 
printFiles method which Qt 4.3 does not support, these have simply
been commented out until we find a solution.  At least it removes
the dependency so we can remove from kdelibs.

svn path=/trunk/KDE/kdegraphics/okular/; revision=725660
2007-10-15 23:01:27 +00:00
Pino Toscano a5940e0132 correctly initialize the history; crash spotted by Bram, thanks!
svn path=/trunk/KDE/kdegraphics/okular/; revision=721277
2007-10-04 21:41:19 +00:00
Pino Toscano 27f624d1f7 check whether the document is open
svn path=/trunk/KDE/kdegraphics/okular/; revision=720717
2007-10-03 15:03:49 +00:00
Pino Toscano d51e9fa4d8 remove the private methods of PixmapRequest, and make the Document work with its private class
svn path=/trunk/KDE/kdegraphics/okular/; revision=719319
2007-09-30 21:44:31 +00:00
Pino Toscano 5dc92c5824 use qint64 for the document size
svn path=/trunk/KDE/kdegraphics/okular/; revision=719107
2007-09-30 10:49:38 +00:00
Pino Toscano 2584aaa43b cache the total memory on win32
svn path=/trunk/KDE/kdegraphics/okular/; revision=712851
2007-09-15 14:05:08 +00:00
Pino Toscano 78e2377a87 Add a method for generators to know some metadata of the document
adapted the poppler and the chm generators to use that, instead of fiddling with the settings class

svn path=/trunk/KDE/kdegraphics/okular/; revision=712614
2007-09-14 22:16:00 +00:00
Pino Toscano bb59c02642 nuke Document::continueLastSearch(), continueSearch(id) is enough
svn path=/trunk/KDE/kdegraphics/okular/; revision=712500
2007-09-14 15:40:00 +00:00
Pino Toscano f8ed5302ec - move the Document::requestDone() to the private class, as it's something internal to the generator work
- make the Generator internally keep an pointer to the private class Document, so we can access easily to the Document' stuff

svn path=/trunk/KDE/kdegraphics/okular/; revision=712498
2007-09-14 15:29:16 +00:00
Pino Toscano aaed55f037 extract the DocumentPrivate class in an own file
svn path=/trunk/KDE/kdegraphics/okular/; revision=712493
2007-09-14 15:17:36 +00:00
Pino Toscano 006111382b common d_ptr+q_ptr structure for Generator/TextDocumentGenerator, and their private classes
svn path=/trunk/KDE/kdegraphics/okular/; revision=712465
2007-09-14 13:31:55 +00:00
Pino Toscano f72692799e look for the old kpdf stuff only if the "new okular" stuff is not found
svn path=/trunk/KDE/kdegraphics/okular/; revision=710703
2007-09-10 17:20:58 +00:00
Pino Toscano b56ad8c3ae Change the DocumentObserver::notifySetup() to allow a better tuning of the different setup options (different layout for the pages, or different document).
svn path=/trunk/KDE/kdegraphics/okular/; revision=710227
2007-09-09 10:50:36 +00:00
Pino Toscano 2a29b247f7 save really few bytes
svn path=/trunk/KDE/kdegraphics/okular/; revision=709414
2007-09-07 13:13:50 +00:00
Pino Toscano bf9af4433d move deleteTextSelections() to the private class
svn path=/trunk/KDE/kdegraphics/okular/; revision=708155
2007-09-03 23:47:12 +00:00
Pino Toscano 0d7db7513b save the url of the document to its xml metadata file
svn path=/trunk/KDE/kdegraphics/okular/; revision=708039
2007-09-03 17:53:45 +00:00
Pino Toscano a8d747745f Cleanup a bit the GuiInterface, and making it work.
Instead of manually requestion actions and other stuff, we just make the interface as gui client, requesting and integrating it in the part gui.
Also, rename the Generator's componentData() to ownComponentData() to avoid clashing with KXMLGUIClient.

svn path=/trunk/KDE/kdegraphics/okular/; revision=705933
2007-08-28 23:17:00 +00:00
Pino Toscano 0ecdc5b3c6 add the searchId to the searchFinished() signal of the Document, so each search line edit can ignore any search not started by itself
svn path=/trunk/KDE/kdegraphics/okular/; revision=704015
2007-08-23 22:16:37 +00:00
Pino Toscano cd0dd24193 i18n fixes
rename 'freetext' to 'inline note'

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

svn path=/trunk/KDE/kdegraphics/okular/; revision=699701
2007-08-13 22:25:27 +00:00
Pino Toscano 5150419e81 adapt the debug stuff to the new kdebug way:
- make the output looking more or less like before (using nospace() or removing the spaces)
- remove endl and '\n' at the end of debug outputs
- fixing the QDebug operator<<'s around
- isolate the debug area number of the core into a separate header, and apply it instead of the numbers found in textpage.cpp

svn path=/trunk/KDE/kdegraphics/okular/; revision=694667
2007-07-31 10:19:48 +00:00
Pino Toscano 6254f609d8 really return an int where we are going to return an int, not a bool
svn path=/trunk/KDE/kdegraphics/okular/; revision=694515
2007-07-30 22:29:41 +00:00
Pino Toscano 23337e1c71 move the number of maximum and saved history step into a single location for both
svn path=/trunk/KDE/kdegraphics/okular/; revision=691448
2007-07-23 17:12:20 +00:00
Pino Toscano 0e7aeb2ba8 no need to set a new rotation if it's equal to the currently set
svn path=/trunk/KDE/kdegraphics/okular/; revision=689135
2007-07-17 18:13:50 +00:00
Pino Toscano b41dcfeddc - store a pointer of the owning page in each annotation
- preliminary API for translating an annotation

svn path=/trunk/KDE/kdegraphics/okular/; revision=689133
2007-07-17 18:10:25 +00:00
Pino Toscano 3c009773ca __linux__ -> Q_OS_LINUX
svn path=/trunk/KDE/kdegraphics/okular/; revision=688273
2007-07-15 16:51:23 +00:00
Christian Ehrlicher eff4ffe995 win32 compile++
svn path=/trunk/KDE/kdegraphics/okular/; revision=688272
2007-07-15 16:47:55 +00:00
Pino Toscano b73555b7f3 Windows functions to get the amount of total and free memory.
Patch by Huhn Put, thanks!

CCMAIL: nhuh.put@web.de

svn path=/trunk/KDE/kdegraphics/okular/; revision=688271
2007-07-15 16:43:24 +00:00
Pino Toscano 905f6c0946 int -> qulongqlong for the memory sizes
svn path=/trunk/KDE/kdegraphics/okular/; revision=688263
2007-07-15 16:10:48 +00:00
Pino Toscano fea03a9bbd appName -> catalogName, even for the information we get from the about data
svn path=/trunk/KDE/kdegraphics/okular/; revision=687836
2007-07-14 13:47:11 +00:00
Pino Toscano 5387c50960 Make the Configure backends dialog working, of course if the generators have the proper support for "mutable" configuration.
svn path=/trunk/KDE/kdegraphics/okular/; revision=687065
2007-07-12 20:04:56 +00:00
Pino Toscano 43f83cb967 move the calculation of the number of configurable generators to the Document, and start to store the information about the configurability of a generator
svn path=/trunk/KDE/kdegraphics/okular/; revision=687014
2007-07-12 17:52:14 +00:00
Pino Toscano f76f15470a Add the file size to the document information that the generator may provide.
Avoid crashing if the generators provides no information.

(Implements part (a) of KPDF #140109.)

svn path=/trunk/KDE/kdegraphics/okular/; revision=686290
2007-07-10 23:49:37 +00:00
Pino Toscano ffd5ed0280 the dialog for choosing backend is private, so let its header be _p.h
svn path=/trunk/KDE/kdegraphics/okular/; revision=686276
2007-07-10 22:52:25 +00:00
Pino Toscano f5c216b19c extract the private class of AudioPlayer out of the implementation, so the Document can store the url of the current document;
disable the playing of external sounds for remote (non-local) documents;
simple compile fix in the embedded sound paying code

svn path=/trunk/KDE/kdegraphics/okular/; revision=686133
2007-07-10 18:24:18 +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 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 e9b9d78faa acutally save the document information *before* closing the document, otherwise we run into troubles if we access to anything the generator provided
svn path=/trunk/KDE/kdegraphics/okular/; revision=683143
2007-07-04 09:28:31 +00:00
Chusslove Illich 968760cb6c Auto-conversion to new KCmdLineArgs/KAboutData/KComponentData API (trunk/KDE). Watch for the few remaining QString to QByteArray assignments that will not compile without extra specification (typically needs .toLocal8Bit() or .toUtf8()).
svn path=/trunk/KDE/kdegraphics/okular/; revision=682260
2007-07-02 08:52:55 +00:00
Pino Toscano 3addf5ec7d const& for removePageAnnotations()
svn path=/trunk/KDE/kdegraphics/okular/; revision=668564
2007-05-26 19:25:18 +00:00
Pino Toscano 5cbdaa6dc7 some checks more, and small fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=668054
2007-05-24 22:52:29 +00:00
Laurent Montel 1a6db045cd Don't crash when we don't load file
(generator is null)
(It will better to disable action until we load generator I think)

svn path=/trunk/KDE/kdegraphics/okular/; revision=667872
2007-05-24 09:05:34 +00:00
Pino Toscano 95912893f0 remove compatibility with kpdf pre-kde 3.4
svn path=/trunk/KDE/kdegraphics/okular/; revision=667126
2007-05-21 22:07:28 +00:00
Pino Toscano 92204b4bb7 fix giveAbsolutePath() to properly recognize absolute paths
svn path=/trunk/KDE/kdegraphics/okular/; revision=667073
2007-05-21 19:51:30 +00:00
Pino Toscano 0d320f0b78 SVN_SILENT
use the kde debug system in a kde library

svn path=/trunk/KDE/kdegraphics/okular/; revision=665724
2007-05-17 18:27:25 +00:00
Pino Toscano c4ea50c99b Forwardport SVN commit 665684 by pino:
When getting the result of a pixmap request for an observer that went away in the meanwhile, don't create a memory entry for the pixmap, as we assume the allocated pixmaps fifo holds only descriptors for valid observers.

(fixed KPDF #143951)

svn path=/trunk/KDE/kdegraphics/okular/; revision=665685
2007-05-17 16:52:44 +00:00
Tobias Koenig 06e831a3c9 Add a new method DocumentInfo::set( enum, QString ) to get more
consistency in the documentation info.

svn path=/trunk/KDE/kdegraphics/okular/; revision=664233
2007-05-13 12:54:46 +00:00
Pino Toscano 8f03f0d0d7 try to lock the pixmap requests queue with a mutex, hoping to solve some of our problems
svn path=/trunk/KDE/kdegraphics/okular/; revision=663991
2007-05-12 21:40:38 +00:00
Pino Toscano 325b8711ea move the setTextSelections, setHighlight and deleteHighlights to the private class of Page, as they are private for now
svn path=/trunk/KDE/kdegraphics/okular/; revision=661486
2007-05-05 18:07:34 +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 b53ba3cd24 make widget() slightly safier, and pass it as parameter when running an url (closing a TODO item)
svn path=/trunk/KDE/kdegraphics/okular/; revision=660524
2007-05-02 22:56:51 +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