Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MFrequencySpectrum Class Reference

#include </home/clem/local/src/opie/noncore/net/wellenreiter/gui/graphwindow.h>

List of all members.

Public Member Functions

 MFrequencySpectrum (int channels, QWidget *parent=0, const char *name="MFrequencySpectrum", WFlags f=0)
int value (int channel) const
void setValue (int channel, int value)
void decrease (int channel, int amount)

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
virtual void mousePressEvent (QMouseEvent *)
void drawLine (QPainter *p, int x, int y, int width, const QColor &c)
void drawTopLine (QPainter *p, int x, int y, int width, const QColor &c)
void drawBottomLine (QPainter *p, int x, int y, int width, const QColor &c)
void drawBar (QPainter *p, int x, int y, int width, int height, int maxheight)

Private Attributes

int _channels
int * _values
bool * _dirty


Constructor & Destructor Documentation

MFrequencySpectrum::MFrequencySpectrum int  channels,
QWidget *  parent = 0,
const char *  name = "MFrequencySpectrum",
WFlags  f = 0
 

Definition at line 49 of file graphwindow.cpp.

References _channels, _dirty, _values, and i.


Member Function Documentation

void MFrequencySpectrum::decrease int  channel,
int  amount
[inline]
 

Definition at line 35 of file graphwindow.h.

References _dirty, and _values.

Referenced by MGraphWindow::timerEvent().

void MFrequencySpectrum::drawBar QPainter *  p,
int  x,
int  y,
int  width,
int  height,
int  maxheight
[protected]
 

Definition at line 89 of file graphwindow.cpp.

References drawBottomLine(), drawLine(), drawTopLine(), i, s, and v.

Referenced by paintEvent().

void MFrequencySpectrum::drawBottomLine QPainter *  p,
int  x,
int  y,
int  width,
const QColor &  c
[protected]
 

Definition at line 71 of file graphwindow.cpp.

Referenced by drawBar().

void MFrequencySpectrum::drawLine QPainter *  p,
int  x,
int  y,
int  width,
const QColor &  c
[protected]
 

Definition at line 78 of file graphwindow.cpp.

Referenced by drawBar().

void MFrequencySpectrum::drawTopLine QPainter *  p,
int  x,
int  y,
int  width,
const QColor &  c
[protected]
 

Definition at line 64 of file graphwindow.cpp.

Referenced by drawBar().

void MFrequencySpectrum::mousePressEvent QMouseEvent *   )  [protected, virtual]
 

Definition at line 143 of file graphwindow.cpp.

References _channels, _values, channel, height, pos, size, width, and Opie::MM::y.

void MFrequencySpectrum::paintEvent QPaintEvent *   )  [protected, virtual]
 

Definition at line 115 of file graphwindow.cpp.

References _channels, _dirty, _values, background, bitBlt(), drawBar(), height, i, p, size, width, Opie::MM::x, and Opie::MM::y.

void MFrequencySpectrum::setValue int  channel,
int  value
[inline]
 

Definition at line 27 of file graphwindow.h.

References _dirty, and _values.

Referenced by MGraphWindow::testGraph(), and MGraphWindow::traffic().

int MFrequencySpectrum::value int  channel  )  const [inline]
 

Definition at line 26 of file graphwindow.h.

References _values.


Member Data Documentation

int MFrequencySpectrum::_channels [private]
 

Definition at line 54 of file graphwindow.h.

Referenced by MFrequencySpectrum(), mousePressEvent(), and paintEvent().

bool* MFrequencySpectrum::_dirty [private]
 

Definition at line 56 of file graphwindow.h.

Referenced by decrease(), MFrequencySpectrum(), paintEvent(), and setValue().

int* MFrequencySpectrum::_values [private]
 

Definition at line 55 of file graphwindow.h.

Referenced by decrease(), MFrequencySpectrum(), mousePressEvent(), paintEvent(), setValue(), and value().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:40:14 2005 for OPIE by  doxygen 1.4.2