23 #include <QtWidgets/QMessageBox>
25 #define MB_SAVEDISCARDCANCEL 0x00000009L
38 CFxMessageBox(QMessageBox::Icon icon,
const QString &title,
const QString &text,
39 QMessageBox::StandardButtons buttons = NoButton, QWidget *parent = 0,
40 Qt::WindowFlags
f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint);
41 CFxMessageBox(
const QString &title,
const QString &text, QMessageBox::Icon icon,
42 int button0,
int button1,
int button2,
44 Qt::WindowFlags
f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint);
54 void addButton(QAbstractButton *button, QMessageBox::ButtonRole role);
65 QPushButton *
addButton(
const QString &text, QMessageBox::ButtonRole role);
75 QPushButton *
addButton(QMessageBox::StandardButton button);
84 void setStandardButtons(StandardButtons buttons, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton);
98 static QMessageBox::StandardButton
information(QWidget *parent,
const QString &title,
99 const QString &text, QMessageBox::StandardButtons buttons = Ok,
100 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton);
113 static QMessageBox::StandardButton
question(QWidget *parent,
const QString &title,
114 const QString &text, QMessageBox::StandardButtons buttons = Ok,
115 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton);
129 static QMessageBox::StandardButton
warning(QWidget *parent,
const QString &title,
130 const QString &text, QMessageBox::StandardButtons buttons = Ok,
131 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton);
145 static QMessageBox::StandardButton
critical(QWidget *parent,
const QString &title,
146 const QString &text, QMessageBox::StandardButtons buttons = Ok,
147 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton);
157 static QMessageBox::StandardButton showMessageBox(QMessageBox::Icon icon, QString title, QString text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton, QWidget *parent);
159 virtual void showEvent(QShowEvent *);
160 virtual void hideEvent(QHideEvent *);
162 QCursor m_PreviousCursor;
static QMessageBox::StandardButton question(QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton)
QPushButton * addButton(QMessageBox::StandardButton button)
QPushButton * addButton(const QString &text, QMessageBox::ButtonRole role)
static QMessageBox::StandardButton critical(QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton)
static QMessageBox::StandardButton information(QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton)
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)
void setStandardButtons(StandardButtons buttons, 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)
CFxMessageBox(QMessageBox::Icon icon, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=NoButton, QWidget *parent=0, Qt::WindowFlags f=Qt::Dialog|Qt::MSWindowsFixedSizeDialogHint)
void addButton(QAbstractButton *button, QMessageBox::ButtonRole role)
CFxMessageBox(QWidget *parent=0)