#include <NeuronParametersDialog.h>
Public Member Functions | |
| bool | loadNeuronParameters () |
| NeuronParametersDialog (QWidget *parent, DBInterface *networkDBInterface, SimulationManager *simMan) | |
| ~NeuronParametersDialog () | |
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 | |
| NeuronParametersDialog (const NeuronParametersDialog &) | |
| NeuronParametersDialog | operator= (const NeuronParametersDialog &) |
| void | storeNeuronParameters () |
Private Attributes | |
| QPushButton * | applyButton |
| map< unsigned short, map< const char *, bool, charKeyCompare > > | checkBoxMap |
| 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 | nameColumn |
| DBInterface * | networkDBInterface |
| int | neurGrpIDColumn |
| 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 |
| map< unsigned short, QStringList * > | valueNamesMap |
Definition at line 47 of file NeuronParametersDialog.h.
|
||||||||||||||||
|
|
Destructor. Definition at line 264 of file NeuronParametersDialog.cpp. References editPixmap, fieldNamesMap, and valueNamesMap. |
|
|
Declare copy constructor private so it cannot be used inadvertently. |
|
|
Stores the parameters and instructs tasks to reload them without closing the dialog. Definition at line 412 of file NeuronParametersDialog.cpp. References applyButton, parameterValuesChanged, SimulationManager::setNeuronParameters(), simulationManager, and storeNeuronParameters(). Referenced by NeuronParametersDialog(). |
|
|
Hides the dialog without storing parameters. Definition at line 426 of file NeuronParametersDialog.cpp. Referenced by NeuronParametersDialog(). |
|
|
Loads up the default neuron parameters. Definition at line 433 of file NeuronParametersDialog.cpp. Referenced by NeuronParametersDialog(). |
|
|
Loads the neuron parameters into the table. Definition at line 286 of file NeuronParametersDialog.cpp. References applyButton, checkBoxMap, editColumn, editPixmap, fieldNamesMap, nameColumn, networkDBInterface, neurGrpIDColumn, parameterValuesChanged, paramStartColumn, paramTableMap, and tableLabelMap. Referenced by SimulationWidget::neuronParamButtonPressed(), and SimulationWidget::reloadNeuronGroups(). |
|
|
Stores the parameters, instructs tasks to reload parameters and hides dialog. Definition at line 439 of file NeuronParametersDialog.cpp. References parameterValuesChanged, SimulationManager::setNeuronParameters(), simulationManager, and storeNeuronParameters(). Referenced by NeuronParametersDialog(). |
|
|
Declare assignment private so it cannot be used inadvertently. |
|
||||||||||||||||
|
Called when the parameter table is clicked. Launches edit parameters dialog if it has been clicked in the edit column. Definition at line 453 of file NeuronParametersDialog.cpp. References applyButton, checkBoxMap, defaultValueMap, descParamMap, descriptionColumnMap, editColumn, EditNeuronParametersDialog::getDescriptionLineEditMap(), neurGrpIDColumn, parameterValuesChanged, paramStartColumn, paramTableHeaderMap, and paramTableMap. Referenced by NeuronParametersDialog(). |
|
||||||||||||||||
|
Called when a value has been changed in the tables. Generally called when a check box has been checked or unchecked. Records that the table state has changed. Definition at line 513 of file NeuronParametersDialog.cpp. References applyButton, and parameterValuesChanged. Referenced by NeuronParametersDialog(). |
|
|
Stores the neuron parameters in the database. Definition at line 525 of file NeuronParametersDialog.cpp. References checkBoxMap, fieldNamesMap, networkDBInterface, neurGrpIDColumn, paramStartColumn, paramTableMap, and valueNamesMap. Referenced by applyButtonPressed(), and okButtonPressed(). |
|
|
Applies the parameters without closing the dialog. Definition at line 79 of file NeuronParametersDialog.h. Referenced by applyButtonPressed(), loadNeuronParameters(), NeuronParametersDialog(), parameterTableClicked(), and parameterTableValueChanged(). |
|
|
Records whether a value is a check box type. Only check box values are included in this map. Definition at line 105 of file NeuronParametersDialog.h. Referenced by loadNeuronParameters(), NeuronParametersDialog(), parameterTableClicked(), and storeNeuronParameters(). |
|
|
Links descriptions of the parameter with the default value. Definition at line 98 of file NeuronParametersDialog.h. Referenced by NeuronParametersDialog(), and parameterTableClicked(). |
|
|
Stores the link between a description and a parameter name. Definition at line 108 of file NeuronParametersDialog.h. Referenced by NeuronParametersDialog(), and parameterTableClicked(). |
|
|
Links descriptions of the parameter with a column for loading up parameters. Definition at line 101 of file NeuronParametersDialog.h. Referenced by NeuronParametersDialog(), and parameterTableClicked(). |
|
|
Definition at line 82 of file NeuronParametersDialog.h. Referenced by loadNeuronParameters(), NeuronParametersDialog(), and parameterTableClicked(). |
|
|
Image displayed in the edit column. Definition at line 88 of file NeuronParametersDialog.h. Referenced by loadNeuronParameters(), NeuronParametersDialog(), and ~NeuronParametersDialog(). |
|
|
List of all the field names of the parameters, used for loading them from the database. Definition at line 92 of file NeuronParametersDialog.h. Referenced by loadNeuronParameters(), NeuronParametersDialog(), storeNeuronParameters(), and ~NeuronParametersDialog(). |
|
|
Definition at line 84 of file NeuronParametersDialog.h. Referenced by loadNeuronParameters(), and NeuronParametersDialog(). |
|
|
Store reference to database interfaces. Definition at line 68 of file NeuronParametersDialog.h. Referenced by loadNeuronParameters(), NeuronParametersDialog(), and storeNeuronParameters(). |
|
|
Definition at line 83 of file NeuronParametersDialog.h. Referenced by loadNeuronParameters(), NeuronParametersDialog(), parameterTableClicked(), and storeNeuronParameters(). |
|
|
Stores the link between a parameter name and a description. Definition at line 111 of file NeuronParametersDialog.h. Referenced by NeuronParametersDialog(). |
|
|
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 116 of file NeuronParametersDialog.h. Referenced by applyButtonPressed(), loadNeuronParameters(), okButtonPressed(), parameterTableClicked(), and parameterTableValueChanged(). |
|
|
Definition at line 85 of file NeuronParametersDialog.h. Referenced by loadNeuronParameters(), NeuronParametersDialog(), parameterTableClicked(), and storeNeuronParameters(). |
|
|
Definition at line 75 of file NeuronParametersDialog.h. Referenced by NeuronParametersDialog(), and parameterTableClicked(). |
|
|
Definition at line 74 of file NeuronParametersDialog.h. Referenced by loadNeuronParameters(), NeuronParametersDialog(), parameterTableClicked(), and storeNeuronParameters(). |
|
|
Store reference to simulation manager to inform tasks about changes. Definition at line 71 of file NeuronParametersDialog.h. Referenced by applyButtonPressed(), NeuronParametersDialog(), and okButtonPressed(). |
|
|
Definition at line 76 of file NeuronParametersDialog.h. Referenced by loadNeuronParameters(), and NeuronParametersDialog(). |
|
|
List of all the value names. Definition at line 95 of file NeuronParametersDialog.h. Referenced by NeuronParametersDialog(), storeNeuronParameters(), and ~NeuronParametersDialog(). |
1.4.4