BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Form for editing a particle composition.
Definition at line 28 of file ParticleCompositionForm.h.
Public Member Functions | |
ParticleCompositionForm (QWidget *parent, ParticleCompositionItem *compositionItem, SampleEditorController *ec, bool allowRemove=true) | |
ParticleCompositionItem * | compositionItem () const |
void | enableStructureEditing (bool b) |
void | onAboutToRemoveParticle (ItemWithParticles *item) |
void | onParticleAdded (ItemWithParticles *item) |
Private Attributes | |
ParticleCompositionItem * | m_compositionItem |
SampleEditorController * | m_ec |
QFormLayout * | m_layout |
QAction * | m_removeAction = nullptr |
QList< QWidget * > | m_structureEditingWidgets |
ParticleCompositionForm::ParticleCompositionForm | ( | QWidget * | parent, |
ParticleCompositionItem * | compositionItem, | ||
SampleEditorController * | ec, | ||
bool | allowRemove = true |
||
) |
Definition at line 26 of file ParticleCompositionForm.cpp.
References ItemWithParticles::abundance(), SampleEditorController::addParticle(), FormLayouter::addRow(), FormLayouter::addSelection(), FormLayouter::addStructureEditingRow(), FormLayouter::addValue(), FormLayouter::addVector(), compositionItem(), LayerEditorUtils::createAddParticleButton(), ActionFactory::createRemoveAction(), ActionFactory::createShowInRealSpaceAction(), LayerEditorUtils::createWidgetForItemWithParticles(), GroupBoxCollapser::installIntoGroupBox(), FormLayouter::layout(), m_layout, m_removeAction, m_structureEditingWidgets, ParticleCompositionItem::particles(), ItemWithParticles::positionVector(), SampleEditorController::removeParticle(), SampleEditorController::requestViewInRealSpace(), ItemWithParticles::rotation(), and FormLayouter::setContentsMargins().
ParticleCompositionItem * ParticleCompositionForm::compositionItem | ( | ) | const |
Definition at line 75 of file ParticleCompositionForm.cpp.
References m_compositionItem.
Referenced by ParticleCompositionForm().
void ParticleCompositionForm::enableStructureEditing | ( | bool | b | ) |
Definition at line 67 of file ParticleCompositionForm.cpp.
References m_removeAction, and m_structureEditingWidgets.
void ParticleCompositionForm::onAboutToRemoveParticle | ( | ItemWithParticles * | item | ) |
Definition at line 90 of file ParticleCompositionForm.cpp.
References m_compositionItem, m_layout, and ParticleCompositionItem::particles().
void ParticleCompositionForm::onParticleAdded | ( | ItemWithParticles * | item | ) |
Definition at line 80 of file ParticleCompositionForm.cpp.
References LayerEditorUtils::createWidgetForItemWithParticles(), m_compositionItem, m_ec, m_layout, and ParticleCompositionItem::particles().
|
private |
Definition at line 41 of file ParticleCompositionForm.h.
Referenced by compositionItem(), onAboutToRemoveParticle(), and onParticleAdded().
|
private |
Definition at line 43 of file ParticleCompositionForm.h.
Referenced by onParticleAdded().
|
private |
Definition at line 40 of file ParticleCompositionForm.h.
Referenced by ParticleCompositionForm(), onAboutToRemoveParticle(), and onParticleAdded().
|
private |
Definition at line 42 of file ParticleCompositionForm.h.
Referenced by ParticleCompositionForm(), and enableStructureEditing().
|
private |
Definition at line 44 of file ParticleCompositionForm.h.
Referenced by ParticleCompositionForm(), and enableStructureEditing().