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

  map->SetPan(false);

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

  map->SetPan(false);

  InputEvents::UpdatePan();
  PageActions::Restore();
}
Ejemplo 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();
}
Ejemplo n.º 4
0
Archivo: Pan.cpp Proyecto: 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();
}
Ejemplo 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);
}