Kevin Funk
a53a2402ca
clang-tidy: modernize-use-nullptr run
...
Semi-ACK'd by Albert :)
9 years ago
Albert Vaca
3c93b2523e
Added missing overrides found by clang-tidy
10 years ago
Albert Vaca
c71f308252
Fixes suggested by Clazy
10 years ago
Martin T. H. Sandsmark
ba4b9eb1a6
ui: Fix build without implicit cast to/from ascii
...
See previous commits for details.
10 years ago
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
10 years ago
Montel Laurent
466eb79615
Use QStringLiteral
11 years ago
Montel Laurent
6fab218de9
Use Q_NULLPTR
11 years ago
Montel Laurent
da040cbd46
Fix includes
11 years ago
Lukáš Tinkl
e9ae1d99af
port away from KLocale
11 years ago
Montel Laurent
21360d6b7a
Fix includes
12 years ago
Montel Laurent
3b4ee788b8
Fix includes
12 years ago
Montel Laurent
2eacdea022
Port to new connect api
12 years ago
Montel Laurent
378f6847a2
Remove some deprecated kdelibs4support
12 years ago
Albert Astals Cid
9312182085
Fix latex render in annotations
...
We need
disconnect(textEdit, SIGNAL(cursorPositionChanged()), this,SLOT(slotsaveWindowText()));
and it's counterpart, otherwise when inserting the image, the cursor pos changes, slotsaveWindowText is called, the content is passed by a toPlainText and set again and kaboom the content is lost
Also a few extra const
BUGS: 335476
FIXED-IN: 4.14.2
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
Frederik Gladhorn
b32d815301
A few action and include fixes
12 years ago
Frederik Gladhorn
0ba233788c
Use moc include style dictated by automoc
...
While it's generally not a great idea to include moc files at least this
compiles.
12 years ago
Fabio D'Urso
ad589985e1
Remove some unused #includes
13 years ago
Jon Mease
78faf1e68f
Add undo/redo support for annotations
...
REVIEW: 107442
13 years ago
Fabio D'Urso
e130068726
Show latex button when the annotation popup window is opened
...
Check for latex contents after creating the MovableTitle, bacause it's in
MovableTitle ctor where the containsLatex signal is connected.
14 years ago
Fabio D'Urso
f6fa2a5614
Disable GUI operations on certain types of annotations
...
Modification and removal of *external* annotations are disabled by this
patch. Note that this change doesn't remove any functionality, because they
have never been implemented (AnnotationProxy is defined by the previous
patch).
The #if0'd blocks will be enabled by a future patch that provides fallback
behavior for generators that don't support saving changes.
14 years ago
Fabio D'Urso
ec9f068d77
Added AnnotationProxy to SaveInterface
...
Based on Pino Toscano's earlier work
14 years ago
Albert Astals Cid
b2dfb910e8
Small rework of AnnotWindow
...
* We do not keep them around any more time than needed (they are cheap to create)
* AnnotWindow::slotsaveWindowText calls m_document->modifyPageAnnotation so
edition of inline notes happens immediately
14 years ago
Yuri Chornoivan
9dab469366
Fix typos: occured -> occurred.
15 years ago
Frederik Schwarzer
40ac3d889b
Make strings more user friendly.
15 years ago
Albert Astals Cid
62bea46f5e
Do not need QMessageBox include
15 years ago
Niels Ole Salscheider
65153935d9
add LaTeX support to annotation window
15 years ago
Montel Laurent
f9f65979f5
Normalize signals/slots
15 years ago
Albert Astals Cid
0a514d630b
Close the annot window on Esc keypress
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1202702
16 years ago
Pino Toscano
4b50e543d6
focus the text when showing an annotation popup
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=935096
17 years ago
Pino Toscano
969abdeec0
make the tooltip for the close button of the annotation window a bit more clear
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=789534
18 years ago
Pino Toscano
8df0b87e18
set & reload the author as well
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=789353
18 years ago
Pino Toscano
961b27e99c
Properly apply, and reload when changed, the annotation info in the annotation window (color, modication date, etc).
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=789344
18 years ago
Pino Toscano
6511086ffc
Annotation window:
...
- explicitely deny rich text
- set the plain text w/o an implicit html conversion
BUG: 159641
svn path=/trunk/KDE/kdegraphics/okular/; revision=789331
18 years ago
Pino Toscano
3c8f77a3ae
In the annotation window, get the right anotation text using the cool function we already have;
...
to save it back, use a similar approach.
svn path=/trunk/KDE/kdegraphics/okular/; revision=784138
18 years ago
Albert Astals Cid
2f61e6545b
use kclasses
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=760478
18 years ago
Pino Toscano
aa9181b3a1
disable the option button for now
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=746110
19 years ago
Pino Toscano
5556af3210
get rid of the hand made resize grip and use QSizeGrip - the trick about it was making the widget to be resized a Qt::SubWindow
...
this makes the annotation window working in RtL mode as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=691341
19 years ago
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
19 years ago
David Jarvie
6ccde0505c
Add fancy date option to KLocale::formatDate(), KLocale::formatDateTime()
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=652038
19 years ago
Tobias Koenig
a9f58440df
First large commit for the Annotation API cleanup
...
* Moved all public member variables of Annotation to private
and add accessors
* Renamed RevScope and RevType to RevisionScope and RevisionType
* Add API documentation (@pino , please review)
svn path=/trunk/playground/graphics/okular/; revision=610749
20 years ago
Tobias Koenig
df7d144c10
Moved all classes in core/ into the 'Okular' namespace and removed
...
nearly all references to kpdf (knewstuff still missing).
svn path=/trunk/playground/graphics/okular/; revision=586993
20 years ago
Pino Toscano
4d0d19be83
- reduce a bit the font used for the date label
...
- shrink the option button as much as we can
svn path=/trunk/playground/graphics/okular/; revision=586288
20 years ago
Pino Toscano
27dc15c960
use a standard color (yellow) when the annotation color is not defined
...
svn path=/trunk/playground/graphics/okular/; revision=585682
20 years ago
Pino Toscano
dc2c0bef27
Rewrite almost completely the AnnotWindow so it uses less hacks and more Qt stuff; now it's a bit more clean
...
svn path=/trunk/playground/graphics/okular/; revision=585647
20 years ago
Pino Toscano
6c2ea7b63d
replace the hard-coded close button with a standard one.
...
the whole widget needs more loving, though.
svn path=/trunk/playground/graphics/okular/; revision=585241
20 years ago
Pino Toscano
7ee4cbcae9
format a datetime in the kde's way
...
svn path=/trunk/playground/graphics/okular/; revision=585234
20 years ago
Tobias Koenig
90140c1479
warnings--
...
svn path=/trunk/playground/graphics/okular/; revision=578892
20 years ago