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

HighlightDialog Class Reference

#include <HighlightDialog.h>

List of all members.

Public Member Functions

 HighlightDialog (QWidget *parent, NetworkViewer *nwViewer)
 ~HighlightDialog ()

Private Slots

void acceleratorKeyPressed (int acceleratorID)
void addHighlightButtonPressed ()
void clearButtonPressed ()
void closeButtonPressed ()
void colorButtonPressed ()

Private Member Functions

 HighlightDialog (const HighlightDialog &)
HighlightDialog operator= (const HighlightDialog &)
void showError (const QString &errMsg)

Private Attributes

QPushButton * colorButt
QPixmap * colorPixmap
QColor highlightColor
QAccel * keyboardAccelerator
NetworkViewernetworkViewer
QTextEdit * neuronIDText


Detailed Description

Controls highlights in the Network Viewer.

Definition at line 40 of file HighlightDialog.h.


Constructor & Destructor Documentation

HighlightDialog::HighlightDialog QWidget *  parent,
NetworkViewer nwViewer
 

Constructor.

Definition at line 37 of file HighlightDialog.cpp.

References acceleratorKeyPressed(), addHighlightButtonPressed(), clearButtonPressed(), closeButtonPressed(), colorButt, colorButtonPressed(), colorPixmap, highlightColor, keyboardAccelerator, networkViewer, and neuronIDText.

HighlightDialog::~HighlightDialog  ) 
 

Destructor.

Definition at line 97 of file HighlightDialog.cpp.

HighlightDialog::HighlightDialog const HighlightDialog  )  [private]
 

Declare copy constructor private so it cannot be used inadvertently.


Member Function Documentation

void HighlightDialog::acceleratorKeyPressed int  acceleratorID  )  [private, slot]
 

Handles keyboard accelerator events.

Definition at line 107 of file HighlightDialog.cpp.

References keyboardAccelerator, and neuronIDText.

Referenced by HighlightDialog().

void HighlightDialog::addHighlightButtonPressed  )  [private, slot]
 

Adds a highlight to the network viewer.

Definition at line 121 of file HighlightDialog.cpp.

References NetworkViewer::addHighlight(), RGBColor::blue, RGBColor::green, highlightColor, networkViewer, neuronIDText, RGBColor::red, NetworkViewer::refresh(), and showError().

Referenced by HighlightDialog().

void HighlightDialog::clearButtonPressed  )  [private, slot]
 

Clears all of the current highlights.

Definition at line 161 of file HighlightDialog.cpp.

References NetworkViewer::clearHighlights(), networkViewer, and neuronIDText.

Referenced by HighlightDialog().

void HighlightDialog::closeButtonPressed  )  [private, slot]
 

Closes the dialog.

Definition at line 168 of file HighlightDialog.cpp.

Referenced by HighlightDialog().

void HighlightDialog::colorButtonPressed  )  [private, slot]
 

Sets the highlight colour.

Definition at line 174 of file HighlightDialog.cpp.

References colorButt, colorPixmap, and highlightColor.

Referenced by HighlightDialog().

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

Declare assignment private so it cannot be used inadvertently.

void HighlightDialog::showError const QString &  errMsg  )  [private]
 

Displays an error message.

Definition at line 189 of file HighlightDialog.cpp.

Referenced by addHighlightButtonPressed().


Member Data Documentation

QPushButton* HighlightDialog::colorButt [private]
 

Definition at line 69 of file HighlightDialog.h.

Referenced by colorButtonPressed(), and HighlightDialog().

QPixmap* HighlightDialog::colorPixmap [private]
 

Definition at line 68 of file HighlightDialog.h.

Referenced by colorButtonPressed(), and HighlightDialog().

QColor HighlightDialog::highlightColor [private]
 

The current highlight colour.

Definition at line 61 of file HighlightDialog.h.

Referenced by addHighlightButtonPressed(), colorButtonPressed(), and HighlightDialog().

QAccel* HighlightDialog::keyboardAccelerator [private]
 

Links keys to methods.

Definition at line 64 of file HighlightDialog.h.

Referenced by acceleratorKeyPressed(), and HighlightDialog().

NetworkViewer* HighlightDialog::networkViewer [private]
 

The class that displays the highlighted neurons.

Definition at line 58 of file HighlightDialog.h.

Referenced by addHighlightButtonPressed(), clearButtonPressed(), and HighlightDialog().

QTextEdit* HighlightDialog::neuronIDText [private]
 

Definition at line 67 of file HighlightDialog.h.

Referenced by acceleratorKeyPressed(), addHighlightButtonPressed(), clearButtonPressed(), and HighlightDialog().


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