#include <FxMessageBox.h>
|
| CFxMessageBox (QWidget *parent=0) |
|
| CFxMessageBox (QMessageBox::Icon icon, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=NoButton, QWidget *parent=0, Qt::WindowFlags f=Qt::Dialog|Qt::MSWindowsFixedSizeDialogHint) |
|
| CFxMessageBox (const QString &title, const QString &text, QMessageBox::Icon icon, int button0, int button1, int button2, QWidget *parent=0, Qt::WindowFlags f=Qt::Dialog|Qt::MSWindowsFixedSizeDialogHint) |
|
virtual | ~CFxMessageBox () |
|
void | addButton (QAbstractButton *button, QMessageBox::ButtonRole role) |
|
QPushButton * | addButton (const QString &text, QMessageBox::ButtonRole role) |
|
QPushButton * | addButton (QMessageBox::StandardButton button) |
|
void | setStandardButtons (StandardButtons buttons, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton) |
|
virtual int | exec () |
|
|
static QMessageBox::StandardButton | information (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton) |
|
static QMessageBox::StandardButton | question (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton) |
|
static QMessageBox::StandardButton | warning (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton) |
|
static QMessageBox::StandardButton | critical (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton) |
|
|
bool | event (QEvent *e) override |
|
bool | nativeEvent (const QByteArray &eventType, void *msg, long *result) override |
|
Description: Represents a CFx type MessageBox. Library: DDKERNEL
Definition at line 34 of file FxMessageBox.h.
◆ CFxMessageBox() [1/3]
CFxMessageBox::CFxMessageBox |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ CFxMessageBox() [2/3]
CFxMessageBox::CFxMessageBox |
( |
QMessageBox::Icon |
icon, |
|
|
const QString & |
title, |
|
|
const QString & |
text, |
|
|
QMessageBox::StandardButtons |
buttons = NoButton , |
|
|
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
f = Qt::Dialog|Qt::MSWindowsFixedSizeDialogHint |
|
) |
| |
◆ CFxMessageBox() [3/3]
CFxMessageBox::CFxMessageBox |
( |
const QString & |
title, |
|
|
const QString & |
text, |
|
|
QMessageBox::Icon |
icon, |
|
|
int |
button0, |
|
|
int |
button1, |
|
|
int |
button2, |
|
|
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
f = Qt::Dialog|Qt::MSWindowsFixedSizeDialogHint |
|
) |
| |
◆ ~CFxMessageBox()
virtual CFxMessageBox::~CFxMessageBox |
( |
| ) |
|
|
virtual |
◆ addButton() [1/3]
QPushButton* CFxMessageBox::addButton |
( |
const QString & |
text, |
|
|
QMessageBox::ButtonRole |
role |
|
) |
| |
Description: Adds a button to 'role'. Arguments:
- Parameters
-
text | The text. |
role | The role. |
Return Value: null if it fails, else.
◆ addButton() [2/3]
void CFxMessageBox::addButton |
( |
QAbstractButton * |
button, |
|
|
QMessageBox::ButtonRole |
role |
|
) |
| |
Description: Adds a button to 'role'. Arguments:
- Parameters
-
[in,out] | button | If non-null, the button. |
| role | The role. |
◆ addButton() [3/3]
QPushButton* CFxMessageBox::addButton |
( |
QMessageBox::StandardButton |
button | ) |
|
Description: Adds a button. Arguments:
- Parameters
-
Return Value: null if it fails, else.
◆ critical()
static QMessageBox::StandardButton CFxMessageBox::critical |
( |
QWidget * |
parent, |
|
|
const QString & |
title, |
|
|
const QString & |
text, |
|
|
QMessageBox::StandardButtons |
buttons = Ok , |
|
|
QMessageBox::StandardButton |
defaultButton = QMessageBox::NoButton |
|
) |
| |
|
static |
Description: Criticals. Arguments:
- Parameters
-
[in,out] | parent | If non-null, the parent. |
| title | The title. |
| text | The text. |
| buttons | (optional) the buttons. |
| defaultButton | (optional) the default button. |
Return Value: .
◆ event()
bool CFxMessageBox::event |
( |
QEvent * |
e | ) |
|
|
overrideprotected |
◆ exec()
virtual int CFxMessageBox::exec |
( |
| ) |
|
|
virtual |
Description: Arguments: Return Value: selected button ID
◆ information()
static QMessageBox::StandardButton CFxMessageBox::information |
( |
QWidget * |
parent, |
|
|
const QString & |
title, |
|
|
const QString & |
text, |
|
|
QMessageBox::StandardButtons |
buttons = Ok , |
|
|
QMessageBox::StandardButton |
defaultButton = QMessageBox::NoButton |
|
) |
| |
|
static |
Description: Informations. Arguments:
- Parameters
-
[in,out] | parent | If non-null, the parent. |
| title | The title. |
| text | The text. |
| buttons | (optional) the buttons. |
| defaultButton | (optional) the default button. |
Return Value: .
◆ nativeEvent()
bool CFxMessageBox::nativeEvent |
( |
const QByteArray & |
eventType, |
|
|
void * |
msg, |
|
|
long * |
result |
|
) |
| |
|
overrideprotected |
◆ question()
static QMessageBox::StandardButton CFxMessageBox::question |
( |
QWidget * |
parent, |
|
|
const QString & |
title, |
|
|
const QString & |
text, |
|
|
QMessageBox::StandardButtons |
buttons = Ok , |
|
|
QMessageBox::StandardButton |
defaultButton = QMessageBox::NoButton |
|
) |
| |
|
static |
Description: Questions. Arguments:
- Parameters
-
[in,out] | parent | If non-null, the parent. |
| title | The title. |
| text | The text. |
| buttons | (optional) the buttons. |
| defaultButton | (optional) the default button.
Return Value: . |
◆ setStandardButtons()
void CFxMessageBox::setStandardButtons |
( |
StandardButtons |
buttons, |
|
|
QMessageBox::StandardButton |
defaultButton = QMessageBox::NoButton |
|
) |
| |
Description: Sets a standard buttons. Arguments:
- Parameters
-
buttons | The buttons. |
defaultButton | (optional) the default button. |
◆ warning()
static QMessageBox::StandardButton CFxMessageBox::warning |
( |
QWidget * |
parent, |
|
|
const QString & |
title, |
|
|
const QString & |
text, |
|
|
QMessageBox::StandardButtons |
buttons = Ok , |
|
|
QMessageBox::StandardButton |
defaultButton = QMessageBox::NoButton |
|
) |
| |
|
static |
Description: Warnings. Arguments:
- Parameters
-
[in,out] | parent | If non-null, the parent. |
| title | The title. |
| text | The text. |
| buttons | (optional) the buttons. |
| defaultButton | (optional) the default button. |
Return Value: .
The documentation for this class was generated from the following file: