SpikeStream Application Library
0.2
|
#include <ConnectionGroupModel.h>
Public Slots | |
void | showAllOrNone () |
Public Member Functions | |
ConnectionGroupModel () | |
~ConnectionGroupModel () | |
void | clearSelection () |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
ConnectionGroupInfo | getInfo (const QModelIndex &index) |
QList< unsigned int > | getSelectedConnectionGroupIDs () |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QHash< QString, double > | getParameters (int row) |
void | reload () |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
void | selectAllOrNone () |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
Friends | |
class | ConnectionGroupTableView |
Model used for the display and manipulation of connection groups. Based on the ConnectionGroup table in the SpikeStreamNetwork database.
Definition at line 16 of file ConnectionGroupModel.h.
Constructor
Definition at line 13 of file ConnectionGroupModel.cpp.
Destructor
Definition at line 20 of file ConnectionGroupModel.cpp.
void ConnectionGroupModel::clearSelection | ( | ) |
Clears the list of selected neuron groups
Definition at line 29 of file ConnectionGroupModel.cpp.
int ConnectionGroupModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Inherited from QAbstractTableModel. Returns the number of columns in the model
Definition at line 35 of file ConnectionGroupModel.cpp.
QVariant ConnectionGroupModel::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 42 of file ConnectionGroupModel.cpp.
ConnectionGroupInfo ConnectionGroupModel::getInfo | ( | const QModelIndex & | index | ) |
Returns the connection group info corresponding to a particular row or throws an exception if this cannot be found.
Definition at line 106 of file ConnectionGroupModel.cpp.
QHash< QString, double > ConnectionGroupModel::getParameters | ( | int | row | ) |
Returns the parameters associated with a connection group
Definition at line 114 of file ConnectionGroupModel.cpp.
QList< unsigned int > ConnectionGroupModel::getSelectedConnectionGroupIDs | ( | ) |
Returns the IDs of the selected neuron groups
Definition at line 122 of file ConnectionGroupModel.cpp.
QVariant ConnectionGroupModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Inherited from QAbstractTableModel. Returns the header data
Definition at line 213 of file ConnectionGroupModel.cpp.
void ConnectionGroupModel::reload | ( | ) |
Reloads the list of connection groups
Definition at line 138 of file ConnectionGroupModel.cpp.
int ConnectionGroupModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Inherited from QAbstractTableModel. Returns the number of rows in the model.
Definition at line 239 of file ConnectionGroupModel.cpp.
Selects all or none of the connection groups
Definition at line 144 of file ConnectionGroupModel.cpp.
bool ConnectionGroupModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
Inherited from QAbstractTableModel
Definition at line 178 of file ConnectionGroupModel.cpp.
void ConnectionGroupModel::showAllOrNone | ( | ) | [slot] |
Shows all or none of the connection groups
Definition at line 160 of file ConnectionGroupModel.cpp.
friend class ConnectionGroupTableView [friend] |
Definition at line 34 of file ConnectionGroupModel.h.