コード例 #1
0
ファイル: Interface.cpp プロジェクト: scottp/xcsoar
/**
 * Determine whether vario gauge, FLARM radar and infoboxes should be drawn
 */
void
ActionInterface::DisplayModes()
{
  // Determine whether the vario gauge should be drawn
  SetSettingsMap().EnableVarioGauge =
    vario_visible() && !SettingsMap().FullScreen;

  if (main_window.vario) {
    if (!SettingsMap().ScreenBlanked && SettingsMap().EnableVarioGauge) {
      main_window.vario->show();
    } else {
      main_window.vario->hide();
    }
  }

  if (Basic().NewTraffic) {
    // TODO bug: JMW: broken, currently won't work very well, needs to be reworked
    GaugeFLARM *gauge_flarm = main_window.flarm;
    if (gauge_flarm != NULL)
      gauge_flarm->Suppress = false;
  }

  if (SettingsMap().FullScreen) {
    InfoBoxManager::Hide();
  } else {
    InfoBoxManager::Show();
  }
}
コード例 #2
0
ファイル: ProcessTimer.cpp プロジェクト: Plantain/XCSoar
void
ProcessTimer::CommonProcessTimer()
{
  CheckDisplayTimeOut(false);

  DisplayModes();
  ExchangeBlackboard();

  // send ignore command
  SetSettingsMap().MapScale = fixed_zero;

  InfoBoxManager::ProcessTimer();
  InputEvents::ProcessTimer();

  AirspaceProcessTimer();
  MessageProcessTimer();
}
コード例 #3
0
ファイル: Interface.cpp プロジェクト: galippi/xcsoar
/**
 * Determine whether vario gauge, FLARM radar and infoboxes should be drawn
 */
void
ActionInterface::DisplayModes()
{
  bool full_screen = main_window.GetFullScreen();

  // Determine whether the vario gauge should be drawn
  SetSettingsMap().EnableVarioGauge = vario_visible() && !full_screen;

  if (main_window.vario) {
    if (!SettingsMap().ScreenBlanked && SettingsMap().EnableVarioGauge)
      main_window.vario->show();
    else
      main_window.vario->hide();
  }

  if (Basic().flarm.NewTraffic) {
    GaugeFLARM *gauge_flarm = main_window.flarm;
    if (gauge_flarm != NULL)
      gauge_flarm->Suppress = false;
  }
}