17 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_IMPORTDATAWIDGETS_LINKINSTRUMENTMANAGER_H
18 #define BORNAGAIN_GUI_COREGUI_VIEWS_IMPORTDATAWIDGETS_LINKINSTRUMENTMANAGER_H
22 #include <QStringList>
The LinkInstrumentManager class provides communication between InstrumentModel and RealDataModel.
void onInstrumentAddedOrRemoved()
Updates map of instruments on insert/remove InstrumentItem event.
bool canLinkDataToInstrument(const RealDataItem *realDataItem, const QString &identifier, bool quiet=false)
quiet defines whether a "not possible" message box is shown if link is not possible.
LinkInstrumentManager(QObject *parent=nullptr)
QList< RealDataItem * > linkedRealDataItems(InstrumentItem *instrumentItem)
Returns list of RealDataItem's linked to given instrument.
void setModels(InstrumentModel *instrumentModel, RealDataModel *realDataModel)
Sets models and builds initial links.
void onInstrumentChildChange(InstrumentItem *instrument, SessionItem *child)
Perform actions on instrument children change.
void updateInstrumentSubscriptions()
Set up callbacks to all instrument items.
InstrumentModel * m_instrumentModel
RealDataModel * m_realDataModel
The RealDataItem class represents intensity data imported from file and intended for fitting.
The RealDataModel class is a model to store all imported RealDataItem's.