BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Custom editor factory for LayerTreeView. More...
Public Member Functions | |
CustomBeamPropertyEditorFactory (ApplicationModels *models) | |
~CustomBeamPropertyEditorFactory () | |
std::unique_ptr< ModelView::CustomEditor > | createEditor (const QModelIndex &index) const |
Private Attributes | |
ApplicationModels * | m_models {nullptr} |
std::unique_ptr< RoleDependentEditorFactory > | m_roleDependentFactory |
std::unique_ptr< VariantDependentEditorFactory > | m_variantDependentFactory |
Custom editor factory for LayerTreeView.
Substitutes default ExternalProperty editor with custom one, which will offer the choice between all defined materials.
Definition at line 28 of file custombeampropertyeditorfactory.h.
gui2::CustomBeamPropertyEditorFactory::CustomBeamPropertyEditorFactory | ( | ApplicationModels * | models | ) |
Definition at line 48 of file custombeampropertyeditorfactory.cpp.
|
default |
|
virtual |
Implements ModelView::EditorFactoryInterface.
Definition at line 54 of file custombeampropertyeditorfactory.cpp.
References ModelView::DefaultEditorFactory::createEditor(), gui2::ApplicationModels::experimentalDataModel(), ModelView::Utils::IsExtPropertyVariant(), and m_models.
|
private |
Definition at line 36 of file custombeampropertyeditorfactory.h.
Referenced by createEditor().
|
privateinherited |
Definition at line 73 of file defaulteditorfactory.h.
Referenced by ModelView::DefaultEditorFactory::createEditor().
|
privateinherited |
Definition at line 74 of file defaulteditorfactory.h.
Referenced by ModelView::DefaultEditorFactory::createEditor().