36 Serialize::rwCatalogized<InstrumentItemCatalog>(s,
"InstrumentCollection",
m_instruments);
54 QStringList existingNames;
56 existingNames << item->instrumentName();
68 QVector<InstrumentItem*> result;
78 QVector<Instrument2DItem*> result;
89 if (instrument->id() == instrumentId)
Defines class InstrumentCollection.
Defines class InstrumentItemCatalog.
Defines class InstrumentItem and all its children.
Defines class RealDataItem.
Defines functions from namespace GUI::Util::String.
InstrumentItem * findInstrumentById(const QString &instrumentId) const
void serialize(Streamer &s)
QVector< InstrumentItem * > instrumentItems(const std::function< bool(const InstrumentItem *)> &accept) const
QVector< InstrumentItem * > m_instruments
void removeInstrument(InstrumentItem *instrument)
QVector< Instrument2DItem * > instrument2DItems() const
QVector< InstrumentItem * > collectedItems() const
QString suggestInstrumentName(const QString &baseName) const
InstrumentItem * insertCopy(const InstrumentItem &source)
Inserts a deep copy (also of any non xml data in a pointwise axis) The id will not be copied,...
bool instrumentExists(const QString &instrumentId) const
QStringList instrumentNames() const
Abstract base class for instrument-specific item classes.
InstrumentItem * createCopy() const
Creates an exact copy; also ID is the same!
void setId(const QString &id)
Supports serialization to or deserialization from QXmlStream.
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...
QString baseName(const QString &fileName)
Returns base name of file.
QString suggestName(const QStringList &existingNames, const QString &name)
Returns a name suggestion based on the given name.
QString toString(const QModelIndex &index)
Provides string representation of index data.