Aggregates timer information. More...
Public Slots | |
void | slotToggle () |
Public Member Functions | |
Timer () | |
Timer (string c, QShortcut *s, bool a=false) | |
~Timer () | |
Public Attributes | |
string | connection |
QShortcut * | shortcut |
const uint | id |
bool | enabled |
Static Public Attributes | |
static uint | idCounter = 0 |
Aggregates timer information.
Timer contains information about a timer created by the user. This includes the timer itself, the name of the slot to which the timer is connected, the timer's toggle shortcut, and its active flag.
rtVTK::Timer::Timer | ( | ) | [inline] |
rtVTK::Timer::Timer | ( | string | c, |
QShortcut * | s, | ||
bool | a = false |
||
) | [inline] |
rtVTK::Timer::~Timer | ( | ) | [inline] |
References shortcut.
void rtVTK::Timer::slotToggle | ( | ) | [inline, slot] |
The Shortcut is used to toggle the timer on and off.
References enabled.
string rtVTK::Timer::connection |
This stores the value of the Activate and Activate_Edit check box on the TimerDialog. TimerDialog should check all timers for this value and start/resume the timer during TimerDialog::closeEvent(QCloseEvent* e).
Referenced by rtVTK::TimerDialog::slotAddTimer(), and slotToggle().
const uint rtVTK::Timer::id |
uint rtVTK::Timer::idCounter = 0 [static] |
QShortcut* rtVTK::Timer::shortcut |