예제 #1
0
파일: Pan.cpp 프로젝트: 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;
}
예제 #2
0
파일: Pan.cpp 프로젝트: jerryshu/xcsoar
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;
}