|
SpikeStream Application Library
0.2
|
#include <AbstractConnectionWidget.h>
Public Member Functions | |
| AbstractConnectionWidget (QWidget *parent=0) | |
| virtual | ~AbstractConnectionWidget () |
Protected Member Functions | |
| void | addNeuronGroups (QComboBox *combo) |
| void | addSynapseTypes (QComboBox *combo) |
| virtual bool | checkInputs ()=0 |
| void | checkInput (QComboBox *combo, const QString &errorMessage) |
| void | checkInput (QLineEdit *inputEdit, const QString &errorMessage) |
| virtual ConnectionGroupInfo | getConnectionGroupInfo ()=0 |
| unsigned int | getNeuronGroupID (const QString &comboText) |
| unsigned int | getSynapseTypeID (const QString &comboText) |
Protected Attributes | |
| AbstractConnectionBuilder * | connectionBuilder |
Abstract widget implementing functionality common to all connection widget plugins.
Definition at line 18 of file AbstractConnectionWidget.h.
| AbstractConnectionWidget::AbstractConnectionWidget | ( | QWidget * | parent = 0 | ) |
Constructor
Definition at line 14 of file AbstractConnectionWidget.cpp.
| AbstractConnectionWidget::~AbstractConnectionWidget | ( | ) | [virtual] |
Destructor
Definition at line 20 of file AbstractConnectionWidget.cpp.
| void AbstractConnectionWidget::addNeuronGroups | ( | QComboBox * | combo | ) | [protected] |
Adds the neuron groups from the current network to the combo box
Definition at line 30 of file AbstractConnectionWidget.cpp.
| void AbstractConnectionWidget::addSynapseTypes | ( | QComboBox * | combo | ) | [protected] |
Adds synapse types to the specified combo
Definition at line 39 of file AbstractConnectionWidget.cpp.
| void AbstractConnectionWidget::checkInput | ( | QComboBox * | combo, |
| const QString & | errorMessage | ||
| ) | [protected] |
Checks that a combo box has at least one entry
Definition at line 48 of file AbstractConnectionWidget.cpp.
| void AbstractConnectionWidget::checkInput | ( | QLineEdit * | inputEdit, |
| const QString & | errMsg | ||
| ) | [protected] |
Checks that a line edit has a valid input
Definition at line 56 of file AbstractConnectionWidget.cpp.
| virtual bool spikestream::AbstractConnectionWidget::checkInputs | ( | ) | [protected, pure virtual] |
Checks that the inputs to the plugin have sensible values.
| virtual ConnectionGroupInfo spikestream::AbstractConnectionWidget::getConnectionGroupInfo | ( | ) | [protected, pure virtual] |
Returns a connection group info specifying the network to be created.
| unsigned int AbstractConnectionWidget::getNeuronGroupID | ( | const QString & | comboText | ) | [protected] |
Creates a new connection builder. NOTE: should only be called once.
Extracts the neuron group ID from the text of a combo box
Definition at line 64 of file AbstractConnectionWidget.cpp.
| unsigned int AbstractConnectionWidget::getSynapseTypeID | ( | const QString & | comboText | ) | [protected] |
Extracts the synapse type id from the text of a combo box
Definition at line 74 of file AbstractConnectionWidget.cpp.
Class that runs as a separate thread to create connection group
Definition at line 29 of file AbstractConnectionWidget.h.