28 :
ModelListener(data_model), m_instrument_model(instrument_model)
42 for (
auto scan : ModelView::Utils::FindItems<ExperimentalScanItem>(
m_instrument_model)) {
47 if (property != updated)
Property to carry text, color and identifier.
void setOnItemRemoved(Callbacks::item_tagrow_t f, Callbacks::slot_t client={}) override
Sets callback to be notified on item remove.
void setOnItemInserted(Callbacks::item_tagrow_t f, Callbacks::slot_t client={}) override
Sets callback to be notified on item insert.
void setOnDataChange(Callbacks::item_int_t f, Callbacks::slot_t client={}) override
Sets callback to be notified on item's data change.
void setOnModelReset(Callbacks::model_t f, Callbacks::slot_t client={}) override
Sets the callback to be notified after model was fully reset (root item recreated).
Templated class for all objects willing to listen for changes in concrete SessionModel.
ExperimentalDataModel * model() const
void update_all()
Updates all material properties in LayerItems to get new material colors and labels.
InstrumentModel * m_instrument_model
ExperimentalDataController(ExperimentalDataModel *data_model, InstrumentModel *instrument_model)
The model to store imported reflectometry data.
static const std::string P_IMPORTED_DATA
Model to store specular instruments settings.
DAREFLCORE_EXPORT ModelView::ExternalProperty FindProperty(const std::vector< ModelView::ExternalProperty > &properties, const std::string &id)
Finds the property with the same id in given vector and returns it.
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.