Esempio n. 1
0
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;
}
Esempio n. 2
0
static void OnDetailsClicked(WndButton* pWnd){
  LKASSERT(twItemIndex>=0);
  SelectedWaypoint = Task[twItemIndex].Index;
  dlgWayPointDetailsShowModal(0);
}