|
BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
A dialog similar to standard QMessageBox with combo box selector.
Definition at line 27 of file ComboSelectorDialog.h.
Public Member Functions | |
| ComboSelectorDialog (QWidget *parent=nullptr) | |
| void | addItems (const QStringList &selection, const QString ¤tItem="") |
| QString | currentText () const |
| void | setTextBottom (const QString &text) |
| void | setTextTop (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 | |
| QLabel * | m_bottomLabel |
| QComboBox * | m_comboSelector |
| QLabel * | m_topLabel |
| ComboSelectorDialog::ComboSelectorDialog | ( | QWidget * | parent = nullptr | ) |
Definition at line 23 of file ComboSelectorDialog.cpp.
References createButtonLayout(), createInfoLayout(), and createLogoLayout().
| void ComboSelectorDialog::addItems | ( | const QStringList & | selection, |
| const QString & | currentItem = "" |
||
| ) |
|
private |
Creates button layout with buttons.
Definition at line 113 of file ComboSelectorDialog.cpp.
Referenced by ComboSelectorDialog().
|
private |
Creates right layout with text and QComboBox selection.
Definition at line 93 of file ComboSelectorDialog.cpp.
References m_bottomLabel, m_comboSelector, and m_topLabel.
Referenced by ComboSelectorDialog().
|
private |
Returns layout with icon for left part of the widget.
Definition at line 75 of file ComboSelectorDialog.cpp.
Referenced by ComboSelectorDialog().
| QString ComboSelectorDialog::currentText | ( | ) | const |
Definition at line 68 of file ComboSelectorDialog.cpp.
References m_comboSelector.
| void ComboSelectorDialog::setTextBottom | ( | const QString & | text | ) |
Definition at line 63 of file ComboSelectorDialog.cpp.
References m_bottomLabel.
| void ComboSelectorDialog::setTextTop | ( | const QString & | text | ) |
Definition at line 58 of file ComboSelectorDialog.cpp.
References m_topLabel.
|
private |
Definition at line 45 of file ComboSelectorDialog.h.
Referenced by createInfoLayout(), and setTextBottom().
|
private |
Definition at line 44 of file ComboSelectorDialog.h.
Referenced by addItems(), createInfoLayout(), and currentText().
|
private |
Definition at line 43 of file ComboSelectorDialog.h.
Referenced by createInfoLayout(), and setTextTop().