1 #ifndef QCEPDATASETMODEL_H
2 #define QCEPDATASETMODEL_H
4 #include <QAbstractItemModel>
30 QModelIndex
index(
int row,
int column,
const QModelIndex &
parent = QModelIndex())
const;
32 QModelIndex
parent(
const QModelIndex &index)
const;
33 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
34 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
35 QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
36 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
38 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
43 QMimeData *
mimeData(
const QModelIndexList &indexes)
const;
45 bool insertRows(
int row,
int count,
const QModelIndex &parent);
46 bool moveRows(
const QModelIndex &sourceParent,
int sourceRow,
int count,
const QModelIndex &destinationParent,
int destinationChild);
47 bool removeRows(
int row,
int count,
const QModelIndex &parent);
73 int nRows=0, QStringList cols=QStringList());
88 void remove(
const QModelIndex &
index);
89 void remove(QString path);
105 #endif // QCEPDATASETMODEL_H
QcepDataColumnScanPtr newColumnScan(QString path, int nRows=0, QStringList cols=QStringList())
QSharedPointer< QcepDataArray > QcepDataArrayPtr
QcepDoubleImageDataPtr newImage(QString path, int width=0, int height=0)
QString groupName(QString path)
void append(const QModelIndex &index, QcepDataObjectPtr obj)
QcepDataArrayPtr array(const QModelIndex &index)
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
QVariant headerData(int section, Qt::Orientation orientation, int role) const
QSharedPointer< QcepDataColumnScan > QcepDataColumnScanPtr
QcepDataObjectPtr indexedObject(const QModelIndex &index) const
QcepDataGroupPtr group(const QModelIndex &index)
QSharedPointer< QcepDataColumn > QcepDataColumnPtr
QcepIntegratedDataPtr newIntegratedData(QString path, int sz)
void insertGroup(int atRow, QString name)
QSharedPointer< QcepIntegratedData > QcepIntegratedDataPtr
QcepDataColumnPtr column(const QModelIndex &index)
int rowCount(const QModelIndex &parent=QModelIndex()) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
QModelIndex parent(const QModelIndex &index) const
QcepDatasetModel(QcepDatasetWPtr ds)
QcepDataColumnPtr newColumn(QString path, int nRows=0)
void onDataObjectChanged()
QStringList mimeTypes() const
QcepDatasetWPtr m_Dataset
QMimeData * mimeData(const QModelIndexList &indexes) const
QcepDataArrayPtr newArray(QString path, QVector< int > dims=QVector< int >())
QcepIntegratedDataPtr integratedData(const QModelIndex &index)
QcepDoubleImageDataPtr image(const QModelIndex &index)
QString indexDescription(const QModelIndex &index) const
QString objectName(QString path)
QcepDataColumnScanPtr columnScan(const QModelIndex &index)
QcepDataGroupPtr newGroup(QString path)
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
QcepDataObjectPtr item(const QModelIndex &index)
bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
QWeakPointer< QcepDataset > QcepDatasetWPtr
bool insertRows(int row, int count, const QModelIndex &parent)
bool removeRows(int row, int count, const QModelIndex &parent)
Qt::ItemFlags flags(const QModelIndex &index) const
QSharedPointer< QcepDoubleImageData > QcepDoubleImageDataPtr