예제 #1
0
파일: Task.cpp 프로젝트: Plantain/XCSoar
bool
InfoBoxContentNextWaypoint::HandleKey(const InfoBoxKeyCodes keycode)
{
  switch (keycode) {
  case ibkRight:
  case ibkDown:
    protected_task_manager.incrementActiveTaskPoint(1);
    return true;

  case ibkLeft:
  case ibkUp:
    protected_task_manager.incrementActiveTaskPoint(-1);
    return true;

  case ibkEnter:
    const Waypoint *wp = protected_task_manager.getActiveWaypoint();
    if (wp) {
      dlgWayPointDetailsShowModal(XCSoarInterface::main_window, *wp);
      return true;
    }
  }

  return false;
}
예제 #2
0
static void OnDetailsClicked(WndButton* pWnd){
  LKASSERT(twItemIndex>=0);
  SelectedWaypoint = Task[twItemIndex].Index;
  dlgWayPointDetailsShowModal(0);
}