BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Custom editor factory for LayerTreeView. More...
Public Member Functions | |
CustomLayerTreeEditorFactory (ApplicationModels *models) | |
~CustomLayerTreeEditorFactory () | |
std::unique_ptr< ModelView::CustomEditor > | createEditor (const QModelIndex &index) const |
Private Attributes | |
ApplicationModels * | m_models |
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 customlayertreeeditorfactory.h.
gui2::CustomLayerTreeEditorFactory::CustomLayerTreeEditorFactory | ( | ApplicationModels * | models | ) |
Definition at line 41 of file customlayertreeeditorfactory.cpp.
|
default |
|
virtual |
Implements ModelView::EditorFactoryInterface.
Definition at line 47 of file customlayertreeeditorfactory.cpp.
References ModelView::DefaultEditorFactory::createEditor(), ModelView::Utils::IsExtPropertyVariant(), m_models, and gui2::ApplicationModels::materialModel().
|
private |
Definition at line 36 of file customlayertreeeditorfactory.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().