BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Form for editing a layer.
Definition at line 29 of file LayerForm.h.
Public Member Functions | |
LayerForm (QWidget *parent, LayerItem *layer, SampleEditorController *ec) | |
void | enableStructureEditing (bool b) |
void | expand () |
LayerItem * | layerItem () const |
void | onAboutToRemoveLayout (ParticleLayoutItem *layoutItem) |
void | onLayoutAdded (ParticleLayoutItem *layoutItem) |
void | updateLayerPositionDependentElements () |
void | updateTitle () |
Private Member Functions | |
void | updateColor () |
Private Attributes | |
GroupBoxCollapser * | m_collapser |
SampleEditorController * | m_ec |
LayerItem * | m_layer |
std::unique_ptr< FormLayouter > | m_layouter |
WidgetMoverButton * | m_moveButton |
QAction * | m_removeAction |
int | m_roughnessRow = -1 |
QList< QWidget * > | m_structureEditingWidgets |
int | m_thicknessRow = -1 |
LayerForm::LayerForm | ( | QWidget * | parent, |
LayerItem * | layer, | ||
SampleEditorController * | ec | ||
) |
Definition at line 31 of file LayerForm.cpp.
References GroupBoxCollapser::addAction(), SampleEditorController::addLayout(), GroupBoxCollapser::addWidget(), LayerItem::color(), ActionFactory::createRemoveAction(), ActionFactory::createShowInRealSpaceAction(), WidgetMoverButton::finishedMoving(), GroupBoxCollapser::installIntoGroupBox(), LayerItem::layerName(), LayerItem::layouts(), m_collapser, m_ec, m_layer, m_layouter, m_moveButton, m_removeAction, m_roughnessRow, m_structureEditingWidgets, m_thicknessRow, MaterialItems::materialChanged(), SampleEditorController::materialItems(), LayerItem::numSlices(), SampleEditorController::onStartingToMoveLayer(), SampleEditorController::onStoppedToMoveLayer(), LayerEditorUtils::predefinedLayerColors(), SampleEditorController::removeLayer(), SampleEditorController::requestViewInRealSpace(), LayerItem::roughness(), LayerItem::setColor(), WidgetMoverButton::startingToMove(), LayerItem::thickness(), updateColor(), updateLayerPositionDependentElements(), and updateTitle().
void LayerForm::enableStructureEditing | ( | bool | b | ) |
Definition at line 103 of file LayerForm.cpp.
References MultiLayerItem::layers(), m_ec, m_moveButton, m_removeAction, m_structureEditingWidgets, and SampleEditorController::sampleItem().
void LayerForm::expand | ( | ) |
Definition at line 127 of file LayerForm.cpp.
References m_collapser, and GroupBoxCollapser::setExpanded().
LayerItem * LayerForm::layerItem | ( | ) | const |
Definition at line 188 of file LayerForm.cpp.
References m_layer.
Referenced by ParticleLayoutForm::ParticleLayoutForm(), SampleEditorController::addLayout(), SampleEditorController::onStoppedToMoveLayer(), and SampleEditorController::removeLayout().
void LayerForm::onAboutToRemoveLayout | ( | ParticleLayoutItem * | layoutItem | ) |
Definition at line 179 of file LayerForm.cpp.
References LayerItem::layouts(), m_layer, and m_layouter.
Referenced by SampleEditorController::removeLayout().
void LayerForm::onLayoutAdded | ( | ParticleLayoutItem * | layoutItem | ) |
Definition at line 171 of file LayerForm.cpp.
References LayerItem::layouts(), m_ec, m_layer, and m_layouter.
Referenced by SampleEditorController::addLayout().
|
private |
Definition at line 114 of file LayerForm.cpp.
References LayerItem::color(), and m_layer.
Referenced by LayerForm().
void LayerForm::updateLayerPositionDependentElements | ( | ) |
Definition at line 132 of file LayerForm.cpp.
References DoubleDescriptor::label, MultiLayerItem::layers(), m_ec, m_layer, m_layouter, m_moveButton, m_roughnessRow, m_thicknessRow, SampleEditorController::sampleItem(), LayerItem::thickness(), and updateTitle().
Referenced by LayerForm().
void LayerForm::updateTitle | ( | ) |
Definition at line 120 of file LayerForm.cpp.
References MultiLayerItem::layers(), m_collapser, m_ec, m_layer, ItemWithMaterial::materialName(), SampleEditorController::sampleItem(), and GroupBoxCollapser::setTitle().
Referenced by LayerForm(), and updateLayerPositionDependentElements().
|
private |
Definition at line 46 of file LayerForm.h.
Referenced by LayerForm(), expand(), and updateTitle().
|
private |
Definition at line 52 of file LayerForm.h.
Referenced by LayerForm(), enableStructureEditing(), onLayoutAdded(), updateLayerPositionDependentElements(), and updateTitle().
|
private |
Definition at line 48 of file LayerForm.h.
Referenced by LayerForm(), layerItem(), onAboutToRemoveLayout(), onLayoutAdded(), updateColor(), updateLayerPositionDependentElements(), and updateTitle().
|
private |
Definition at line 47 of file LayerForm.h.
Referenced by LayerForm(), onAboutToRemoveLayout(), onLayoutAdded(), and updateLayerPositionDependentElements().
|
private |
Definition at line 54 of file LayerForm.h.
Referenced by LayerForm(), enableStructureEditing(), and updateLayerPositionDependentElements().
|
private |
Definition at line 49 of file LayerForm.h.
Referenced by LayerForm(), and enableStructureEditing().
|
private |
Definition at line 50 of file LayerForm.h.
Referenced by LayerForm(), and updateLayerPositionDependentElements().
|
private |
Definition at line 53 of file LayerForm.h.
Referenced by LayerForm(), and enableStructureEditing().
|
private |
Definition at line 51 of file LayerForm.h.
Referenced by LayerForm(), and updateLayerPositionDependentElements().