Alexander Lohnau
2f193a63de
Convert license headers to SPDX
5 years ago
Albert Astals Cid
275b7ea57c
Remove todo from NormalizedRect::operator|
...
as far as i can see that works just fine
GIT_SILENT
5 years ago
Albert Astals Cid
b9c40d709d
Fix formatting after Laurent's commit
...
Please Laurent try to use MR when you do changes that may break our CI
like this one
CCMAIL: montel@kde.org
5 years ago
Laurent Montel
486e05b270
If include is define in .h remove it if it's defined in .cpp too (scripted)
5 years ago
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)
6 years ago
Albert Astals Cid
93540ac16d
Enable most of clazy level2
6 years ago
Albert Astals Cid
6ddb7e6cc9
CI: Enable clazy qhash-namespace
6 years ago
Albert Astals Cid
b001ea2019
CI: Enable a bunch of bugprone- clang-tidy warnings
6 years ago
Albert Astals Cid
0a2287be19
CI: Enable two readability clang-tidy checks
...
Use jq to filter compile_commands.json to not include the compilation of
autogenerated files, we don't want to check those
Also filter out the synctex folder, since that is imported code
6 years ago
Albert Astals Cid
27b76ee7c0
TextDocumentGenerator: Support links that span more than one line
...
Summary:
If a link spans more than one line we need one rect for each of the lines
BUGS: 403247
Subscribers: okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D18303
7 years ago
Albert Astals Cid
4fb7582093
Obey rule-of-three in NormalizedPoint and NormalizedRect
...
I.e. make sure they have destructor, copy constructor and asignment
operator
They don't really need them since it's plain data that can be copied
with the defaul implementations (which is actually what i am using) but
since we had some of them implemented and some not, clazy was
complaining that this is generally a bad idea, so implement them all
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
Gleb Popov
b8d22401f2
Implement qHash() for Okular::NormalizedRect.
11 years ago
Frederik Gladhorn
6c602bf0e7
Use categorized logging even more
12 years ago
Frederik Gladhorn
9d89739972
Use categorized logging
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
Peter Grasch
4d4dd68ca2
Fix usability issues with selecting annotations
...
REVIEW: 109627
13 years ago
Fabio D'Urso
3656d8ea47
Force minimum AnnotationObjectRect size
...
So that it's easier to select thin horizontal/vertical lines
13 years ago
Jan Binder
aa6ed8afc0
Replace deprecated QMatrix by QTransform
...
REVIEW: 105737
14 years ago
Mohammad Mahfuzur Rahman Mamun
f14a8502dd
remove some problems from makeWord function in textPage
15 years ago
Albert Astals Cid
81d255bafb
add a function that returns the center of a given normalized rect
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1048191
17 years ago
Pino Toscano
6d0241e5d2
add functions to get the nearest object rect to a point in a page, and return its distance, and the accessor functions for object rects
...
based on an patch by Luigi Toscano, thanks!
CCMAIL: luigi.toscano@tiscali.it
svn path=/trunk/KDE/kdegraphics/okular/; revision=943099
17 years ago
Albert Astals Cid
d40bec4671
Normalize the rect, after all is called normalized rect, no?
...
Fixes first pdf of bug 161327
Pino, should i backport this to 4.1.4?
CCBUG: 161327
svn path=/trunk/KDE/kdegraphics/okular/; revision=902306
17 years ago
Pino Toscano
bd833bdd5c
hopefully make it compile and work also where qreal is not double but float
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=837842
18 years ago
Pino Toscano
d650603340
add operator& (intersection) for NormalizedRect
...
original patch by kde2eran@tromer.org, thanks!
CCMAIL: kde2eran@tromer.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=809403
18 years ago
Pino Toscano
1f43811f61
redirect all the debug output of core to the debug area
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=763941
18 years ago
Pino Toscano
97fa2243ea
don't do the merge when turning a regular area rect into an highlight area rect
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=708740
19 years ago
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
19 years ago
Thiago Macieira
000dc825e3
Use QDebug instead of kdbgstream
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=694533
19 years ago
Pino Toscano
aa8155f8ed
decouple the transformation applying and resetting methods, and reset the transformation when setting a new bonding rect or translating
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=691056
19 years ago
Pino Toscano
fbe8dbf108
promote RegularAreaRect from a typedef to a class, a bit more easy to eventually expand in the future
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=686281
19 years ago
Pino Toscano
1eb435cddb
remove the kdebug.h inclusion in area.h
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=661410
19 years ago
Pino Toscano
94355bce65
move the transform() hierarchy within the private class; allow AnnotationObjectRect to use the trasform() stuff
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=661202
19 years ago
Pino Toscano
5f21b15d99
Link -> Action renaming.
...
Step #2 : Link -> Action for the action hierarchy, and for the ObjectRect type.
svn path=/trunk/KDE/kdegraphics/okular/; revision=656140
19 years ago
Pino Toscano
f3e484082d
Link -> Action renaming.
...
Step #1 : link.(cpp|h) -> action.(cpp|h)
svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
19 years ago
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
19 years ago
Pino Toscano
37b5d0f3cc
handy method
...
svn path=/trunk/playground/graphics/okular/; revision=629174
19 years ago
Pino Toscano
328958171d
use the right include
...
svn path=/trunk/playground/graphics/okular/; revision=619077
19 years ago
Tobias Koenig
14ea3ab2ef
Further documentation and API cleanups
...
svn path=/trunk/playground/graphics/okular/; revision=619054
19 years ago
Pino Toscano
d5f99995dd
add handy debug operators for NormalizedPoint and NormalizedRect
...
svn path=/trunk/playground/graphics/okular/; revision=618237
19 years ago
Pino Toscano
dff36b98f8
simplify RegularAreaRect by avoiding the usage of pointers, as they don't give benefits anyway.
...
Fixing also the text extraction when using the rectangular selection across two or more pages.
svn path=/trunk/playground/graphics/okular/; revision=616264
19 years ago
Pino Toscano
2f1aa08ac6
move the annotation boundary calculation to AnnotationUtils
...
svn path=/trunk/playground/graphics/okular/; revision=606811
20 years ago
Tobias Koenig
a490cc0cd7
Add the following functionality:
...
* Bring QPixmap* back to make Albert happy ;)
* Store only one QPixmap per page/size and rotate it directly
* Rotate ObjectRects (boundary)
* Rotate Annotations (point coordinates)
* Don't reload pixmaps, ObjectRects and annotations on rotation
svn path=/trunk/playground/graphics/okular/; revision=606371
20 years ago
Pino Toscano
274469dae8
Almost complete support for inverse search within okular.
...
THe system generally works; what is missing is a good activating strategy (added in TODO - our usability expert is working on that), and a GUI to configure the editor.
The DVI backend was adapted to use this new feature.
(The PDF backend will use it soon.)
svn path=/trunk/playground/graphics/okular/; revision=605708
20 years ago
Pino Toscano
d6fd44e1ed
forward declaration
...
svn path=/trunk/playground/graphics/okular/; revision=599828
20 years ago
Pino Toscano
08877db01b
const&
...
svn path=/trunk/playground/graphics/okular/; revision=594961
20 years ago
Pino Toscano
c42348edaa
improve the HighlightAreaRect ctor
...
svn path=/trunk/playground/graphics/okular/; revision=594957
20 years ago
Pino Toscano
12827bf0eb
re-write to avoid using a temporary object
...
svn path=/trunk/playground/graphics/okular/; revision=594953
20 years ago