void ProgressGlue::SetRange(unsigned value) { if (global_progress_window == nullptr) return; global_progress_window->SetRange(0, value); throttle_clock.Reset(); }
void ProgressGlue::Move(const PixelRect &rc) { if (global_progress_window == nullptr) return; global_progress_window->Move(rc); throttle_clock.Reset(); }
void ProgressGlue::SetStep(int step) { if (global_progress_window == nullptr) return; global_progress_window->SetStep(step); throttle_clock.Reset(); }
void ProgressGlue::Resize(UPixelScalar width, UPixelScalar height) { if (global_progress_window == NULL) return; global_progress_window->Move(0, 0, width, height); throttle_clock.Reset(); }
void ProgressGlue::Create(const TCHAR *text) { UIGlobals::GetMainWindow().RefreshSize(); if (global_progress_window == nullptr) global_progress_window = new ProgressWindow(UIGlobals::GetMainWindow()); global_progress_window->SetMessage(text); global_progress_window->SetValue(0); UIGlobals::GetMainWindow().Refresh(); throttle_clock.Reset(); }
/** * Reset the object, discard any previous click it may have * remembered. */ void Reset() { clock.Reset(); }