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

StylusNormalizer Class Reference

#include </home/clem/local/src/opie/core/settings/citytime/stylusnormalizer.h>

Collaboration diagram for StylusNormalizer:

Collaboration graph
[legend]
List of all members.

Signals

void signalNewPoint (const QPoint &p)

Public Member Functions

 StylusNormalizer (QWidget *parent=0, const char *name=0)
 ~StylusNormalizer ()
void start ()
void stop ()
void addEvent (const QPoint &pt)

Private Slots

void slotAveragePoint (void)

Private Attributes

_StylusEvent _ptList [SAMPLES]
int _next
QTimer * _tExpire
bool bFirst

Static Private Attributes

static const int SAMPLES = 10

Constructor & Destructor Documentation

StylusNormalizer::StylusNormalizer QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 37 of file stylusnormalizer.cpp.

References _ptList, _tExpire, i, SAMPLES, _StylusEvent::setPoint(), and slotAveragePoint().

StylusNormalizer::~StylusNormalizer  ) 
 

Definition at line 52 of file stylusnormalizer.cpp.


Member Function Documentation

void StylusNormalizer::addEvent const QPoint &  pt  ) 
 

Definition at line 56 of file stylusnormalizer.cpp.

References _next, _ptList, bFirst, QTime::currentTime(), SAMPLES, _StylusEvent::setPoint(), _StylusEvent::setTime(), and slotAveragePoint().

Referenced by ZoneMap::viewportMouseMoveEvent(), and ZoneMap::viewportMousePressEvent().

void StylusNormalizer::signalNewPoint const QPoint &  p  )  [signal]
 

Referenced by slotAveragePoint().

void StylusNormalizer::slotAveragePoint void   )  [private, slot]
 

Definition at line 70 of file stylusnormalizer.cpp.

References _ptList, QTime::currentTime(), FLUSHTIME, i, _StylusEvent::point(), SAMPLES, signalNewPoint(), and size.

Referenced by addEvent(), and StylusNormalizer().

void StylusNormalizer::start  ) 
 

Definition at line 88 of file stylusnormalizer.cpp.

References _tExpire, and FLUSHTIME.

Referenced by ZoneMap::viewportMousePressEvent().

void StylusNormalizer::stop  ) 
 

Definition at line 93 of file stylusnormalizer.cpp.

References _tExpire, and bFirst.

Referenced by ZoneMap::viewportMouseReleaseEvent().


Member Data Documentation

int StylusNormalizer::_next [private]
 

Definition at line 65 of file stylusnormalizer.h.

Referenced by addEvent().

_StylusEvent StylusNormalizer::_ptList[SAMPLES] [private]
 

Definition at line 64 of file stylusnormalizer.h.

Referenced by addEvent(), slotAveragePoint(), and StylusNormalizer().

QTimer* StylusNormalizer::_tExpire [private]
 

Definition at line 66 of file stylusnormalizer.h.

Referenced by start(), stop(), and StylusNormalizer().

bool StylusNormalizer::bFirst [private]
 

Definition at line 67 of file stylusnormalizer.h.

Referenced by addEvent(), and stop().

const int StylusNormalizer::SAMPLES = 10 [static, private]
 

Definition at line 63 of file stylusnormalizer.h.

Referenced by addEvent(), slotAveragePoint(), and StylusNormalizer().


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