Esempio n. 1
0
File: Pan.cpp Progetto: DRIZO/xcsoar
bool
PanTo(const GeoPoint &location)
{
  assert(CommonInterface::main_window != NULL);

  GlueMapWindow *map = PageActions::ShowOnlyMap();
  if (map == NULL)
    return false;

  map->PanTo(location);

  InputEvents::setMode(InputEvents::MODE_DEFAULT);
  InputEvents::UpdatePan();
  return true;
}
Esempio n. 2
0
bool
PanTo(const GeoPoint &location)
{
  assert(CommonInterface::main_window != NULL);

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

  map->PanTo(location);

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