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

ProbeDialog Class Reference

#include <ProbeDialog.h>

List of all members.

Public Member Functions

 ProbeDialog (QWidget *parent, DBInterface *netDBInter)
 ~ProbeDialog ()
 Destructor.

Private Slots

void addProbe ()
void deleteProbes ()
void probeTableHeaderClicked (int colNumber)

Private Member Functions

void fillProbeTypeCombo ()
string getDescription (unsigned int pType)
void loadProbeTable ()
ProbeDialog operator= (const ProbeDialog &)
 ProbeDialog (const ProbeDialog &)
void removeProbeFromTable (unsigned int probeID)

Private Attributes

int nameCol
QLineEdit * nameText
DBInterface * networkDBInterface
int probeIDCol
QTable * probeTable
QComboBox * probeTypeCombo
int selectionCol
int typeCol
int typeDescCol
map< int, unsigned short > typePositionMap


Detailed Description

Allows the user to select the type of probe. Support for probes is not implemented yet.

Definition at line 44 of file ProbeDialog.h.


Constructor & Destructor Documentation

ProbeDialog::ProbeDialog QWidget *  parent,
DBInterface *  netDBInter
 

Constructor

Definition at line 46 of file ProbeDialog.cpp.

References addProbe(), deleteProbes(), fillProbeTypeCombo(), loadProbeTable(), nameCol, nameText, networkDBInterface, probeIDCol, probeTable, probeTableHeaderClicked(), probeTypeCombo, selectionCol, typeCol, and typeDescCol.

ProbeDialog::~ProbeDialog  ) 
 

Destructor.

Definition at line 148 of file ProbeDialog.cpp.

ProbeDialog::ProbeDialog const ProbeDialog  )  [private]
 

Declare copy constructor private so it cannot be used inadvertently.


Member Function Documentation

void ProbeDialog::addProbe  )  [private, slot]
 

Adds a new probe to the neuron groups database and hides the dialog

Definition at line 160 of file ProbeDialog.cpp.

References loadProbeTable(), nameText, networkDBInterface, probeTypeCombo, and typePositionMap.

Referenced by ProbeDialog().

void ProbeDialog::deleteProbes  )  [private, slot]
 

Deletes the selected probes from the database

Definition at line 234 of file ProbeDialog.cpp.

References nameCol, networkDBInterface, probeIDCol, probeTable, removeProbeFromTable(), selectionCol, and typeCol.

Referenced by ProbeDialog().

void ProbeDialog::fillProbeTypeCombo  )  [private]
 

Fills the probe type combo box with a list of probe types from the ProbeTypes table in the NeuralNetwork database.

Definition at line 340 of file ProbeDialog.cpp.

References networkDBInterface, probeTypeCombo, and typePositionMap.

Referenced by ProbeDialog().

string ProbeDialog::getDescription unsigned int  pType  )  [private]
 

Gets the description corresponding to a particular probe type.

Definition at line 388 of file ProbeDialog.cpp.

References networkDBInterface.

Referenced by loadProbeTable().

void ProbeDialog::loadProbeTable  )  [private]
 

Loads a table with all the available patterns. Enables a pattern to be assigned to a suitable neuron group before the simulation starts

Definition at line 421 of file ProbeDialog.cpp.

References getDescription(), nameCol, networkDBInterface, probeIDCol, probeTable, selectionCol, typeCol, and typeDescCol.

Referenced by addProbe(), and ProbeDialog().

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

Declare assignment private so it cannot be used inadvertently.

void ProbeDialog::probeTableHeaderClicked int  colNumber  )  [private, slot]
 

Selects or deselects all of the check boxes

Definition at line 308 of file ProbeDialog.cpp.

References probeTable, and selectionCol.

Referenced by ProbeDialog().

void ProbeDialog::removeProbeFromTable unsigned int  probeID  )  [private]
 

Removes the indicated probe from the table.

Definition at line 477 of file ProbeDialog.cpp.

References probeIDCol, and probeTable.

Referenced by deleteProbes().


Member Data Documentation

int ProbeDialog::nameCol [private]
 

Definition at line 74 of file ProbeDialog.h.

Referenced by deleteProbes(), loadProbeTable(), and ProbeDialog().

QLineEdit* ProbeDialog::nameText [private]
 

Definition at line 67 of file ProbeDialog.h.

Referenced by addProbe(), and ProbeDialog().

DBInterface* ProbeDialog::networkDBInterface [private]
 

References to database interfaces.

Definition at line 61 of file ProbeDialog.h.

Referenced by addProbe(), deleteProbes(), fillProbeTypeCombo(), getDescription(), loadProbeTable(), and ProbeDialog().

int ProbeDialog::probeIDCol [private]
 

Definition at line 73 of file ProbeDialog.h.

Referenced by deleteProbes(), loadProbeTable(), ProbeDialog(), and removeProbeFromTable().

QTable* ProbeDialog::probeTable [private]
 

Definition at line 69 of file ProbeDialog.h.

Referenced by deleteProbes(), loadProbeTable(), ProbeDialog(), probeTableHeaderClicked(), and removeProbeFromTable().

QComboBox* ProbeDialog::probeTypeCombo [private]
 

Definition at line 68 of file ProbeDialog.h.

Referenced by addProbe(), fillProbeTypeCombo(), and ProbeDialog().

int ProbeDialog::selectionCol [private]
 

Definition at line 72 of file ProbeDialog.h.

Referenced by deleteProbes(), loadProbeTable(), ProbeDialog(), and probeTableHeaderClicked().

int ProbeDialog::typeCol [private]
 

Definition at line 76 of file ProbeDialog.h.

Referenced by deleteProbes(), loadProbeTable(), and ProbeDialog().

int ProbeDialog::typeDescCol [private]
 

Definition at line 75 of file ProbeDialog.h.

Referenced by loadProbeTable(), and ProbeDialog().

map<int, unsigned short> ProbeDialog::typePositionMap [private]
 

Stores link between a combo position and a neuron type id.

Definition at line 64 of file ProbeDialog.h.

Referenced by addProbe(), and fillProbeTypeCombo().


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