Alexander Lohnau
2f193a63de
Convert license headers to SPDX
5 years ago
David Hurka
19d5dd8ec7
New part/ directory for okularpart sources from /, ui/, conf/
...
Source files are no longer separated by UI and non-UI and similar,
but only by their build target.
* ui/ -> part/
* Move all source files from conf/ to part/
* Keep config skeleton definitions in conf/, needed for the mobile target too
* Move editdrawingtooldialogtest.h from conf/autotests/ to autotests/
* ui/data/icons/ -> icons/
* Move /part.cpp, /part.rc and similar files to part/
* Adapt include paths in source files
* Adapt CMakeLists.txt files (in / and in subdirectories)
* Adapt /Messages.sh
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
Laurent Montel
516fb89d94
Use camelcase include. (scripted)
6 years ago
Ahmad Samir
45c72ff0eb
Port from deprecated foreach to range-for
...
autotests/*, conf/* , mobile/* , shell/*, part.cpp, extension.cpp
The code compiles and all unit tests pass (except for the two that
fail on master too).
6 years ago
Laurent Montel
8beef33c05
Port some deprecated methods
7 years ago
Yuri Chornoivan
39b6e8147d
Fix minor EBN issues
8 years ago
Yuri Chornoivan
c04ca1fa96
Fix minor EBN issues
8 years ago
Albert Astals Cid
41006445a9
setAttribute with doubles is evil as it uses the current locale and we don't want that, use QString::number
...
BUGS: 359016
10 years ago
Sumit Sahrawat
3400f76dad
Make inline annotation border width customizable, using a spin widget to accept input
...
REVIEW: 125801
BUGS: 332887
10 years ago
Montel Laurent
466eb79615
Use QStringLiteral
11 years ago
Tobias Koenig
81f80ac3a4
Implement drawing quick selection tool for presentation mode
...
REVIEW: 124687
11 years ago
Montel Laurent
3580f0089b
Fix includes
11 years ago
Montel Laurent
c4f224f1e8
Port to new connect api
11 years ago
Montel Laurent
16f13c04d2
kdelibs4support--
12 years ago
Montel Laurent
26fc592e7d
Fix includes
12 years ago
Arnold Dumas
50f2ee6951
Use QPushButton instead of KPushButton.
12 years ago
Montel Laurent
2eacdea022
Port to new connect api
12 years ago
Frederik Gladhorn
6c602bf0e7
Use categorized logging even more
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
Vishesh Handa
e038950f50
KIcon -> QIcon
12 years ago
Frederik Gladhorn
4ce837a7ac
Qt5 porting
12 years ago
Frederik Gladhorn
75031eee7e
Fix includes
12 years ago
Fabio D'Urso
ae64a4ba48
Annotation tool configuration: open edit window back on itemDoubleClick
...
Otherwise it's impossible to select items if itemActivated is configured
to be triggered by single-clicks.
This reverts f1d5638dca
13 years ago
Fabio D'Urso
d3a6c9100c
WidgetAnnotTools: Add edit button
13 years ago
Fabio D'Urso
c8bcee597b
WidgetAnnotTools: Tidy up slots
13 years ago
Fabio D'Urso
c1bf817e75
Use a enum instead of strings to identify combobox entries
13 years ago
Fabio D'Urso
c6989bccce
Fix comment
13 years ago
Fabio D'Urso
f1d5638dca
Connect to a better signal
13 years ago
Fabio D'Urso
faaaeeb5c9
Made Inplace annotations' alignment configurable
...
Note that PagePainter support for this property is currently broken: it
only works at 100% zoom.
13 years ago
Fabio D'Urso
f52432aa57
Show tool icon in EditAnnotToolDialog
13 years ago
Fabio D'Urso
0cc45d4102
Show big icons in annotation tool configuration panel
13 years ago
Fabio D'Urso
38a5a3f526
Made font configurable in inplace text annotations
13 years ago
Fabio D'Urso
93c824f931
Added support to edit existing annotation tools, renamed NewAnnotToolDialog to EditAnnotToolDialog
13 years ago
Fabio D'Urso
3dcaa58558
Create tool XML entries via DOM methods
13 years ago
Fabio D'Urso
35d481e783
Consistently call "Note" -> "Pop-up Note" (as opposed to "Inline Note")
13 years ago
Fabio D'Urso
806fd2eafb
Allow nameless tools (which default to predefined names)
...
Removed name attribute from default tools (ie those from tools.xml), so
that they now get default names, which automatically translated if the
application language is switched.
With this patch, tools.xml no longer contains strings to be translated.
NOTE: Messages.sh was not tested
13 years ago
Fabio D'Urso
04441e7e4b
Set new tools' default values the same values as predefined tools
13 years ago
Fabio D'Urso
6bce1b85bc
Made line extensions configurable in the straight line annotation tool
13 years ago
Fabio D'Urso
5397f99262
Made polygon annotations' inner color configurable
13 years ago
Fabio D'Urso
d07735b23d
Configurable innerColor in GeomAnnotation tools (rectangle, ellipse)
13 years ago
Fabio D'Urso
cb5d84eecf
Provide default name for new annotation tools
...
This patch also removes the slot qualification to AnnotationWidget::applyChanges()
that I had added in "Show the same widget as the annotation properties dialog when
creating annotation tools", because it's not needed any more.
13 years ago
Fabio D'Urso
36aca4403a
Show tool icons in the configuration widget
13 years ago
Fabio D'Urso
18981a6707
Made icon for Note annotations configurable
...
Unlike Stamp annotations, hoverIcon and icon are different in Note
annotations.
13 years ago
Fabio D'Urso
8d969a8dbf
Made line width configurable in Ink, Line, Polygon, Square and Circle annotation tools
...
Note that previously the width attrubute was ignored by the PolyLine
engine and it always set width=1, that's why I had to change the default
value in tools.xml.
13 years ago
Fabio D'Urso
bd9a02863a
Show the same widget as the annotation properties dialog when creating annotation tools
...
Note: Some properties are not stored in the tools' XML yet
13 years ago
Fabio D'Urso
aebf585464
Don't hardcode pixmap name in annotation tools' XML description
...
First step towards dynamically-generated tool icons
13 years ago
Fabio D'Urso
f5aa37c216
Added support to create new annotation tools
13 years ago
Fabio D'Urso
394cc00ac5
Initial implementation of widget to edit annotation tools
...
It only supports removal, moveup and movedown.
13 years ago