36 #ifndef BIDSVIEWMODEL_H
37 #define BIDSVIEWMODEL_H
44 #define BIDS_ITEM_TYPE Qt::UserRole+2
45 #define BIDS_ITEM_SUBJECT Qt::UserRole+3
46 #define BIDS_ITEM_SESSION Qt::UserRole+4
51 #define BIDS_SUBJECT 01
52 #define BIDS_SESSION 02
53 #define BIDS_FOLDER 03
56 #define BIDS_FUNCTIONALDATA 10
57 #define BIDS_ANATOMICALDATA 11
58 #define BIDS_BEHAVIORALDATA 12
61 #define BIDS_AVERAGE 20
63 #define BIDS_DIPOLE 22
65 #define BIDS_UNKNOWN 99
71 #include "../../disp_global.h"
77 #include <QStandardItemModel>
109 typedef QSharedPointer<BidsViewModel>
SPtr;
132 void addData(QModelIndex selectedItem,
133 QStandardItem *pNewItem,
143 void addToData(QStandardItem *pNewItem,
144 const QModelIndex &parentIndex,
155 QModelIndex addSubject(
const QString &sSubjectName);
166 QModelIndex addSessionToSubject(
const QString &sSubjectName,
167 const QString &sSessionName);
178 QModelIndex addSessionToSubject(QModelIndex subjectIndex,
179 const QString &sSessionName);
190 QModelIndex addDataToSession(QModelIndex sessionIndex,
191 QStandardItem* pNewItem,
202 QModelIndex moveSessionToSubject(QModelIndex subjectIndex,
203 QModelIndex sessionIndex);
214 QModelIndex moveDataToSession(QModelIndex sessionIndex,
215 QModelIndex dataIndex);
225 bool removeItem(QModelIndex itemIndex);
235 void newItemIndex(QModelIndex itemIndex);
241 #endif //BIDSVIEWMODEL_H