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

PatternDialog Class Reference

#include <PatternDialog.h>

List of all members.

Public Member Functions

 PatternDialog (QWidget *parent, DBInterface *pattDBInter)
 ~PatternDialog ()

Private Slots

void addPattern ()
void deletePattern ()
void tableHeaderClicked (int colNumber)

Private Member Functions

void loadPatternTable ()
PatternDialog operator= (const PatternDialog &)
 PatternDialog (const PatternDialog &)
void removePatternFromTable (unsigned int patternID)

Private Attributes

int descriptionCol
DBInterface * patternDBInterface
int patternIDCol
PatternManagerpatternManager
QTable * patternTable
int selectionCol


Detailed Description

Enables the user to add and delete patterns in the pattern database.

Definition at line 39 of file PatternDialog.h.


Constructor & Destructor Documentation

PatternDialog::PatternDialog QWidget *  parent,
DBInterface *  pattDBInter
 

Constructor.

Definition at line 41 of file PatternDialog.cpp.

References addPattern(), deletePattern(), descriptionCol, loadPatternTable(), patternDBInterface, patternIDCol, patternManager, patternTable, selectionCol, and tableHeaderClicked().

PatternDialog::~PatternDialog  ) 
 

Destructor.

Definition at line 128 of file PatternDialog.cpp.

References patternManager.

PatternDialog::PatternDialog const PatternDialog  )  [private]
 

Declare copy constructor private so it cannot be used inadvertently.


Member Function Documentation

void PatternDialog::addPattern  )  [private, slot]
 

Adds a pattern selected by the user using a file dialog.

Definition at line 142 of file PatternDialog.cpp.

References PatternManager::addPattern(), loadPatternTable(), patternManager, SpikeStreamMainWindow::reloadPatterns(), SpikeStreamMainWindow::spikeStrMainWin, and SpikeStreamMainWindow::workingDirectory.

Referenced by PatternDialog().

void PatternDialog::deletePattern  )  [private, slot]
 

Deletes a pattern.

Definition at line 190 of file PatternDialog.cpp.

References PatternManager::deletePattern(), descriptionCol, patternIDCol, patternManager, patternTable, SpikeStreamMainWindow::reloadPatterns(), removePatternFromTable(), selectionCol, BusyDialog::showDialog(), SpikeStreamMainWindow::spikeStreamApplication, and SpikeStreamMainWindow::spikeStrMainWin.

Referenced by PatternDialog().

void PatternDialog::loadPatternTable  )  [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 289 of file PatternDialog.cpp.

References patternDBInterface, and patternTable.

Referenced by addPattern(), and PatternDialog().

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

Declare assignment private so it cannot be used inadvertently.

void PatternDialog::removePatternFromTable unsigned int  patternID  )  [private]
 

Removes the indicated pattern from the table.

Definition at line 357 of file PatternDialog.cpp.

References patternIDCol, and patternTable.

Referenced by deletePattern().

void PatternDialog::tableHeaderClicked int  colNumber  )  [private, slot]
 

Called when the table header is clicked and selects or deselects all patterns.

Definition at line 257 of file PatternDialog.cpp.

References patternTable, and selectionCol.

Referenced by PatternDialog().


Member Data Documentation

int PatternDialog::descriptionCol [private]
 

Column containing description of pattern.

Definition at line 65 of file PatternDialog.h.

Referenced by deletePattern(), and PatternDialog().

DBInterface* PatternDialog::patternDBInterface [private]
 

Definition at line 55 of file PatternDialog.h.

Referenced by loadPatternTable(), and PatternDialog().

int PatternDialog::patternIDCol [private]
 

Column containing the pattern ID.

Definition at line 59 of file PatternDialog.h.

Referenced by deletePattern(), PatternDialog(), and removePatternFromTable().

PatternManager* PatternDialog::patternManager [private]
 

Manager that loads and deletes patterns in the database.

Definition at line 68 of file PatternDialog.h.

Referenced by addPattern(), deletePattern(), PatternDialog(), and ~PatternDialog().

QTable* PatternDialog::patternTable [private]
 

Definition at line 56 of file PatternDialog.h.

Referenced by deletePattern(), loadPatternTable(), PatternDialog(), removePatternFromTable(), and tableHeaderClicked().

int PatternDialog::selectionCol [private]
 

Column containing the check boxes for selecting patterns.

Definition at line 62 of file PatternDialog.h.

Referenced by deletePattern(), PatternDialog(), and tableHeaderClicked().


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