Diffusion KJots 5ced6ed63668

[KJots] Add StandardNoteActionManager

Authored by poboiko on May 8 2020, 4:43 PM.

Description

[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:

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

Details

Committed
poboikoMay 9 2020, 10:00 AM
Reviewer
dvratil
Differential Revision
D29538: [KJots] Add StandardNoteActionManager
Parents
R573:f629f4accebe: Get rid of akonadi_next, move NoteCreatorAndSelector to noteshared
Branches
Unknown
Tags
Unknown