BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
A dialog similar to standard QMessageBox intended for detailed warning messages. On the contrary to QMessageBox, the dialog has size grip and visible text editor.
Definition at line 28 of file DetailedMessageBox.h.
Public Member Functions | |
DetailedMessageBox (QWidget *parent, const QString &title, const QString &text, const QString &details) | |
void | setDetailedText (const QString &text) |
void | setText (const QString &text) |
Private Member Functions | |
QBoxLayout * | createButtonLayout () |
Creates button layout with buttons. More... | |
QBoxLayout * | createInfoLayout () |
Creates right layout with text and QComboBox selection. More... | |
QBoxLayout * | createLogoLayout () |
Returns layout with icon for left part of the widget. More... | |
Private Attributes | |
QTextEdit * | m_textEdit |
QLabel * | m_topLabel |
DetailedMessageBox::DetailedMessageBox | ( | QWidget * | parent, |
const QString & | title, | ||
const QString & | text, | ||
const QString & | details | ||
) |
Definition at line 29 of file DetailedMessageBox.cpp.
References createButtonLayout(), createInfoLayout(), createLogoLayout(), m_textEdit, and m_topLabel.
|
private |
Creates button layout with buttons.
Definition at line 107 of file DetailedMessageBox.cpp.
Referenced by DetailedMessageBox().
|
private |
Creates right layout with text and QComboBox selection.
Definition at line 95 of file DetailedMessageBox.cpp.
References m_topLabel.
Referenced by DetailedMessageBox().
|
private |
Returns layout with icon for left part of the widget.
Definition at line 78 of file DetailedMessageBox.cpp.
Referenced by DetailedMessageBox().
void DetailedMessageBox::setDetailedText | ( | const QString & | text | ) |
Definition at line 71 of file DetailedMessageBox.cpp.
References m_textEdit.
void DetailedMessageBox::setText | ( | const QString & | text | ) |
Definition at line 66 of file DetailedMessageBox.cpp.
References m_topLabel.
|
private |
Definition at line 43 of file DetailedMessageBox.h.
Referenced by DetailedMessageBox(), and setDetailedText().
|
private |
Definition at line 42 of file DetailedMessageBox.h.
Referenced by DetailedMessageBox(), createInfoLayout(), and setText().