MNE-CPP
beta 1.0
|
#include <eventmodel.h>
Signals | |
void | updateEventTypes (const QString ¤tFilterType) |
Public Member Functions | |
EventModel (QObject *parent) | |
EventModel (QFile &qFile, QObject *parent) | |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
bool | insertRows (int position, int span, const QModelIndex &parent=QModelIndex()) |
bool | removeRows (int position, int span, const QModelIndex &parent=QModelIndex()) |
Qt::ItemFlags | flags (const QModelIndex &index) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
bool | loadEventData (QFile &qFile) |
bool | saveEventData (QFile &qFile) |
void | setFiffInfo (FiffInfo &fiffInfo) |
void | setFirstLastSample (int firstSample, int lastSample) |
void | setCurrentMarkerPos (int markerPos) |
FiffInfo | getFiffInfo () const |
QPair< int, int > | getFirstLastSample () const |
void | setEventFilterType (const QString eventType) |
QStringList | getEventTypeList () const |
const QMap< int, QColor > & | getEventTypeColors () |
void | clearModel () |
void | addNewEventType (const QString &eventType, const QColor &typeColor) |
Public Attributes | |
bool | m_bFileloaded |
DECLARE CLASS EventModel
Definition at line 98 of file eventmodel.h.
void EventModel::addNewEventType | ( | const QString & | eventType, |
const QColor & | typeColor | ||
) |
adds a new event type
[in] | eventType | the type to be added |
[in] | typeColor | the type color to be added |
Definition at line 528 of file eventmodel.cpp.
void EventModel::clearModel | ( | ) |
clearModel clears all model's members
Definition at line 506 of file eventmodel.cpp.
const QMap< int, QColor > & EventModel::getEventTypeColors | ( | ) |
getEventTypeColors returns the event type colors
Definition at line 498 of file eventmodel.cpp.
QStringList EventModel::getEventTypeList | ( | ) | const |
getEventTypeList returns the event type list
Definition at line 490 of file eventmodel.cpp.
FiffInfo EventModel::getFiffInfo | ( | ) | const |
getFiffInfo returns the fiffinfo
Definition at line 441 of file eventmodel.cpp.
QPair< int, int > EventModel::getFirstLastSample | ( | ) | const |
getFirstLastSample returns the first/last sample in form of a QPair
Definition at line 449 of file eventmodel.cpp.
bool EventModel::loadEventData | ( | QFile & | qFile | ) |
loadEventData loads fiff event data file
p_IODevice | fiff data event file to read from |
Definition at line 352 of file eventmodel.cpp.
|
virtual |
Reimplemented virtual functions
Definition at line 103 of file eventmodel.cpp.
bool EventModel::saveEventData | ( | QFile & | qFile | ) |
saveEventData saves events to a fiff event data file
p_IODevice | fiff data event file to save to |
Definition at line 399 of file eventmodel.cpp.
void EventModel::setCurrentMarkerPos | ( | int | markerPos | ) |
setCurrentMarkerPos sets the current marker position
markerPos | marker position in samples |
Definition at line 432 of file eventmodel.cpp.
void EventModel::setEventFilterType | ( | const QString | eventType | ) |
setEventFilterType sets the event filter type
eventType | the event type which is to be filtered |
Definition at line 458 of file eventmodel.cpp.
void EventModel::setFiffInfo | ( | FiffInfo & | fiffInfo | ) |
setFiffInfo sets the fiff info variabel
fiffInfo | fiff info variabel |
Definition at line 415 of file eventmodel.cpp.
void EventModel::setFirstLastSample | ( | int | firstSample, |
int | lastSample | ||
) |
setFirstLastSample sets the first/last sample of the loaded fiff data file
firstSample | first sample value |
lastSample | last sample value |
Definition at line 423 of file eventmodel.cpp.
|
signal |
updateEventTypes is emmited whenever the list of stored event type chnges
currentFilterType | the current set filter event type |
bool MNEBrowseRawQt::EventModel::m_bFileloaded |
True when a Fiff event file is loaded.
Definition at line 213 of file eventmodel.h.