BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Editor for ExternalProperty variant. More...
Public Slots | |
void | setData (const QVariant &data) |
Sets the data from the model to editor. More... | |
Signals | |
void | dataChanged (const QVariant &data) |
Signal emit then user changed the data through the editor. More... | |
Public Member Functions | |
ExternalPropertyEditor (QWidget *parent=nullptr) | |
QVariant | editorData () |
void | setExternalDialogType (const QString &dialogType) |
Protected Member Functions | |
void | initEditor () |
Inits editor widgets from m_data. More... | |
void | setDataIntern (const QVariant &data) |
Saves the data from the editor and informs external delegates. More... | |
Protected Attributes | |
QVariant | m_data |
Private Slots | |
void | buttonClicked () |
Private Attributes | |
QString | m_extDialogType |
Type of the dialog which will be created on button click. More... | |
LostFocusFilter * | m_focusFilter |
QLabel * | m_pixmapLabel |
QLabel * | m_textLabel |
Editor for ExternalProperty variant.
Definition at line 50 of file CustomEditors.h.
|
explicit |
Definition at line 68 of file CustomEditors.cpp.
References buttonClicked(), m_pixmapLabel, m_textLabel, ExternalProperty::pixmap(), and ExternalProperty::text().
|
privateslot |
Definition at line 105 of file CustomEditors.cpp.
References CustomEditor::m_data, m_extDialogType, m_focusFilter, MaterialItemUtils::selectColorProperty(), MaterialItemUtils::selectMaterialProperty(), and CustomEditor::setDataIntern().
Referenced by ExternalPropertyEditor().
|
signalinherited |
Signal emit then user changed the data through the editor.
Referenced by PropertyWidgetItem::connectEditor(), SessionModelDelegate::createEditor(), and CustomEditor::setDataIntern().
|
inlineinherited |
|
protectedvirtual |
Inits editor widgets from m_data.
Reimplemented from CustomEditor.
Definition at line 126 of file CustomEditors.cpp.
References ASSERT, CustomEditor::m_data, m_pixmapLabel, m_textLabel, MaterialItemUtils::materialProperty(), ExternalProperty::pixmap(), and ExternalProperty::text().
|
slotinherited |
Sets the data from the model to editor.
Definition at line 48 of file CustomEditors.cpp.
References CustomEditor::initEditor(), and CustomEditor::m_data.
|
protectedinherited |
Saves the data from the editor and informs external delegates.
Definition at line 60 of file CustomEditors.cpp.
References CustomEditor::dataChanged(), and CustomEditor::m_data.
Referenced by buttonClicked(), BoolEditor::onCheckBoxChange(), ScientificDoublePropertyEditor::onEditingFinished(), DoubleEditor::onEditingFinished(), ScientificSpinBoxEditor::onEditingFinished(), IntEditor::onEditingFinished(), ComboPropertyEditor::onIndexChanged(), and MultiComboPropertyEditor::onModelDataChanged().
void ExternalPropertyEditor::setExternalDialogType | ( | const QString & | dialogType | ) |
Definition at line 100 of file CustomEditors.cpp.
References m_extDialogType.
Referenced by PropertyEditorFactory::CreateEditor().
|
protectedinherited |
Definition at line 45 of file CustomEditors.h.
Referenced by buttonClicked(), CustomEditor::editorData(), initEditor(), ScientificDoublePropertyEditor::initEditor(), DoubleEditor::initEditor(), ScientificSpinBoxEditor::initEditor(), IntEditor::initEditor(), BoolEditor::initEditor(), MultiComboPropertyEditor::initEditor(), ComboPropertyEditor::internIndex(), ComboPropertyEditor::internLabels(), BoolEditor::onCheckBoxChange(), ScientificDoublePropertyEditor::onEditingFinished(), DoubleEditor::onEditingFinished(), ScientificSpinBoxEditor::onEditingFinished(), IntEditor::onEditingFinished(), ComboPropertyEditor::onIndexChanged(), MultiComboPropertyEditor::onModelDataChanged(), CustomEditor::setData(), CustomEditor::setDataIntern(), and MultiComboPropertyEditor::updateBoxLabel().
|
private |
Type of the dialog which will be created on button click.
Definition at line 67 of file CustomEditors.h.
Referenced by buttonClicked(), and setExternalDialogType().
|
private |
Definition at line 66 of file CustomEditors.h.
Referenced by buttonClicked().
|
private |
Definition at line 65 of file CustomEditors.h.
Referenced by ExternalPropertyEditor(), and initEditor().
|
private |
Definition at line 64 of file CustomEditors.h.
Referenced by ExternalPropertyEditor(), and initEditor().