[Notification] add new version of notification widget #933
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR continues the complete change of medInria notification system (which was in a bottom bar).
This PR adds the class of the notification widget itself, displayed on middle top of the application, and which close automatically after x seconds. It can be closed by the user manually also if he/she wants. The idea is to use it to display quick information to the user, not full paragraphs. The notification has 3 types: MESSAGE for quick info, SUCCESS for success messages, and ERROR for error messages.
To test
include <medNotificationWidget.h>medLogintarget_link_librariesfrom its CMakeLists.txtmedHomepageArea::resizeEventfor instance (just after the application has its final size), choose the type of message you want to test:Screenshots of example
PS: no need to review the svg lines. Those are images, and Github does not understand them as such.
Ⓜ️