#include <SynapseParametersDialog.h>
Public Member Functions | |
| bool | loadSynapseParameters () |
| SynapseParametersDialog (QWidget *parent, DBInterface *networkDBInterface, SimulationManager *simMan) | |
| ~SynapseParametersDialog () | |
Private Slots | |
| void | applyButtonPressed () |
| void | cancelButtonPressed () |
| void | defaultsButtonPressed () |
| void | okButtonPressed () |
| void | parameterTableClicked (int row, int col, unsigned short typeID) |
| void | parameterTableValueChanged (int row, int col, unsigned short typeID) |
Private Member Functions | |
| QString | getNeuronGroupName (QString neurGrpID) |
| SynapseParametersDialog | operator= (const SynapseParametersDialog &) |
| void | storeSynapseParameters () |
| SynapseParametersDialog (const SynapseParametersDialog &) | |
Private Attributes | |
| QPushButton * | applyButton |
| map< unsigned short, map< const char *, bool, charKeyCompare > > | checkBoxMap |
| int | connGrpIDColumn |
| map< unsigned short, map< const char *, double, charKeyCompare > > | defaultValueMap |
| map< unsigned short, map< const char *, const char *, charKeyCompare > > | descParamMap |
| map< unsigned short, map< const char *, int, charKeyCompare > > | descriptionColumnMap |
| int | editColumn |
| QPixmap * | editPixmap |
| map< unsigned short, QStringList * > | fieldNamesMap |
| int | fromGrpColumn |
| DBInterface * | networkDBInterface |
| map< unsigned short, map< const char *, const char *, charKeyCompare > > | paramDescMap |
| bool | parameterValuesChanged |
| int | paramStartColumn |
| map< unsigned short, QHeader * > | paramTableHeaderMap |
| map< unsigned short, ParameterTable * > | paramTableMap |
| SimulationManager * | simulationManager |
| map< unsigned short, QLabel * > | tableLabelMap |
| int | toGrpColumn |
| map< unsigned short, QStringList * > | valueNamesMap |
Definition at line 45 of file SynapseParametersDialog.h.
|
||||||||||||||||
|
|
Destructor. Definition at line 273 of file SynapseParametersDialog.cpp. References editPixmap, fieldNamesMap, and valueNamesMap. |
|
|
Declare copy constructor private so it cannot be used inadvertently. |
|
|
Stores the parameters without closing the dialog. Definition at line 421 of file SynapseParametersDialog.cpp. References applyButton, parameterValuesChanged, SimulationManager::setSynapseParameters(), simulationManager, and storeSynapseParameters(). Referenced by SynapseParametersDialog(). |
|
|
Hides the dialog when the cancel button is pressed. Definition at line 435 of file SynapseParametersDialog.cpp. Referenced by SynapseParametersDialog(). |
|
|
Loads the default parameters into the table. Definition at line 442 of file SynapseParametersDialog.cpp. Referenced by SynapseParametersDialog(). |
|
|
Gets the name of the neuron group given the neuron group id. Definition at line 533 of file SynapseParametersDialog.cpp. References networkDBInterface. Referenced by loadSynapseParameters(). |
|
|
Loads up the synapse parameters into the table. Definition at line 295 of file SynapseParametersDialog.cpp. References applyButton, checkBoxMap, connGrpIDColumn, editColumn, editPixmap, fieldNamesMap, fromGrpColumn, getNeuronGroupName(), networkDBInterface, parameterValuesChanged, paramStartColumn, paramTableMap, tableLabelMap, and toGrpColumn. Referenced by SimulationWidget::reloadConnectionGroups(), and SimulationWidget::synapseParamButtonPressed(). |
|
|
Stores the parameters and closes the dialog. Definition at line 447 of file SynapseParametersDialog.cpp. References parameterValuesChanged, SimulationManager::setSynapseParameters(), simulationManager, and storeSynapseParameters(). Referenced by SynapseParametersDialog(). |
|
|
Declare assignment private so it cannot be used inadvertently. |
|
||||||||||||||||
|
Launches a dialog to edit the parameters. This changes the values in the table, but they are not updated in the database until ok or apply is clicked. Definition at line 462 of file SynapseParametersDialog.cpp. References applyButton, checkBoxMap, connGrpIDColumn, defaultValueMap, descParamMap, descriptionColumnMap, editColumn, EditSynapseParametersDialog::getDescriptionLineEditMap(), parameterValuesChanged, paramStartColumn, paramTableHeaderMap, and paramTableMap. Referenced by SynapseParametersDialog(). |
|
||||||||||||||||
|
Tracks whether a check box has been checked or cleared in the table. Definition at line 521 of file SynapseParametersDialog.cpp. References applyButton, and parameterValuesChanged. Referenced by SynapseParametersDialog(). |
|
|
Stores the synapse parameters in the database. Definition at line 573 of file SynapseParametersDialog.cpp. References checkBoxMap, connGrpIDColumn, fieldNamesMap, networkDBInterface, paramStartColumn, paramTableMap, and valueNamesMap. Referenced by applyButtonPressed(), and okButtonPressed(). |
|
|
Applies the parameters without closing the dialog. Definition at line 77 of file SynapseParametersDialog.h. Referenced by applyButtonPressed(), loadSynapseParameters(), parameterTableClicked(), parameterTableValueChanged(), and SynapseParametersDialog(). |
|
|
Records whether a value is a check box type. Only check box values are included in this map. Definition at line 104 of file SynapseParametersDialog.h. Referenced by loadSynapseParameters(), parameterTableClicked(), storeSynapseParameters(), and SynapseParametersDialog(). |
|
|
Definition at line 81 of file SynapseParametersDialog.h. Referenced by loadSynapseParameters(), parameterTableClicked(), storeSynapseParameters(), and SynapseParametersDialog(). |
|
|
Links descriptions of the parameter with the default value. Definition at line 97 of file SynapseParametersDialog.h. Referenced by parameterTableClicked(), and SynapseParametersDialog(). |
|
|
Stores the link between a description and a parameter name. Definition at line 107 of file SynapseParametersDialog.h. Referenced by parameterTableClicked(), and SynapseParametersDialog(). |
|
|
Links descriptions of the parameter with a column for loading up parameters. Definition at line 100 of file SynapseParametersDialog.h. Referenced by parameterTableClicked(), and SynapseParametersDialog(). |
|
|
Definition at line 80 of file SynapseParametersDialog.h. Referenced by loadSynapseParameters(), parameterTableClicked(), and SynapseParametersDialog(). |
|
|
Image displayed in the edit column. Definition at line 87 of file SynapseParametersDialog.h. Referenced by loadSynapseParameters(), SynapseParametersDialog(), and ~SynapseParametersDialog(). |
|
|
List of all the field names of the parameters, used for loading them from the database. Definition at line 91 of file SynapseParametersDialog.h. Referenced by loadSynapseParameters(), storeSynapseParameters(), SynapseParametersDialog(), and ~SynapseParametersDialog(). |
|
|
Definition at line 82 of file SynapseParametersDialog.h. Referenced by loadSynapseParameters(), and SynapseParametersDialog(). |
|
|
Store reference to database interfaces. Definition at line 66 of file SynapseParametersDialog.h. Referenced by getNeuronGroupName(), loadSynapseParameters(), storeSynapseParameters(), and SynapseParametersDialog(). |
|
|
Stores the link between a parameter name and a description. Definition at line 110 of file SynapseParametersDialog.h. Referenced by SynapseParametersDialog(). |
|
|
Variable recording whether the parameter table has been changed Used to enable or disable the apply button and prevent updating parameters unnecessarily. Definition at line 115 of file SynapseParametersDialog.h. Referenced by applyButtonPressed(), loadSynapseParameters(), okButtonPressed(), parameterTableClicked(), and parameterTableValueChanged(). |
|
|
Definition at line 84 of file SynapseParametersDialog.h. Referenced by loadSynapseParameters(), parameterTableClicked(), storeSynapseParameters(), and SynapseParametersDialog(). |
|
|
Definition at line 73 of file SynapseParametersDialog.h. Referenced by parameterTableClicked(), and SynapseParametersDialog(). |
|
|
Definition at line 72 of file SynapseParametersDialog.h. Referenced by loadSynapseParameters(), parameterTableClicked(), storeSynapseParameters(), and SynapseParametersDialog(). |
|
|
Store reference to simulation manager to inform it about changes. Definition at line 69 of file SynapseParametersDialog.h. Referenced by applyButtonPressed(), okButtonPressed(), and SynapseParametersDialog(). |
|
|
Definition at line 74 of file SynapseParametersDialog.h. Referenced by loadSynapseParameters(), and SynapseParametersDialog(). |
|
|
Definition at line 83 of file SynapseParametersDialog.h. Referenced by loadSynapseParameters(), and SynapseParametersDialog(). |
|
|
List of all the value names. Definition at line 94 of file SynapseParametersDialog.h. Referenced by storeSynapseParameters(), SynapseParametersDialog(), and ~SynapseParametersDialog(). |
1.4.4