#include <CountDownWidget.h>
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_ |
WTimer * | timer_ |
Definition at line 25 of file CountDownWidget.h.
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.
void CountDownWidget::cancel | ( | ) | [slot] |
void CountDownWidget::timerTick | ( | ) | [private, slot] |
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.
int CountDownWidget::current_ [private] |
Definition at line 55 of file CountDownWidget.h.
WTimer* CountDownWidget::timer_ [private] |
Definition at line 57 of file CountDownWidget.h.