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.)
* Pluggable in other menus, thus called “Menu”.
This will replace the (mostly similar) CheckableActionMenu from my other patch D21195, leading to more consistence.
TODO:
[ ] Load correct selection tool from configuration at startup, //after// mouseModeMenu is created.
[ ] Fix crash at destruction
[ ] Better name than ToggleActionMenu? ToolAction was probably better.. :-/
[ ] License headers. (I’ve seen that mailing list thread, yes... :-/ )