#include <GlobalParametersDialog.h>
Public Member Functions | |
| GlobalParametersDialog (QWidget *parent, DBInterface *netDBInterface, SimulationManager *) | |
| bool | loadParameters () |
| ~GlobalParametersDialog () | |
Private Slots | |
| void | applyButtonPressed () |
| void | cancelButtonPressed () |
| void | loadDefaultsButtonPressed () |
| void | makeDefaultsButtonPressed () |
| void | okButtonPressed () |
Private Member Functions | |
| void | addParameter (QString *labelText, QLineEdit *lineEdit, QVBoxLayout *vBox) |
| GlobalParametersDialog (const GlobalParametersDialog &) | |
| GlobalParametersDialog | operator= (const GlobalParametersDialog &) |
| void | storeParameters () |
Private Attributes | |
| map< const char *, bool, charKeyCompare > | boolParameterMap |
| map< const char *, QCheckBox *, charKeyCompare > | checkBoxMap |
| map< const char *, double, charKeyCompare > | defaultValueMap |
| map< const char *, QString *, charKeyCompare > | labelMap |
| map< const char *, QLineEdit *, charKeyCompare > | lineEditMap |
| QStringList | mapKeyStrList |
| DBInterface * | networkDBInterface |
| QDoubleValidator * | paramValidator |
| SimulationManager * | simulationManager |
Definition at line 46 of file GlobalParametersDialog.h.
|
||||||||||||||||
|
Constructor. Definition at line 42 of file GlobalParametersDialog.cpp. References addParameter(), applyButtonPressed(), boolParameterMap, cancelButtonPressed(), checkBoxMap, defaultValueMap, labelMap, lineEditMap, loadDefaultsButtonPressed(), makeDefaultsButtonPressed(), mapKeyStrList, networkDBInterface, okButtonPressed(), paramValidator, and simulationManager. |
|
|
Destructor. Definition at line 182 of file GlobalParametersDialog.cpp. References labelMap. |
|
|
Declare copy constructor private so it cannot be used inadvertently. |
|
||||||||||||||||
|
Adds a parameter to the dialog. Definition at line 337 of file GlobalParametersDialog.cpp. References paramValidator. Referenced by GlobalParametersDialog(). |
|
|
Stores the global parameters when the apply button is pressed. Definition at line 292 of file GlobalParametersDialog.cpp. References SimulationManager::setGlobalParameters(), simulationManager, and storeParameters(). Referenced by GlobalParametersDialog(). |
|
|
Slot connected to cancel button that closes dialog without storing values. Definition at line 299 of file GlobalParametersDialog.cpp. Referenced by GlobalParametersDialog(). |
|
|
Loads up the default parameters. Definition at line 305 of file GlobalParametersDialog.cpp. References boolParameterMap, checkBoxMap, defaultValueMap, and lineEditMap. Referenced by GlobalParametersDialog(). |
|
|
Extract the current values of the parameters from the database NOTE This assumes that there is at least 1 parameter. Definition at line 199 of file GlobalParametersDialog.cpp. References checkBoxMap, defaultValueMap, lineEditMap, and networkDBInterface. Referenced by SimulationWidget::globalParamButtonPressed(). |
|
|
Makes the currently entered parameters the defaults. Definition at line 319 of file GlobalParametersDialog.cpp. Referenced by GlobalParametersDialog(). |
|
|
Stores the parameters and hides the dialog. Definition at line 325 of file GlobalParametersDialog.cpp. References SimulationManager::setGlobalParameters(), simulationManager, and storeParameters(). Referenced by GlobalParametersDialog(). |
|
|
Declare assignment private so it cannot be used inadvertently. |
|
|
Stores the parameters in the database. Definition at line 350 of file GlobalParametersDialog.cpp. References checkBoxMap, lineEditMap, and networkDBInterface. Referenced by applyButtonPressed(), and okButtonPressed(). |
|
|
Records whether a value is a check box type. Only check box values are included in this map. Definition at line 85 of file GlobalParametersDialog.h. Referenced by GlobalParametersDialog(), and loadDefaultsButtonPressed(). |
|
|
Holds references to all the check boxes. Definition at line 88 of file GlobalParametersDialog.h. Referenced by GlobalParametersDialog(), loadDefaultsButtonPressed(), loadParameters(), and storeParameters(). |
|
|
Map holding the default values for each of the parameters. Definition at line 81 of file GlobalParametersDialog.h. Referenced by GlobalParametersDialog(), loadDefaultsButtonPressed(), and loadParameters(). |
|
|
Map holding all the descriptions for the labels. Definition at line 78 of file GlobalParametersDialog.h. Referenced by GlobalParametersDialog(), and ~GlobalParametersDialog(). |
|
|
Map holding all the references to the line edits. Definition at line 75 of file GlobalParametersDialog.h. Referenced by GlobalParametersDialog(), loadDefaultsButtonPressed(), loadParameters(), and storeParameters(). |
|
|
Holds all the map keys so they do not vanish. Definition at line 91 of file GlobalParametersDialog.h. Referenced by GlobalParametersDialog(). |
|
|
Reference to database handling class. Definition at line 66 of file GlobalParametersDialog.h. Referenced by GlobalParametersDialog(), loadParameters(), and storeParameters(). |
|
|
Validator for line edit input. Definition at line 72 of file GlobalParametersDialog.h. Referenced by addParameter(), and GlobalParametersDialog(). |
|
|
Reference to simulation manager. Definition at line 69 of file GlobalParametersDialog.h. Referenced by applyButtonPressed(), GlobalParametersDialog(), and okButtonPressed(). |
1.4.4