In its system tray item, kleopatra has actions for doing cryptograhpic operations with the clipboard as data.
- "Decrypt/Verify": UI-wise, this seems mostly fine. It opens a dialog showing the results in the same way as when decrypting/verifying a file. The only problem here is that it shows a message "Successfully decrypted and verified 'Clipboard contents' as 'Clipboard'", which doesn't really make sense. We need similar special logic here to what is done for the notepad
- "S/MIME-Sign", "OpenPGP-Sign", and "Encrypt": These use dialogs that look very different from those used for the notepad and for signing/encrypting files. These actions should be unified into a single Sign/Encrypt action, which uses the recipient/signer selection component as in the notepad (with the same limitations of allowing either s/mime or pgp and for s/mime, either encrypting or signing). Since it needs to be wrapped in a widget, it might make sense to reuse the entire file encryption/signing dialog with some options for removing irrelevant things from the UI