Sune Vuorela
bfc3e46f9c
A collection of cppcheck fixes
2024-04-15 19:59:42 +02:00
Sune Vuorela
e705b9fac9
Fix deprecation in tiff generator
2023-12-07 14:52:11 +00:00
Volker Krause
50d0703ae0
Enable readability-braces-around-statements
2022-03-09 23:29:56 +01:00
Albert Astals Cid
a2576dc746
Act on core/ TODOs that are not binary compatible
...
I'm going to need to break binary compatibility to add a new feature
so may as well cleanup all the TODOs regarding that
Changes:
* Moving a few destructors to the header
* Removing a few unnecessary & in params
* Adding a few necessary & in params
* Making print return an enum instead of a bool and then having another
function that returns the enum
* Make Generator::requestFontData be a virtual
* Remove unused enum
* Remove a few filePrinter unneeded functions
* Remove unused TextDocumentGenerator::addMetaData signal
2021-12-29 09:35:25 +00:00
Albert Astals Cid
bcbaec0563
tiff: Stop using deprecated types
2021-09-09 16:30:01 +02:00
Alexander Lohnau
2f193a63de
Convert license headers to SPDX
2021-06-10 08:11:56 +00:00
Albert Astals Cid
19d98d6a74
Run clang-format
...
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format -i {} \;
If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
2020-07-11 09:17:33 +02:00
Laurent Montel
516fb89d94
Use camelcase include. (scripted)
2020-07-08 13:54:37 +02:00
Albert Astals Cid
96f00a4d29
CI: Enable clazy qstring-arg check
2020-02-19 23:44:37 +01:00
Albert Astals Cid
da2e03ec5a
Make clang-tidy happy
...
We know we will never have more than t_dir pages but since QList::count
can be an int, make the index variable also be int and let clang-tidy be
happy
2019-12-23 13:15:57 +01:00
Albert Astals Cid
5f42e08e25
Don't have a for with variable i inside a for with variable i
2019-12-23 13:15:57 +01:00
Yuri Chornoivan
c04ca1fa96
Fix minor EBN issues
2018-08-31 12:23:45 +03:00
Kevin Funk
a53a2402ca
clang-tidy: modernize-use-nullptr run
...
Semi-ACK'd by Albert :)
2017-09-06 00:19:48 +02:00
Martin T. H. Sandsmark
7f3eebd9f3
Only show warning messages by default
...
REVIEW: 129832
2017-01-16 18:41:33 +01:00
Aleix Pol
f42a3bad65
Drop libkscreen dependency
...
Drops the x11 fallback. We were falling back to QX11Extras that were in
fact using QScreen internally.
Also remove the QDesktopWidget fallbacks for the same reason.
Drops some API for fetching the dpi and unifies it with ::realDpi(QWidget).
Based on Sebas's patch.
Reviewed by Albert.
REVIEW: 126913
2016-01-30 18:15:07 +01:00
Patrick Spendrin
37d5623102
Remove kdelibs4support from the generator plugins
...
This removes kdelibs4support for all generators except the mobipocket one.
The test executable for kimgio needs some windows fixes too, so I'll try
to make a separate review for that.
REVIEW: 126375
2016-01-30 16:51:46 +01:00
Alex Richardson
2f9246ae42
Port to new JSON plugin loading system
...
This means Okular can now work without ksycoca and KDELibs4Support.
REVIEW: 126193
2016-01-04 15:59:07 +01:00
Montel Laurent
466eb79615
Use QStringLiteral
2015-10-29 13:37:11 +01:00
Lukáš Tinkl
e9ae1d99af
port away from KLocale
2015-01-29 21:48:47 +01:00
Montel Laurent
3b4ee788b8
Fix includes
2014-10-08 13:37:04 +02:00
Montel Laurent
378f6847a2
Remove some deprecated kdelibs4support
2014-10-01 07:27:09 +02:00
Frederik Gladhorn
6c602bf0e7
Use categorized logging even more
2014-09-16 23:38:25 +02:00
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
.
2014-09-11 02:03:46 +02:00
Frederik Gladhorn
34fbdf8c85
Some more kDebug->qDebug
2014-09-09 18:17:36 +02:00
Frederik Gladhorn
b79e706e56
Merge remote-tracking branch 'origin/master' into frameworks
...
Conflicts:
generators/dvi/generator_dvi.cpp
generators/ooo/generator_ooo.cpp
part.cpp
shell/main.cpp
shell/shell.cpp
shell/shell.h
shell/shellutils.h
tests/CMakeLists.txt
ui/propertiesdialog.cpp
2014-08-14 13:35:43 +02:00
Albert Astals Cid
e9e3d4a435
Make documentInfo be Hash based instead of XML based
2014-08-10 22:38:13 +02:00
Frederik Gladhorn
7261d5d45a
Generator porting (mostly kaboutdata)
2014-08-09 21:29:06 +02:00
Pino Toscano
505139af31
generators: fix core #includes removing the okular prefix
2011-06-01 10:51:36 +02: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
07e6cc3bb0
bump plugins versions to be in sync with kde 4.2 and, in case, consider more work being done
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=989180
2009-06-29 17:01:24 +00:00
Tobias Koenig
037034392c
Scale TIFF without RESUNIT entry correctly by using default values
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=982340
2009-06-15 15:02:52 +00:00
Pino Toscano
76126bf29a
swapping was needed... 3 years ago, but it is not anymore
...
BUG: 194572
svn path=/trunk/KDE/kdegraphics/okular/; revision=979245
2009-06-09 11:16:26 +00:00
Pino Toscano
0599270e40
take the reading of the X/Y dpi values out of the for loop
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=962293
2009-05-01 23:47:47 +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
855a32c601
isolate the tiff loading in an own function
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=890978
2008-11-30 19:21:23 +00:00
Pino Toscano
a2b63a66dc
simplier way to get a file name
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=890968
2008-11-30 18:25:21 +00:00
Brad Hards
ec5589c599
Implement scale-down for images that would not otherwise fit
...
on the selected printed page format.
BUG:174447
svn path=/trunk/KDE/kdegraphics/okular/; revision=890775
2008-11-30 07:41:52 +00:00
Pino Toscano
eceb09c379
add more contexts in i18n calls
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=855876
2008-09-01 16:37:39 +00:00
Pino Toscano
085bdae8a3
specify better file names for TIFFClientOpen
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=855852
2008-09-01 15:50:27 +00:00
Pino Toscano
3709ecd71e
Consider the orientation of TIFF documents.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=855846
2008-09-01 15:33:54 +00:00
Pino Toscano
d2fb47db86
SVN_SILENT there is new stuff, so bump the version to 0.2
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=815130
2008-06-01 10:11:16 +00:00
Pino Toscano
483a7a830f
SVN_SILENT unused var
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=815125
2008-06-01 09:57:49 +00:00
Pino Toscano
7d0c3fc516
implement the reading from raw data in a more efficient way (no temporary file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=815124
2008-06-01 09:57:19 +00:00
Pino Toscano
e847099817
switch from TIFFOpen to TIFFClientOpen + callbacks on QIODevice
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=815122
2008-06-01 09:50:22 +00:00
Pino Toscano
17fe071d04
If a directory in a TIFF carries information about the resolution, use them to calculate its real size.
...
And, when generating a pixmap, request the RGBA image of the original size.
BUG: 162934
svn path=/trunk/KDE/kdegraphics/okular/; revision=814835
2008-05-31 11:40:49 +00:00
Pino Toscano
eaff357e78
SVN_SILENT bump to 0.1.1
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=767254
2008-01-27 16:43:16 +00:00
Pino Toscano
fd1e5863bb
- add version of libtiff in the about data
...
- bump copyright year to 2008
svn path=/trunk/KDE/kdegraphics/okular/; revision=767231
2008-01-27 15:47:25 +00:00
Pino Toscano
e27bfaac73
Add a mapping system for pages to exclude the pages we are not able to load, avoid crashing when requesting "invalid" pages.
...
BUG: 156608
svn path=/trunk/KDE/kdegraphics/okular/; revision=765972
2008-01-25 00:05:57 +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