SpikeStream Application Library
0.2
|
#include <AnalysesModel.h>
Public Member Functions | |
AnalysesModel (unsigned int analysisType) | |
~AnalysesModel () | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
QList< AnalysisInfo > | getSelectedAnalyses () |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
void | reload () |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
Model used when loading or deleting analyses. Based on the Analyses table in the SpikeStreamAnalysis database, which is common to all analysis types.
Definition at line 17 of file AnalysesModel.h.
AnalysesModel::AnalysesModel | ( | unsigned int | analysisType | ) |
Constructor
Definition at line 14 of file AnalysesModel.cpp.
Destructor
Definition at line 21 of file AnalysesModel.cpp.
int AnalysesModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Inherited from QAbstractTableModel. Returns the number of columns in the model
Definition at line 30 of file AnalysesModel.cpp.
QVariant AnalysesModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
Inherited from QAbstractTableModel. Returns the data at the specified model index ready to be displayed in the way requested
Definition at line 37 of file AnalysesModel.cpp.
QList< AnalysisInfo > AnalysesModel::getSelectedAnalyses | ( | ) |
Returns a list of the currently selected analyses
Definition at line 82 of file AnalysesModel.cpp.
QVariant AnalysesModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Inherited from QAbstractTableModel. Returns the header data
Definition at line 116 of file AnalysesModel.cpp.
void AnalysesModel::reload | ( | ) |
Reloads information about the analyses currently in the database
Definition at line 145 of file AnalysesModel.cpp.
int AnalysesModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Inherited from QAbstractTableModel. Returns the number of rows in the model.
Definition at line 155 of file AnalysesModel.cpp.
bool AnalysesModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
Sets data in the model.
Definition at line 93 of file AnalysesModel.cpp.