Natsumi Higa
5a8d21d597
Add support for cb7 comic book archives
...
Test Plan: Open a cb7 file (e.g. [[ https://bugs.kde.org/attachment.cgi?id=122002 | Attachment 122002 ]] from [[ https://bugs.kde.org/show_bug.cgi?id=410696 | Bug 410696 ]]) using Okular and see if it works.
Reviewers: #okular, aacid
Subscribers: broulik, pino, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D23037
7 years ago
Albert Astals Cid
d9515bb625
mArchiveDir can be const, so we save a nasty const_cast
7 years ago
Laurent Montel
5a3a49c310
Port qSort to std::sort
7 years ago
Fabio Bolz
4e353aabee
Add unarchiver support for cbr files
...
Summary:
FEATURE: 339370
When no unrar installed, Okular now utilizes the program unar for extracting the archive and lsar for listing the content in the archive.
lsar is related and comes with a unar installation.
Subscribers: aacid, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D15691
7 years ago
Yuri Chornoivan
c04ca1fa96
Fix minor EBN issues
8 years ago
Kevin Funk
a53a2402ca
clang-tidy: modernize-use-nullptr run
...
Semi-ACK'd by Albert :)
9 years ago
Albert Astals Cid
f2b2d94897
Open CBR files with shared-mime-info >= 1.7
...
Not ideal fix surely but it'll do for the moment
BUGS: 369078
10 years ago
Martin T. H. Sandsmark
2b473fedbd
generators: Fix build without implicit cast to/from ascii
...
See previous commit for details.
10 years ago
Montel Laurent
466eb79615
Use QStringLiteral
11 years ago
Montel Laurent
3b4ee788b8
Fix includes
12 years ago
Frederik Gladhorn
6c602bf0e7
Use categorized logging even more
12 years ago
Frederik Gladhorn
e28dbc6c00
Port to QMime
...
compressedMimeFor now already does the inheritance check, so another
check was removed.
12 years ago
Frederik Gladhorn
83d3f1f6b7
Revert "Some more kDebug->qDebug"
...
Seems like kDebug doesn't spam the user, so this needs to use qCDebug.
This reverts commit 34fbdf8c85 .
12 years ago
Frederik Gladhorn
34fbdf8c85
Some more kDebug->qDebug
12 years ago
Albert Astals Cid
55011e0588
Don't create pages for files that are not images
...
The zip in bug #328182 has one
12 years ago
David Palacio
82c29939ea
Merge pages, pageSize and extractImageFiles.
...
This fixes change 39fc2a471e
which does not work on archives (zip, rar, etc.).
15 years ago
Aleix Pol
39fc2a471e
Properly check if a file is a readable image by asking QImageReader.
...
Reviewed by Albert Astals.
15 years ago
David Palacio
4aa3ebe4c6
Add support for reading a directory as a comicbook.
...
REVIEW: 6667
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230519
15 years ago
Glen Kaukola
122fab0eee
Krazy: Check single-char QString operations for efficiency.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1110335
16 years ago
Pino Toscano
d091beab16
allow TIFF files
...
BUG: 227784
svn path=/trunk/KDE/kdegraphics/okular/; revision=1093114
16 years ago
Harsh Chouraria J
da899f862e
FEATURE:204195
...
Add support for application/x-cbt filetypes using KArchive/KTar support. All kinds of tar (.cbt) files
should now be supported. Changed appropriate .desktop files to detect as well.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1072400
16 years ago
Harsh Chouraria J
f5bbebd879
Generalize the code for KArchive support instead of using KZip directly. This will be helpful in
...
adding other supported formats, such as Tar. (Review ticket: 2181)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1072399
16 years ago
Pino Toscano
6968d1d1a8
isNull() -> !isValid(), as it checks for non-null-but-invalid sizes as well
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=979620
17 years ago
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
17 years ago
Pino Toscano
211f082f1e
Scan recursively for images in CBZ archives.
...
BUG: 178029
svn path=/trunk/KDE/kdegraphics/okular/; revision=899134
17 years ago
Pino Toscano
e0987c2989
fix logic error
...
BUG: 178028
svn path=/trunk/KDE/kdegraphics/okular/; revision=898354
17 years ago
Albert Astals Cid
38a3e18279
fix typo spotted by Yuri Chornoivan
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=882560
18 years ago
Pino Toscano
008fce9421
Hack around the fact that CBR or CBZ documents can ahve the wrong extension.
...
(And I wonder, if the only way to recognize them is via extension, wtf?)
BUG: 174701
svn path=/trunk/KDE/kdegraphics/okular/; revision=882007
18 years ago
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
18 years ago
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
18 years ago
Pino Toscano
3c64c3232a
Start adding a minimal way to handle the different flavours of unrar.
...
For now, deny the usage of the "unrar-free", as it does not seem to be much usable...
svn path=/trunk/KDE/kdegraphics/okular/; revision=754056
18 years ago
Tobias Koenig
7e16285d28
Add a new helper functions which allow sorting of strings which
...
contains numbers in natural order
svn path=/trunk/KDE/kdegraphics/okular/; revision=706529
19 years ago
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
19 years ago
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
19 years ago
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
19 years ago