![]() |
Songbook-Client
0.7
This application is a manager of customguitar songbooks
|
CNotification is a widget to provide exceptionnal information. More...
#include <notification.hh>
Public Types | |
| enum | Priority { LowPriority, MediumPriority, HighPriority } |
Public Member Functions | |
| CNotification (QWidget *parent) | |
| Constructor. | |
| QString | message () const |
| void | setMessage (const QString &message) |
| Priority | priority () const |
| void | setPriority (const Priority &level) |
| void | addAction (QAction *action) |
| CMainWindow * | parent () const |
CNotification is a widget to provide exceptionnal information.
A notification is supposed to appear as a ribbon at the top of the main window, giving the user a description of an unusal behavior with possible actions to choose from.
| void CNotification::addAction | ( | QAction * | action | ) |
Add an action to the notification. Actions result in QPushButtons on the right side, organised in a vertical layout.
| action | the action |
| QString CNotification::message | ( | ) | const |
Getter on the notification message. The message is the main information provided by the widget. Based on this message, the user can select appropriate actions.
| CMainWindow * CNotification::parent | ( | ) | const |
Getter on the parent widget.
| CNotification::Priority CNotification::priority | ( | ) | const |
Getter on the notification priority. The priority indicates the level of importance of the notification. As a result, the icon and color background of the notification area may change to highlight this level of priority.
| void CNotification::setMessage | ( | const QString & | message | ) |
Setter on the notification message. The message is the main information provided by the widget. Based on this message, the user can select appropriate actions.
| message | the message |
| void CNotification::setPriority | ( | const Priority & | level | ) |
Setter on the notification priority. The priority indicates the level of importance of the notification. As a result, the icon and color background of the notification area may change to highlight this level of priority.
| level | the priority level |
1.8.1.1