#include <PopUpMessageWidget.h>
|
| enum | MessageType {
Information = 0,
Notice = 1,
Warning = 2,
Error = 3,
Question = 4,
Valid = 5,
InvalidInformation = 6,
InvalidWarning = 7,
InvalidError = 8
} |
| |
| enum | Button {
NoButton = 0x0000,
Ok = 0x0001,
Yes = 0x0002,
Retry = 0x0004,
No = 0x0008,
Cancel = 0x0010,
DispatcherLogin = 0x0020,
Detail = 0x0040,
CloseButton = 0x0080,
Read = 0x0100
} |
| |
| Enumerator |
|---|
| NoButton |
|
| Ok |
|
| Yes |
|
| Retry |
|
| No |
|
| Cancel |
|
| DispatcherLogin |
|
| Detail |
|
| CloseButton |
|
| Read |
|
| Enumerator |
|---|
| Information |
|
| Notice |
|
| Warning |
|
| Error |
|
| Question |
|
| Valid |
|
| InvalidInformation |
|
| InvalidWarning |
|
| InvalidError |
|
| PopUpMessageWidget::PopUpMessageWidget |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
| PopUpMessageWidget::PopUpMessageWidget |
( |
const QString & |
messageTitle, |
|
|
const QString & |
messageText, |
|
|
MessageType |
messageType = Information, |
|
|
Buttons |
buttons = Ok, |
|
|
QWidget * |
parent = 0, |
|
|
unsigned short |
timeout = 0, |
|
|
const QString & |
messageLabel = "" |
|
) |
| |
| PopUpMessageWidget::~PopUpMessageWidget |
( |
| ) |
|
|
virtual |
| void PopUpMessageWidget::AddAndFillColumn |
( |
const QList< QString > & |
columnContents | ) |
|
AddAndFillColumn - creates new column in message description layout and fills it with list of strings.
- Parameters
-
| columnContents | - list of strings, every string is displayed on a new line |
| void PopUpMessageWidget::Close |
( |
| ) |
|
|
slot |
| void PopUpMessageWidget::Finished |
( |
| ) |
|
|
signal |
Returns last clicked button.
| QString PopUpMessageWidget::GetMessageText |
( |
| ) |
|
return widget's message text
| void PopUpMessageWidget::hide |
( |
| ) |
|
hide - hides the pop-up message.
| void PopUpMessageWidget::HideOnTouchOrEscape |
( |
bool |
hide | ) |
|
HideOnTouchOrEscape - set the flag saying if message should hide ofter touch or escape pressed.
- Parameters
-
| hide | - true if message should hide after touch event or pressing escape |
| void PopUpMessageWidget::HideTitleLabel |
( |
| ) |
|
HideTitleLabel - hides the title label, making more room for message text.
| void PopUpMessageWidget::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
| void PopUpMessageWidget::SetButtonText |
( |
Button |
button, |
|
|
const QString & |
text |
|
) |
| |
SetButtonText - replaces the text of a button (if the button is shown).
- Parameters
-
| button | - button type from the Button enum |
| text | - text for the button |
| void PopUpMessageWidget::SetMessageTitleAndText |
( |
const QString & |
messageTitle, |
|
|
const QString & |
messageText |
|
) |
| |
SetMessageTitleAndText - sets message title and text.
- Parameters
-
| messageTitle | - message title |
| messageText | - message text |
| void PopUpMessageWidget::SetMessageType |
( |
MessageType |
messageType | ) |
|
SetMessageType - sets type of the message.
- Parameters
-
| messageType | - type of the message from the MessageType enum |
| void PopUpMessageWidget::show |
( |
bool |
modal = false | ) |
|
show - shows the pop-up message.
| void PopUpMessageWidget::timerEvent |
( |
QTimerEvent * |
event | ) |
|
|
protected |
The documentation for this class was generated from the following files: