52 #include <QAbstractTableModel>
77 using namespace Eigen;
90 namespace ChInfoModelRoles
92 enum ItemRole{GetOrigChName = Qt::UserRole + 1009,
93 GetMappedLayoutChName = Qt::UserRole + 1010,
94 GetChNumber = Qt::UserRole + 1011,
95 GetChKind = Qt::UserRole + 1012,
96 GetMEGType = Qt::UserRole + 1013,
97 GetChUnit = Qt::UserRole + 1014,
98 GetChAlias = Qt::UserRole + 1015,
99 GetChPosition = Qt::UserRole + 1016,
100 GetChDigitizer = Qt::UserRole + 1017,
101 GetChActiveFilter = Qt::UserRole + 1018,
102 GetChCoilType = Qt::UserRole + 1019};
120 virtual int rowCount(
const QModelIndex & parent = QModelIndex())
const;
121 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
122 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
123 virtual QVariant data(
const QModelIndex & index,
int role = Qt::DisplayRole)
const;
124 virtual bool setData(
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole);
125 virtual Qt::ItemFlags flags(
const QModelIndex & index)
const;
126 virtual bool insertRows(
int position,
int span,
const QModelIndex & parent = QModelIndex());
127 virtual bool removeRows(
int position,
int span,
const QModelIndex & parent = QModelIndex());
135 void fiffInfoChanged(
const FiffInfo &fiffInfo);
151 void layoutChanged(
const QMap<QString,QPointF> &layoutMap);
159 const QStringList & getMappedChannelsList();
168 int getIndexFromOrigChName(QString chName);
177 int getIndexFromMappedChName(QString chName);
185 void channelsMappedToLayout(
const QStringList &mappedLayoutChNames);
200 void mapLayoutToChannels();
212 #endif // CHINFOCLASS_H
FIFF measurement file information.
QMap< QString, QPointF > m_layoutMap
QStringList m_mappedLayoutChNames
FIFF class declaration, which provides static wrapper functions to stay consistent with mne matlab to...