Commit graph

26 commits

Author SHA1 Message Date
Albert Astals Cid 81c5c540df Update versions for KDE 4.8
(cherry picked from commit 51a77e6a51)
2012-01-18 18:04:31 +01:00
David Palacio 82c29939ea Merge pages, pageSize and extractImageFiles.
This fixes change 39fc2a471e
which does not work on archives (zip, rar, etc.).
2011-11-09 10:53:47 -05:00
Pino Toscano 8585bb70ec bump versions of comicbook and xps generators 2011-07-19 23:49:52 +02:00
Pino Toscano 505139af31 generators: fix core #includes removing the okular prefix 2011-06-01 10:51:36 +02:00
Pino Toscano e6b98db3d0 bump some generators version number to the values of the 4.5 branch, plus increase if there was work/fixes done
svn path=/trunk/KDE/kdegraphics/okular/; revision=1212170
2011-01-05 23:47:33 +00:00
Pino Toscano 14521f54a7 bump plugins versions to be in sync with kde 4.4 and, in case, consider more work being done
svn path=/trunk/KDE/kdegraphics/okular/; revision=1156088
2010-07-28 15:00:52 +00:00
John Layt b30305b668 Enable Current Page option in Okular print dialog if running Qt >= 4.7
Changed exported api so cc: to bindings.
CCMAIL: kde-bindings@kde.org

CCBUG: 194586


svn path=/trunk/KDE/kdegraphics/okular/; revision=1134379
2010-06-04 08:25:25 +00:00
Pino Toscano 36924a897f When loading a comicbook, try to get just the size of the various images without loading them if possible.
Instead of just fully loading the images, make use of QImageReader to query for the size if available, and in case just do the old way (full image loading).
This drastically kills the loading time of comicbook documents of at least 50%, even by 75% (and possibly something more) on the average case.

svn path=/trunk/KDE/kdegraphics/okular/; revision=917041
2009-01-26 18:37:53 +00:00
Pino Toscano e76e7d1cd9 bump version
svn path=/trunk/KDE/kdegraphics/okular/; revision=910805
2009-01-14 10:31:16 +00:00
Pino Toscano e468befe0f bump versions (sync with kde 4.2)
svn path=/trunk/KDE/kdegraphics/okular/; revision=907921
2009-01-08 22:01:53 +00:00
Pino Toscano 115a64ae72 Use the size as specified by the images, not a fake one.
BUG: 169592

svn path=/trunk/KDE/kdegraphics/okular/; revision=855907
2008-09-01 17:40:39 +00:00
Pino Toscano 169df555d5 report a message when there is no unrar, or the unrar is not suitable
svn path=/trunk/KDE/kdegraphics/okular/; revision=809958
2008-05-19 19:43:48 +00:00
Pino Toscano f697cdf007 Add a close() method for the comicbook document so:
- resources can be freed when closing the Okular document for real (and not just when opening a new comicbook document or quitting)
- we do not crash when doing an opening sequence like: cbz -> cbr -> cbz

svn path=/trunk/KDE/kdegraphics/okular/; revision=798868
2008-04-19 18:46:02 +00:00
Tobias Koenig 14d47622d8 Add about data to my maintained generators
svn path=/trunk/KDE/kdegraphics/okular/; revision=782777
2008-03-05 22:52:54 +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
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 15155d8824 Rename the virtual closeDocument() to doCloseDocument(), and make it protected.
Added a non-virtual closeDocument() in the base Generator class: this way, particular closing routines can be implemented in the "low level" of a generator.
Apart the renaming, the logic of doCloseDocument() remains the same.

CCMAIL: okular-devel@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=723046
2007-10-08 16:46:51 +00:00
Tobias Koenig cde58f48ba * Check for Landscape or Portrait mode (patch by Pino)
* Fixed bug by clearing the page map on opening

svn path=/trunk/KDE/kdegraphics/okular/; revision=706496
2007-08-30 15:30:12 +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
Pino Toscano 6068c76df6 Merge the new functions of ThreadedGenerator into the base Generator: this means that there's again only a single base Generator that can provide the multithreading for the generation of contents, just pixmaps for now.
svn path=/trunk/playground/graphics/okular/; revision=628853
2007-01-31 18:31:19 +00:00
Pino Toscano 55dfb87f3f simplify a bit the Feature system: move it to the base Generator class, and add a protected method to switch a feature on and off easily - no more need to copy&paste hasFeature() anymore
svn path=/trunk/playground/graphics/okular/; revision=627450
2007-01-26 16:35:30 +00:00
Tobias Koenig d227a94e79 First part of the porting to a threaded api for generators
- made comicbook, tiff and kimgio a threaded generator

svn path=/trunk/playground/graphics/okular/; revision=626761
2007-01-24 15:06:45 +00:00
Tobias Koenig e642b97c8c Make the generator multithreaded
svn path=/trunk/playground/graphics/okular/; revision=625262
2007-01-19 17:27:16 +00:00
Tobias Koenig 427325fef2 Don't print over the size of the page
svn path=/trunk/playground/graphics/okular/; revision=625254
2007-01-19 17:01:33 +00:00
Tobias Koenig deabbae3bf Say hello to the new ComicBook generator for okular.
Information about this format and testfiles can be found at
  http://en.wikipedia.org/wiki/CDisplay_RAR_Archived_Comic_Book_File


svn path=/trunk/playground/graphics/okular/; revision=624702
2007-01-17 18:49:05 +00:00