Introduce shell-embedded message area, to avoid dialog windows

Authored by kossebau on Jan 15 2020, 10:57 AM.

Description

Introduce shell-embedded message area, to avoid dialog windows

When code wants to inform the user about an issue, lots of KDevelop
code currently simply pops up a message dialog window, with all the
consequences like stealing the focus.
Most of the time the message though is just assisting information
why something has not worked and does not need to block the user instantly
from the normal interaction, instead could be digested by the user later.

This patch introduces a message area to the shell, between toolbars and
the view area. Which will auto-expand if messages are to be shown.
This is similar to the inline-message area known from KTextEditor documents,
but here applied to the scope of the shell.

Luckily the code from KTextEditor for the message area can also be reused
here (though only as fork for now), so it is well tested code.

Not all places using KMessageBox/QMessageBox for notification-like
messages can be replaced yet, as sometimes they are used when assistant
dialogs are open. That might need a second step to also ensure all such
dialogs have such areas and could then get the messages channeled to them.

This message system would also allow to be extended later to send off
messages to the workspace notification system if the shell window does
not have focus, for messages flagged as being important enough for this.

Details

Committed
kossebauJan 17 2020, 10:02 PM
Parents
R32:34e874d73e44: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown