CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
CFxMessageBox Class Reference

#include <FxMessageBox.h>

Inheritance diagram for CFxMessageBox:

Public Member Functions

 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 Public Member Functions

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)
 

Protected Member Functions

bool event (QEvent *e) override
 
bool nativeEvent (const QByteArray &eventType, void *msg, long *result) override
 

Detailed Description

Description: Represents a CFx type MessageBox. Library: DDKERNEL

Definition at line 34 of file FxMessageBox.h.

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ addButton() [1/3]

QPushButton * CFxMessageBox::addButton ( const QString & text,
QMessageBox::ButtonRole role )

Description: Adds a button to 'role'. Arguments:

Parameters
textThe text.
roleThe 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]buttonIf non-null, the button.
roleThe role.

◆ addButton() [3/3]

QPushButton * CFxMessageBox::addButton ( QMessageBox::StandardButton button)

Description: Adds a button. Arguments:

Parameters
buttonThe button. 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]parentIf non-null, the parent.
titleThe title.
textThe 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]parentIf non-null, the parent.
titleThe title.
textThe 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]parentIf non-null, the parent.
titleThe title.
textThe 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
buttonsThe 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]parentIf non-null, the parent.
titleThe title.
textThe text.
buttons(optional) the buttons.
defaultButton(optional) the default button. Return Value: .

The documentation for this class was generated from the following file: