SpikeStream Application Library
0.2
|
#include <NeuronGroupSelectionModel.h>
Public Member Functions | |
NeuronGroupSelectionModel (QList< NeuronGroup * > neuronGroupList) | |
~NeuronGroupSelectionModel () | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
QList< NeuronGroup * > | getSelectedNeuronGroups () |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
void | selectAllOrNone () |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
Friends | |
class | NeuronGroupSelectionView |
Used for the display of selectable list of neuron groups.
Definition at line 15 of file NeuronGroupSelectionModel.h.
NeuronGroupSelectionModel::NeuronGroupSelectionModel | ( | QList< NeuronGroup * > | neuronGroupList | ) |
Constructor
Definition at line 8 of file NeuronGroupSelectionModel.cpp.
Destructor
Definition at line 18 of file NeuronGroupSelectionModel.cpp.
int NeuronGroupSelectionModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Inherited from QAbstractTableModel. Returns the number of columns in the model
Definition at line 27 of file NeuronGroupSelectionModel.cpp.
QVariant NeuronGroupSelectionModel::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 34 of file NeuronGroupSelectionModel.cpp.
QList< NeuronGroup * > NeuronGroupSelectionModel::getSelectedNeuronGroups | ( | ) |
Returns the selected neuron groups
Definition at line 69 of file NeuronGroupSelectionModel.cpp.
QVariant NeuronGroupSelectionModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Inherited from QAbstractTableModel. Returns the header data
Definition at line 124 of file NeuronGroupSelectionModel.cpp.
int NeuronGroupSelectionModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Inherited from QAbstractTableModel. Returns the number of rows in the model.
Definition at line 140 of file NeuronGroupSelectionModel.cpp.
Selects all or none of the connection groups
Definition at line 85 of file NeuronGroupSelectionModel.cpp.
bool NeuronGroupSelectionModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
Inherited from QAbstractTableModel.
Definition at line 102 of file NeuronGroupSelectionModel.cpp.
friend class NeuronGroupSelectionView [friend] |
Definition at line 29 of file NeuronGroupSelectionModel.h.