Esempio n. 1
0
File: Pan.cpp Progetto: DRIZO/xcsoar
void
DisablePan()
{
  GlueMapWindow *map = UIGlobals::GetMapIfActive();
  if (map == NULL || !map->IsPanning())
    return;

  map->SetPan(false);

  InputEvents::UpdatePan();
}
Esempio n. 2
0
File: Pan.cpp Progetto: DRIZO/xcsoar
void
LeavePan()
{
  GlueMapWindow *map = UIGlobals::GetMapIfActive();
  if (map == NULL || !map->IsPanning())
    return;

  map->SetPan(false);

  InputEvents::UpdatePan();
  PageActions::Restore();
}
Esempio n. 3
0
void
LeavePan()
{
  assert(CommonInterface::main_window != NULL);

  GlueMapWindow *map = CommonInterface::main_window->GetMapIfActive();
  if (map == NULL || !map->IsPanning())
    return;

  map->SetPan(false);

  setMode(InputEvents::MODE_DEFAULT);
  Pages::Update();
}
Esempio n. 4
0
File: Pan.cpp Progetto: DRIZO/xcsoar
void
EnterPan()
{
  assert(CommonInterface::main_window != NULL);

  GlueMapWindow *map = PageActions::ShowOnlyMap();
  if (map == NULL || map->IsPanning())
    return;

  map->SetPan(true);

  InputEvents::setMode(InputEvents::MODE_DEFAULT);
  InputEvents::UpdatePan();
}
Esempio n. 5
0
void
EnterPan()
{
  assert(CommonInterface::main_window != NULL);

  GlueMapWindow *map = CommonInterface::main_window->ActivateMap();
  if (map == NULL || map->IsPanning())
    return;

  map->SetPan(true);

  InputEvents::setMode(InputEvents::MODE_PAN);
  CommonInterface::main_window->SetFullScreen(true);
}