| BornAgain
    1.19.79
    Simulate and fit neutron and x-ray scattering at grazing incidence | 
Form for editing a mesocrystal.
Definition at line 28 of file MesoCrystalForm.h.
| Public Member Functions | |
| MesoCrystalForm (QWidget *parent, MesoCrystalItem *item, SampleEditorController *ec, bool allowRemove=true) | |
| void | createBasisWidgets () | 
| void | enableStructureEditing (bool b) | 
| MesoCrystalItem * | mesoCrystalItem () const | 
| Private Member Functions | |
| QComboBox * | createBasisCombo (QWidget *parent, ItemWithParticles *current) | 
| void | onBasisComboChanged () | 
| Private Attributes | |
| QComboBox * | m_basisCombo | 
| SampleEditorController * | m_ec | 
| MesoCrystalItem * | m_item | 
| QFormLayout * | m_layout | 
| QAction * | m_removeAction = nullptr | 
| int | m_rowOfBasisTypeCombo | 
| MesoCrystalForm::MesoCrystalForm | ( | QWidget * | parent, | 
| MesoCrystalItem * | item, | ||
| SampleEditorController * | ec, | ||
| bool | allowRemove = true | ||
| ) | 
Definition at line 26 of file MesoCrystalForm.cpp.
References ItemWithParticles::abundance(), FormLayouter::addRow(), FormLayouter::addSelection(), FormLayouter::addValue(), FormLayouter::addVector(), MesoCrystalItem::basisParticle(), createBasisCombo(), createBasisWidgets(), ActionFactory::createRemoveAction(), ActionFactory::createShowInRealSpaceAction(), GroupBoxCollapser::installIntoGroupBox(), FormLayouter::layout(), m_basisCombo, m_layout, m_removeAction, m_rowOfBasisTypeCombo, onBasisComboChanged(), MesoCrystalItem::outerShape(), ItemWithParticles::positionVector(), SampleEditorController::removeParticle(), SampleEditorController::requestViewInRealSpace(), ItemWithParticles::rotation(), FormLayouter::setContentsMargins(), MesoCrystalItem::vectorA(), MesoCrystalItem::vectorB(), and MesoCrystalItem::vectorC().
| 
 | private | 
Definition at line 65 of file MesoCrystalForm.cpp.
References ItemWithParticlesCatalog::assemblyTypes(), WheelEventEater::install(), FormFactorItemCatalog::type(), ItemWithParticlesCatalog::type(), FormFactorItemCatalog::types(), FormFactorItemCatalog::uiInfo(), and ItemWithParticlesCatalog::uiInfo().
Referenced by MesoCrystalForm().
| void MesoCrystalForm::createBasisWidgets | ( | ) | 
Definition at line 108 of file MesoCrystalForm.cpp.
References MesoCrystalItem::basisParticle(), LayerEditorUtils::createWidgetForItemWithParticles(), m_ec, m_item, and m_layout.
Referenced by MesoCrystalForm(), and SampleEditorController::setMesoCrystalBasis().
| void MesoCrystalForm::enableStructureEditing | ( | bool | b | ) | 
Definition at line 117 of file MesoCrystalForm.cpp.
References m_removeAction.
| MesoCrystalItem * MesoCrystalForm::mesoCrystalItem | ( | ) | const | 
Definition at line 123 of file MesoCrystalForm.cpp.
References m_item.
Referenced by SampleEditorController::setMesoCrystalBasis().
| 
 | private | 
Definition at line 95 of file MesoCrystalForm.cpp.
References m_basisCombo, m_ec, m_layout, m_rowOfBasisTypeCombo, and SampleEditorController::setMesoCrystalBasis().
Referenced by MesoCrystalForm().
| 
 | private | 
Definition at line 46 of file MesoCrystalForm.h.
Referenced by MesoCrystalForm(), and onBasisComboChanged().
| 
 | private | 
Definition at line 45 of file MesoCrystalForm.h.
Referenced by createBasisWidgets(), and onBasisComboChanged().
| 
 | private | 
Definition at line 43 of file MesoCrystalForm.h.
Referenced by createBasisWidgets(), and mesoCrystalItem().
| 
 | private | 
Definition at line 42 of file MesoCrystalForm.h.
Referenced by MesoCrystalForm(), createBasisWidgets(), and onBasisComboChanged().
| 
 | private | 
Definition at line 44 of file MesoCrystalForm.h.
Referenced by MesoCrystalForm(), and enableStructureEditing().
| 
 | private | 
Definition at line 47 of file MesoCrystalForm.h.
Referenced by MesoCrystalForm(), and onBasisComboChanged().