BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Abstract editor factory for ViewModelDelegate. More...
Public Member Functions | |
virtual std::unique_ptr< CustomEditor > | createEditor (const QModelIndex &index) const =0 |
Protected Member Functions | |
EditorBuilders::builder_t | findBuilder (const std::string &name) const |
void | registerBuilder (const std::string &name, EditorBuilders::builder_t builder) |
Protected Attributes | |
std::map< std::string, EditorBuilders::builder_t > | m_nameToBuilderMap |
Abstract editor factory for ViewModelDelegate.
Creates cell editors for Qt trees and tables from model index. Cell editor is Qt widget intended for editing DATA role of some SessionItem.
Definition at line 32 of file defaulteditorfactory.h.
|
pure virtualinherited |
|
protected |
Definition at line 43 of file defaulteditorfactory.cpp.
References m_nameToBuilderMap, and RealSpace::Particles::name().
Referenced by ModelView::VariantDependentEditorFactory::createEditor(), and ModelView::RoleDependentEditorFactory::createItemEditor().
|
protected |
Definition at line 37 of file defaulteditorfactory.cpp.
References m_nameToBuilderMap, and RealSpace::Particles::name().
Referenced by ModelView::RoleDependentEditorFactory::RoleDependentEditorFactory(), and ModelView::VariantDependentEditorFactory::VariantDependentEditorFactory().
|
protected |
Definition at line 37 of file defaulteditorfactory.h.
Referenced by findBuilder(), and registerBuilder().