Beispiel #1
0
void
ProgressGlue::SetRange(unsigned value)
{
  if (global_progress_window == nullptr)
    return;

  global_progress_window->SetRange(0, value);
  throttle_clock.Reset();
}
Beispiel #2
0
void
ProgressGlue::Move(const PixelRect &rc)
{
  if (global_progress_window == nullptr)
    return;

  global_progress_window->Move(rc);
  throttle_clock.Reset();
}
Beispiel #3
0
void
ProgressGlue::SetStep(int step)
{
  if (global_progress_window == nullptr)
    return;

  global_progress_window->SetStep(step);
  throttle_clock.Reset();
}
Beispiel #4
0
void
ProgressGlue::Resize(UPixelScalar width, UPixelScalar height)
{
  if (global_progress_window == NULL)
    return;

  global_progress_window->Move(0, 0, width, height);
  throttle_clock.Reset();
}
Beispiel #5
0
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();
}
Beispiel #6
0
 /**
  * Reset the object, discard any previous click it may have
  * remembered.
  */
 void Reset() {
   clock.Reset();
 }