BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Form to select a material and to edit it in-place.
Definition at line 26 of file MaterialInplaceForm.h.
Public Member Functions | |
MaterialInplaceForm (QWidget *parent, ItemWithMaterial *item, SampleEditorController *ec) | |
ItemWithMaterial * | itemWithMaterial () const |
void | updateValues () |
Private Member Functions | |
void | createWidgets () |
void | onMaterialChanged () |
void | selectMaterial () |
Private Attributes | |
SampleEditorController * | m_ec |
ItemWithMaterial * | m_item |
QGridLayout * | m_layout |
MaterialInplaceForm::MaterialInplaceForm | ( | QWidget * | parent, |
ItemWithMaterial * | item, | ||
SampleEditorController * | ec | ||
) |
Definition at line 35 of file MaterialInplaceForm.cpp.
References createWidgets(), MaterialItem::dataChanged(), itemWithMaterial(), m_layout, and onMaterialChanged().
|
private |
Definition at line 90 of file MaterialInplaceForm.cpp.
References LayerEditorUtils::addVectorToGrid(), DoubleLineEdit::baseValueChanged(), m_ec, m_item, m_layout, ItemWithMaterial::materialItem(), selectMaterial(), and SampleEditorController::setMaterialValue().
Referenced by MaterialInplaceForm(), and selectMaterial().
ItemWithMaterial * MaterialInplaceForm::itemWithMaterial | ( | ) | const |
Definition at line 49 of file MaterialInplaceForm.cpp.
References m_item.
Referenced by MaterialInplaceForm(), and selectMaterial().
|
private |
Definition at line 131 of file MaterialInplaceForm.cpp.
References updateValues().
Referenced by MaterialInplaceForm(), and selectMaterial().
|
private |
Definition at line 66 of file MaterialInplaceForm.cpp.
References MaterialEditorDialog::chooseMaterial(), GUI::Util::Layout::clearLayout(), GUI::Util::createBackup(), createWidgets(), MaterialItem::dataChanged(), itemWithMaterial(), m_ec, m_item, m_layout, GUI::Global::mainWindow, ItemWithMaterial::materialIdentifier(), ItemWithMaterial::materialItem(), MultiLayerItem::materialItems(), SampleEditorController::modified(), onMaterialChanged(), SampleEditorController::sampleItem(), SampleEditorController::selectMaterial(), and updateValues().
Referenced by createWidgets().
void MaterialInplaceForm::updateValues | ( | ) |
Definition at line 54 of file MaterialInplaceForm.cpp.
Referenced by onMaterialChanged(), and selectMaterial().
|
private |
Definition at line 40 of file MaterialInplaceForm.h.
Referenced by createWidgets(), and selectMaterial().
|
private |
Definition at line 39 of file MaterialInplaceForm.h.
Referenced by createWidgets(), itemWithMaterial(), and selectMaterial().
|
private |
Definition at line 41 of file MaterialInplaceForm.h.
Referenced by MaterialInplaceForm(), createWidgets(), and selectMaterial().