MNE-CPP  beta 1.0
Signals | Public Member Functions | Public Attributes | List of all members
MNEBrowseRawQt::EventModel Class Reference

#include <eventmodel.h>

Inheritance diagram for MNEBrowseRawQt::EventModel:

Signals

void updateEventTypes (const QString &currentFilterType)
 

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
 

Detailed Description

DECLARE CLASS EventModel

Definition at line 98 of file eventmodel.h.

Member Function Documentation

void EventModel::addNewEventType ( const QString &  eventType,
const QColor &  typeColor 
)

adds a new event type

Parameters
[in]eventTypethe type to be added
[in]typeColorthe 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

Parameters
p_IODevicefiff data event file to read from

Definition at line 352 of file eventmodel.cpp.

int EventModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
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

Parameters
p_IODevicefiff 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

Parameters
markerPosmarker position in samples

Definition at line 432 of file eventmodel.cpp.

void EventModel::setEventFilterType ( const QString  eventType)

setEventFilterType sets the event filter type

Parameters
eventTypethe 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

Parameters
fiffInfofiff 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

Parameters
firstSamplefirst sample value
lastSamplelast sample value

Definition at line 423 of file eventmodel.cpp.

void MNEBrowseRawQt::EventModel::updateEventTypes ( const QString &  currentFilterType)
signal

updateEventTypes is emmited whenever the list of stored event type chnges

Parameters
currentFilterTypethe current set filter event type

Member Data Documentation

bool MNEBrowseRawQt::EventModel::m_bFileloaded

True when a Fiff event file is loaded.

Definition at line 213 of file eventmodel.h.


The documentation for this class was generated from the following files: