15 #ifndef BORNAGAIN_GUI_VIEW_INSTRUMENT_INSTRUMENTLISTMODEL_H
16 #define BORNAGAIN_GUI_VIEW_INSTRUMENT_INSTRUMENTLISTMODEL_H
18 #include <QAbstractListModel>
34 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
36 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
51 template <
class Instrument>
Abstract base class for instrument-specific item classes.
List model for instruments.
QModelIndex addNewInstrument()
QModelIndex copyInstrument(const QModelIndex &source)
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
InstrumentListModel(QObject *parent, InstrumentsEditController *ec)
QModelIndex addNewSpecularInstrument()
int rowCount(const QModelIndex &parent=QModelIndex()) const override
InstrumentsEditController * m_ec
QModelIndex addNewOffspecInstrument()
void removeInstrument(const QModelIndex &index)
void onInstrumentNameChanged(const InstrumentItem *instrument)
QModelIndex addNewGISASInstrument()
InstrumentItem * instrumentForIndex(const QModelIndex &index) const
QModelIndex addNewDepthProbeInstrument()
Class to modify the instruments list or a single instrument and provide the necessary signaling withi...