Albert Astals Cid
43900fe56e
Warn the user if there's no availabe signing certificates
5 years ago
Albert Astals Cid
c02f98a60f
Mark method as override
5 years ago
Albert Astals Cid
2646058111
Adapt to poppler API change
...
and fix a leak meanwhile ^_^
5 years ago
Albert Astals Cid
b09e23f6ab
Run clang-format
...
Attempting to fix the whole chain of commits is not worth it
5 years ago
Albert Astals Cid
bcf54ef2f1
These two methods don't need to be slots
5 years ago
Thorsten Behrens
b52adfeaee
Fix more clang-tidy unhappines
5 years ago
Katarina Behrens
20b34d00c9
Make clang-tidy happier
5 years ago
Thorsten Behrens
62a4c63fd3
Conditionalize code to Poppler signing feature flag
5 years ago
Thorsten Behrens
f37de4feb4
Set some signature reason - might want some UI later
5 years ago
Thorsten Behrens
71795917de
Add configurable CertDB path
5 years ago
Thorsten Behrens
e9577f5f7d
Properly set signature annotation bounds after insertion
5 years ago
Thorsten Behrens
9bca008f9d
Init m_signatureMode in ctor
5 years ago
Thorsten Behrens
3eedb21a83
Consistenly use CERT nick to refer to signing key
5 years ago
Thorsten Behrens
981c597376
Fix overwriting pdf after signing
...
- make explicit we're using static QFile func here
- QFile::rename doesn't work across filesystems, so instead
create it alongside. Might fail if dir is not writeable
- can't use QSaveFile, since poppler sign() func wants a filename
5 years ago
Thorsten Behrens
f7d6045b92
Add poppler NSS support
...
Move certificate config down into generator code
Read available signing certificates from poppler NSS
5 years ago
Thorsten Behrens
ae2c6a55c2
Fix crash on invalid engine
5 years ago
Thorsten Behrens
b96dac6df3
Add certificate store for access to NSS keys
...
WIP - add interfaces and methods to get access to NSS-via-poppler
sign certificates, and provide them for signing documents.
5 years ago
Thorsten Behrens
847b423e2a
Add better diagnostics
5 years ago
Thorsten Behrens
e031822744
Adapt to poppler sign api change
...
Now poppler offers signing via PDFConverter class. Add some error
handling, and store signature in temp file. Document gets reloaded
after replacing original file.
5 years ago
Thorsten Behrens
e3e582ee5c
Add feature flag for poppler signing API
...
Test and conditionally-compile pdf signing feature, depending
on poppler new-ness.
5 years ago
Katarina Behrens
b33a12d786
Prompt for password and stick it to widget annotation
5 years ago
Katarina Behrens
45fc7cd805
Read the certificates from configuration
5 years ago
Katarina Behrens
38c5b614b4
Simplify adding certificates to config and implement edit slot
5 years ago
Katarina Behrens
5db7421851
Get certificate CN and password and pass it to poppler
5 years ago
Katarina Behrens
cc908b9f92
Pass pointer to widget annotation just added down the chain
5 years ago
Katarina Behrens
03381667f6
Pass certificate CN and password down the chain
5 years ago
Katarina Behrens
66f2bff5ca
Pass bounding rectangle down the chain
5 years ago
Katarina Behrens
d320fa17ad
Stub some iface for signing the document
5 years ago
Katarina Behrens
c560a4a20e
Eventually hide the message window
5 years ago
Katarina Behrens
48dc3779f7
Add empty widget annotation
5 years ago
Katarina Behrens
b2c5aa61d7
Read/write certificate settings
5 years ago
Katarina Behrens
dd0c06a82b
Signature mode must eventually end
5 years ago
Katarina Behrens
6cff306bab
Making 'Sign' button a toggle was a bad idea
5 years ago
Katarina Behrens
3330f8407a
Open filepicker to select p12, pfx file to add to user identity
5 years ago
Katarina Behrens
242710cae7
Recycle WidgetConfigurationToolsBase for certificate management dlg
5 years ago
Katarina Behrens
060175735f
Open certificate selection dialog on mouse release
5 years ago
Katarina Behrens
339ce239f5
Draw an initial rectangle where to place the signature
5 years ago
Katarina Behrens
b5117aff6c
Add slot for 'Sign' button, shows info overlay so far
5 years ago
Katarina Behrens
888d287f1f
Add 'Sign' button to toolbar
5 years ago
Katarina Behrens
69ddb957f1
Add config page to configure signing identities/certificates
5 years ago
Katarina Behrens
2845db76fb
Add 'Sign' menu entry
5 years ago
Albert Astals Cid
35590a273d
Fix CI
...
Laurent please use MR like everyone else does, otherwise you break the
build for the rest of us.
CCMAIL: montel@kde.org
5 years ago
Laurent Montel
dd1938755e
Don't include QtTest as it includes all QtCore includes
5 years ago
Nicolas Fella
50e8c4f333
Port an occurence of KMimeTypeTrader
...
It is about to be deprecated
See https://phabricator.kde.org/T12177
5 years ago
Carl Schwan
88eb005c93
Fix regression introduced by previous QML commits
...
Now you can again swipe a pages and id is correct
5 years ago
Carl Schwan
d7f90b74a3
Use placeholder message for initial loading of a document
...
This also now remove the auto appearing global drawer that is now a menu
on desktop. This also move the main page into the pagestack.
Bump the Kirigami dependency because PlaceHolderMessage doesn't exist in
old version of Kirigami.
5 years ago
Carl Schwan
6af6742067
Visual improvements to drawer
...
Now the drawer open automatically when the window is big enough. The
drawer handle are also only visible when a document is open. The
thumbnails page was also improved and some spacing issues were solved.
5 years ago
Albert Astals Cid
604a4e1db2
clang-tidy: Disable bugprone-suspicious-enum-usage
...
Unfortunately it's triggered by QKeySequence needing a
Qt::KeyboardModifier and a Qt::Key
5 years ago
Albert Astals Cid
8176613076
Merge remote-tracking branch 'origin/release/20.12'
5 years ago
Albert Astals Cid
bc85160d7f
clang-tidy: Disable performance-no-automatic-move
...
It's just too aggressive with Qt classes that are refcounted and fine to
copy
5 years ago