This replaces the good working ToolAction by a (not so good working) ToggleActionMenu.
Unlike ToolAction, ToggleActionMenu inherits from KActionMenu, and is more universally applicaple.
* Menu can be set from outside, not hard coded.
* Default action for toolbar button is controllable from outside. (Theoretically, the button could trigger //anything// now.)
* KActionMenu instead of KSelectAction:
- Pluggable in other menus, thus called “Menu”.
- Doesn’t make the actions exclusive, so //any// actions can be added to the menu.
This will replace the (mostly similar) CheckableActionMenu from my other patch D21195, maybe leading to more consistence.
And it makes D21622 and D21635 obsolete, just because the default action is configurable.
Screenshot:
Everything like before, here with mouse_selecttool added to Tools menu to show submenu capability.
{F6884228}
TODO:
[ ] Load correct selection tool from configuration at startup, //after// mouseModeMenu is created.
[x] Fix crash at destruction
[ ] Better name than ToggleActionMenu? ToolAction was probably better.. :-/
[ ] License headers. (I’ve seen that mailing list thread, yes... :-/ )