SpikeStream Application Library  0.2
spikestream::NeuronGroupSelectionModel Class Reference

#include <NeuronGroupSelectionModel.h>

List of all members.

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

Detailed Description

Used for the display of selectable list of neuron groups.

Definition at line 15 of file NeuronGroupSelectionModel.h.


Constructor & Destructor Documentation

NeuronGroupSelectionModel::NeuronGroupSelectionModel ( QList< NeuronGroup * >  neuronGroupList)

Constructor

Definition at line 8 of file NeuronGroupSelectionModel.cpp.


Member Function Documentation

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.

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.


Friends And Related Function Documentation

friend class NeuronGroupSelectionView [friend]

Definition at line 29 of file NeuronGroupSelectionModel.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines