|
|
Home » Developing U++ » UppHub » MessageCtrl: A passive notifications ctrl and manager. (A a usefule CtrlLib add-on.)
MessageCtrl: A passive notifications ctrl and manager. [message #49494] |
Sun, 18 February 2018 19:21 |
Oblivion
Messages: 1092 Registered: August 2007
|
Senior Contributor |
|
|
Hello all,
KDE (and some other DEs or apps) have a nice, non-intrusive ("passive") notifications widgets. Here is the U++ counterpart.
This is the initial release. Although it is working pretty well, glitches should be expected.
Message package works on whatever U++ works. on.
Package contains API docs and a reference example.
MessageCtrl package for U++
-----------------------------
This class implements a messages manager.
Messages are simple message boxes similar to prompts in that they can allow the same basic user
actions. However, message boxes are not meant as a replacement for the traditional U++ dialogs.
The main difference between the messages and the prompts is that the message boxes are implemented
as frames instead of dialogs, and are meant to be less intrusive, and non-blocking.
There are several types of messages:
- Information: Should be used to display common information.
- Warning: Should be used to report non-critical issue, to inform that everything is all right.
- Success: Should be used to display successful operations. Essentially this is an information notification.
- Question: Should be used to ask for some interaction.
- Error: Should be used to display critical application errors
- Custom: If the predefined notification types don't suit your needs, you can create one.
Message boxes use QTF texts. This allows for embedding hyperlinks in messages.
It also means that in some cases the text messages should be escaped, using DeQtf() function.
History:
--------------------
2018-04-07: UseCross() method added. It is now possible to use a
small image button with cross instead of OK button.
Informative message boxes use crosses by default.
2018-03-03: Name clash on Windows fixed.
MessageBox::Type::ERROR -> MessageBox::Type::FAILURE
Message display order changed. New messages will be inserted
as the the topmost/bottom-most frame (depending on orientation)
Selective clearing added.
2018-03-01: Information and custom message boxes can now have timeouts.
2018-02-21: Widget renames as MessageCtrl. (Final)
2018-02-20: It is now possible to add mesasges as both top and bottom frames.
It is now possible to add single message box without using the manager.
Message framework further refactored.
2018-02-19: Name change: Notification -> Message.
Code refactored. (Thanks Klugier!)
2018-02-18: Initial public release
You can find the package below on the bottom of this message, or
You can grab its source code from: https://github.com/ismail-yilmaz/upp-components/tree/master/ CtrlLib/MessageCtrl
Screenshot:
Please feel free to comment on it.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Fri, 06 April 2018 23:07] Report message to a moderator
|
|
|
|
|
MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sun, 18 February 2018 19:21
|
|
|
Re: Notification: A passive notifications ctrl and manager.
By: Klugier on Sun, 18 February 2018 20:58
|
|
|
Re: Notification: A passive notifications ctrl and manager.
By: Klugier on Sun, 18 February 2018 21:28
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Mon, 19 February 2018 01:10
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Mon, 19 February 2018 15:01
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Klugier on Mon, 19 February 2018 22:12
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Mon, 19 February 2018 22:35
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Tue, 20 February 2018 17:46
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Klugier on Wed, 21 February 2018 00:02
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Wed, 21 February 2018 00:25
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Wed, 21 February 2018 20:18
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Fri, 02 March 2018 01:45
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 04 March 2018 08:33
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sun, 04 March 2018 10:40
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 04 March 2018 12:35
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sun, 04 March 2018 13:10
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 04 March 2018 16:56
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sun, 04 March 2018 21:05
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 04 March 2018 23:38
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 11 March 2018 12:03
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sun, 11 March 2018 12:32
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Mon, 12 March 2018 08:24
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Mon, 12 March 2018 09:58
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Mon, 12 March 2018 11:34
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Fri, 06 April 2018 23:10
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Fri, 05 April 2019 14:50
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 25 August 2019 23:03
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Mon, 26 August 2019 01:30
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Mon, 26 August 2019 08:56
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Tue, 02 February 2021 22:07
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sat, 21 January 2023 09:19
|
Goto Forum:
Current Time: Tue Apr 23 13:05:56 CEST 2024
Total time taken to generate the page: 0.01647 seconds
|
|
|