25 #include <QModelIndex>
37 std::vector<ModelView::ExternalProperty> available_graph_properties(ExperimentalDataModel* model)
41 std::copy(properties.begin(), properties.end(), std::back_inserter(result));
46 CustomBeamPropertyEditorFactory::~CustomBeamPropertyEditorFactory() =
default;
53 std::unique_ptr<CustomEditor>
56 auto value = index.data(Qt::EditRole);
58 auto choice_callback = [
this]() {
61 return std::make_unique<ExternalPropertyComboEditor>(choice_callback);
std::unique_ptr< CustomEditor > createEditor(const QModelIndex &index) const override
Creates editor for given model index basing either on editorType() or specific variant name.
static ExternalProperty undefined()
Main class to holds all models of GUI session.
ExperimentalDataModel * experimentalDataModel()
ApplicationModels * m_models
std::unique_ptr< ModelView::CustomEditor > createEditor(const QModelIndex &index) const
MVVM_MODEL_EXPORT bool IsExtPropertyVariant(const Variant &variant)
Returns true in the case of ExternalProperty based variant.
materialitems.h Collection of materials to populate MaterialModel.
DAREFLCORE_EXPORT std::vector< ModelView::ExternalProperty > CreateGraphProperties(ExperimentalDataModel *model)
Returns vector of properties representing GraphItem content of the model.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.