BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ModelView::EditorBuilders Namespace Reference

Collection of methods to build custom editors for trees/tables cells. More...

Typedefs

using builder_t = std::function< editor_t(const SessionItem *)>
 
using editor_t = std::unique_ptr< CustomEditor >
 

Functions

MVVM_VIEWMODEL_EXPORT builder_t BoolEditorBuilder ()
 Builder for boolean property editor. More...
 
MVVM_VIEWMODEL_EXPORT builder_t ColorEditorBuilder ()
 Builder for color property editor. More...
 
MVVM_VIEWMODEL_EXPORT builder_t ComboPropertyEditorBuilder ()
 Builder for ComboProperty editor. More...
 
MVVM_VIEWMODEL_EXPORT builder_t DoubleEditorBuilder ()
 Builder for double editor with limits support. More...
 
MVVM_VIEWMODEL_EXPORT builder_t ExternalPropertyEditorBuilder ()
 Builder for external property editor. More...
 
MVVM_VIEWMODEL_EXPORT builder_t IntegerEditorBuilder ()
 Builder for integer property editor. More...
 
MVVM_VIEWMODEL_EXPORT builder_t ScientificDoubleEditorBuilder ()
 Builder for double editor with scientific notation based on simple text field. More...
 
MVVM_VIEWMODEL_EXPORT builder_t ScientificSpinBoxEditorBuilder ()
 Builder for double editor with scientific notation and spinbox functionality. More...
 
MVVM_VIEWMODEL_EXPORT builder_t SelectableComboPropertyEditorBuilder ()
 Builder for ComboProperty editor with multi-selection functionality. More...
 

Detailed Description

Collection of methods to build custom editors for trees/tables cells.

Used to edit SessionItem data in the context of DefaultEditorFactory.

Typedef Documentation

◆ builder_t

using ModelView::EditorBuilders::builder_t = typedef std::function<editor_t(const SessionItem*)>

Definition at line 33 of file editorbuilders.h.

◆ editor_t

using ModelView::EditorBuilders::editor_t = typedef std::unique_ptr<CustomEditor>

Definition at line 32 of file editorbuilders.h.

Function Documentation

◆ BoolEditorBuilder()

MVVM_VIEWMODEL_EXPORT builder_t ModelView::EditorBuilders::BoolEditorBuilder ( )

◆ ColorEditorBuilder()

MVVM_VIEWMODEL_EXPORT builder_t ModelView::EditorBuilders::ColorEditorBuilder ( )

◆ ComboPropertyEditorBuilder()

MVVM_VIEWMODEL_EXPORT builder_t ModelView::EditorBuilders::ComboPropertyEditorBuilder ( )

◆ DoubleEditorBuilder()

MVVM_VIEWMODEL_EXPORT builder_t ModelView::EditorBuilders::DoubleEditorBuilder ( )

Builder for double editor with limits support.

Referenced by ModelView::RoleDependentEditorFactory::RoleDependentEditorFactory().

◆ ExternalPropertyEditorBuilder()

MVVM_VIEWMODEL_EXPORT builder_t ModelView::EditorBuilders::ExternalPropertyEditorBuilder ( )

◆ IntegerEditorBuilder()

MVVM_VIEWMODEL_EXPORT builder_t ModelView::EditorBuilders::IntegerEditorBuilder ( )

◆ ScientificDoubleEditorBuilder()

MVVM_VIEWMODEL_EXPORT builder_t ModelView::EditorBuilders::ScientificDoubleEditorBuilder ( )

Builder for double editor with scientific notation based on simple text field.

Referenced by ModelView::RoleDependentEditorFactory::RoleDependentEditorFactory().

◆ ScientificSpinBoxEditorBuilder()

MVVM_VIEWMODEL_EXPORT builder_t ModelView::EditorBuilders::ScientificSpinBoxEditorBuilder ( )

Builder for double editor with scientific notation and spinbox functionality.

Referenced by ModelView::RoleDependentEditorFactory::RoleDependentEditorFactory(), and ModelView::VariantDependentEditorFactory::VariantDependentEditorFactory().

◆ SelectableComboPropertyEditorBuilder()

MVVM_VIEWMODEL_EXPORT builder_t ModelView::EditorBuilders::SelectableComboPropertyEditorBuilder ( )

Builder for ComboProperty editor with multi-selection functionality.

Referenced by ModelView::RoleDependentEditorFactory::RoleDependentEditorFactory().