[KJots] Add StandardNoteActionManager
Summary:
This adds a class that stores note-related actions. Currently those are:
- Create Note
- Lock / Unlock
- Change Color
It also provides access to Akonadi::StandardActionManager, which allows to reuse the standard actions for:
- Book creation (akonadi_collection_create)
- Note / Book removal (akonadi_item_delete, akonadi_collection_delete)
- Copy link address (akonadi_item_copy, akonadi_collection_copy) - this is slightly buggy, see D29484: [StandardActionManager] Don't add PendingCutRole when copying
- ...and some other actions like "create resource" in the future
This was written with possible triple-column UI (like KMail / KAddressBook has) in mind, where item / collection views could be separated.
This slightly changes the behavior:
- "Delete selection" action (allowed to delete notes and books simultaneously) was removed
- "Delete Note / Book" are now disabled if note / book is locked
- They also now show confirmation dialog
- A slight change in terminology (instead of "Page" I suggest just using "Note"; TODO: need to do it consistently)
Test Plan: Tested changed actions, they seem to be functional
Reviewers: dvratil
Reviewed By: dvratil
Subscribers: kde-pim
Tags: KDE PIM
Differential Revision: https://phabricator.kde.org/D29538