CountDownWidget Class Reference
[Timer example]

A widget which displays a decrementing number. More...

#include <CountDownWidget.h>

Inheritance diagram for CountDownWidget:

Inheritance graph
[legend]

List of all members.

Public Slots

void cancel ()
 Cancel the count down.

Public Member Functions

 CountDownWidget (int start, int stop, unsigned msec, WContainerWidget *parent=0)
 Create a new CountDownWidget.

Public Attributes

Wt::Signal< void > done
 Signal emitted when the countdown reached stop.

Private Slots

void timerTick ()
 Process one timer tick.

Private Attributes

int start_
int stop_
unsigned msec_
int current_
WTimertimer_


Detailed Description

A widget which displays a decrementing number.

Definition at line 25 of file CountDownWidget.h.


Constructor & Destructor Documentation

CountDownWidget::CountDownWidget ( int  start,
int  stop,
unsigned  msec,
WContainerWidget parent = 0 
)

Create a new CountDownWidget.

The widget will count down from start to stop, decrementing the number every msec milliseconds.

Definition at line 12 of file CountDownWidget.C.


Member Function Documentation

void CountDownWidget::cancel (  )  [slot]

Cancel the count down.

Definition at line 29 of file CountDownWidget.C.

void CountDownWidget::timerTick (  )  [private, slot]

Process one timer tick.

Definition at line 34 of file CountDownWidget.C.


Member Data Documentation

Signal emitted when the countdown reached stop.

Definition at line 38 of file CountDownWidget.h.

int CountDownWidget::start_ [private]

Definition at line 51 of file CountDownWidget.h.

int CountDownWidget::stop_ [private]

Definition at line 52 of file CountDownWidget.h.

unsigned CountDownWidget::msec_ [private]

Definition at line 53 of file CountDownWidget.h.

Definition at line 55 of file CountDownWidget.h.

Definition at line 57 of file CountDownWidget.h.


The documentation for this class was generated from the following files:

Generated on Fri Sep 12 16:53:53 2008 for Wt by doxygen 1.5.6