Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

NoiseParametersDialog Class Reference

#include <NoiseParametersDialog.h>

List of all members.

Public Member Functions

bool loadParameters ()
 NoiseParametersDialog (QWidget *parent, DBInterface *networkDBInterface, SimulationManager *simMan)
 ~NoiseParametersDialog ()

Private Slots

void applyButtonPressed ()
void cancelButtonPressed ()
void defaultsButtonPressed ()
void okButtonPressed ()
void paramValueChanged (int row, int col)

Private Member Functions

 NoiseParametersDialog (const NoiseParametersDialog &)
NoiseParametersDialog operator= (const NoiseParametersDialog &)
void storeParameters ()

Private Attributes

QPushButton * applyButton
int firingModeCol
DBInterface * networkDBInterface
int neurGrpCol
int neuronPercentCol
int noiseModeCol
QTable * paramTable
QHeader * paramTableHeader
bool paramValuesChanged
SimulationManagersimulationManager


Detailed Description

Displays all the noise parameters in a table with combo boxes and check boxes to edit them.

Definition at line 41 of file NoiseParametersDialog.h.


Constructor & Destructor Documentation

NoiseParametersDialog::NoiseParametersDialog QWidget *  parent,
DBInterface *  netDBInter,
SimulationManager simMan
 

Constructor.

Definition at line 42 of file NoiseParametersDialog.cpp.

References applyButton, applyButtonPressed(), cancelButtonPressed(), defaultsButtonPressed(), firingModeCol, networkDBInterface, neurGrpCol, neuronPercentCol, noiseModeCol, okButtonPressed(), paramTable, paramTableHeader, paramValueChanged(), and simulationManager.

NoiseParametersDialog::~NoiseParametersDialog  ) 
 

Destructor.

Definition at line 134 of file NoiseParametersDialog.cpp.

NoiseParametersDialog::NoiseParametersDialog const NoiseParametersDialog  )  [private]
 

Declare copy constructor private so it cannot be used inadvertently.


Member Function Documentation

void NoiseParametersDialog::applyButtonPressed  )  [private, slot]
 

Stores the parameters and instructs tasks to reload them without closing the dialog.

Definition at line 293 of file NoiseParametersDialog.cpp.

References applyButton, paramValuesChanged, SimulationManager::setNoiseParameters(), simulationManager, and storeParameters().

Referenced by NoiseParametersDialog().

void NoiseParametersDialog::cancelButtonPressed  )  [private, slot]
 

Hides the dialog without storing the parameters.

Definition at line 307 of file NoiseParametersDialog.cpp.

Referenced by NoiseParametersDialog().

void NoiseParametersDialog::defaultsButtonPressed  )  [private, slot]
 

Loads default noise parameters.

Definition at line 314 of file NoiseParametersDialog.cpp.

Referenced by NoiseParametersDialog().

bool NoiseParametersDialog::loadParameters  ) 
 

Loads up the noise parameters into the table.

Definition at line 146 of file NoiseParametersDialog.cpp.

References applyButton, firingModeCol, networkDBInterface, neurGrpCol, neuronPercentCol, noiseModeCol, paramTable, and paramValuesChanged.

Referenced by SimulationWidget::noiseParamButtonPressed().

void NoiseParametersDialog::okButtonPressed  )  [private, slot]
 

Stores the parameters, instructs tasks to reload them and hides the dialog.

Definition at line 319 of file NoiseParametersDialog.cpp.

References paramValuesChanged, SimulationManager::setNoiseParameters(), simulationManager, and storeParameters().

Referenced by NoiseParametersDialog().

NoiseParametersDialog NoiseParametersDialog::operator= const NoiseParametersDialog  )  [private]
 

Declare assignment private so it cannot be used inadvertently.

void NoiseParametersDialog::paramValueChanged int  row,
int  col
[private, slot]
 

Called when a check box or comobo box is altered.

Definition at line 332 of file NoiseParametersDialog.cpp.

References applyButton, and paramValuesChanged.

Referenced by NoiseParametersDialog().

void NoiseParametersDialog::storeParameters  )  [private]
 

Stores the noise parameters in the database.

Definition at line 344 of file NoiseParametersDialog.cpp.

References firingModeCol, networkDBInterface, neurGrpCol, neuronPercentCol, noiseModeCol, and paramTable.

Referenced by applyButtonPressed(), and okButtonPressed().


Member Data Documentation

QPushButton* NoiseParametersDialog::applyButton [private]
 

Applies the parameters without closing the dialog.

Definition at line 71 of file NoiseParametersDialog.h.

Referenced by applyButtonPressed(), loadParameters(), NoiseParametersDialog(), and paramValueChanged().

int NoiseParametersDialog::firingModeCol [private]
 

Definition at line 77 of file NoiseParametersDialog.h.

Referenced by loadParameters(), NoiseParametersDialog(), and storeParameters().

DBInterface* NoiseParametersDialog::networkDBInterface [private]
 

Store reference to database interfaces.

Definition at line 61 of file NoiseParametersDialog.h.

Referenced by loadParameters(), NoiseParametersDialog(), and storeParameters().

int NoiseParametersDialog::neurGrpCol [private]
 

Definition at line 74 of file NoiseParametersDialog.h.

Referenced by loadParameters(), NoiseParametersDialog(), and storeParameters().

int NoiseParametersDialog::neuronPercentCol [private]
 

Definition at line 76 of file NoiseParametersDialog.h.

Referenced by loadParameters(), NoiseParametersDialog(), and storeParameters().

int NoiseParametersDialog::noiseModeCol [private]
 

Definition at line 75 of file NoiseParametersDialog.h.

Referenced by loadParameters(), NoiseParametersDialog(), and storeParameters().

QTable* NoiseParametersDialog::paramTable [private]
 

Definition at line 67 of file NoiseParametersDialog.h.

Referenced by loadParameters(), NoiseParametersDialog(), and storeParameters().

QHeader* NoiseParametersDialog::paramTableHeader [private]
 

Definition at line 68 of file NoiseParametersDialog.h.

Referenced by NoiseParametersDialog().

bool NoiseParametersDialog::paramValuesChanged [private]
 

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 82 of file NoiseParametersDialog.h.

Referenced by applyButtonPressed(), loadParameters(), okButtonPressed(), and paramValueChanged().

SimulationManager* NoiseParametersDialog::simulationManager [private]
 

Store reference to simulation manager to inform tasks about changes.

Definition at line 64 of file NoiseParametersDialog.h.

Referenced by applyButtonPressed(), NoiseParametersDialog(), and okButtonPressed().


The documentation for this class was generated from the following files:
Generated on Mon Sep 3 22:29:05 2007 for SpikeStream Application by  doxygen 1.4.4