15 #ifndef BORNAGAIN_GUI_COREGUI_MODELS_INSTRUMENTMODEL_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_INSTRUMENTMODEL_H
Defines class SessionModel.
InstrumentModel * createCopy(SessionItem *parent=nullptr) override
void instrumentNameChanged(const InstrumentItem *instrument)
bool instrumentExists(const QString &instrumentId) const
InstrumentItem * findInstrumentById(const QString &instrumentId) const
QVector< SessionItem * > nonXMLItems() const override
InstrumentModel(QObject *parent=nullptr)
void onRowsChange(const QModelIndex &parent, int, int)
virtual void readFrom(QXmlStreamReader *reader, MessageService *messageService=0) override
void onInstrumentPropertyChange(const InstrumentItem *instrument, const QString &propertyName)
~InstrumentModel() override
QVector< InstrumentItem * > instrumentItems() const
void instrumentAddedOrRemoved()
The service to collect messages from different senders.
virtual QModelIndex parent(const QModelIndex &child) const