void InputEvents::eventTraffic(const TCHAR *misc) { LoadFlarmDatabases(); if (StringIsEqual(misc, _T("show"))) { if (CommonInterface::Basic().flarm.traffic.IsEmpty() || IsFlavour(_T("Traffic"))) return; traffic_widget = new TrafficWidget(); CommonInterface::main_window.SetWidget(traffic_widget); SetFlavour(_T("Traffic")); return; } if (!IsFlavour(_T("Traffic"))) return; assert(traffic_widget != NULL); if (StringIsEqual(misc, _T("zoom auto toggle"))) { traffic_widget->ToggleAutoZoom(); } else if (StringIsEqual(misc, _T("zoom in"))) { traffic_widget->ZoomIn(); } else if (StringIsEqual(misc, _T("zoom out"))) { traffic_widget->ZoomOut(); } else if (StringIsEqual(misc, _T("northup toggle"))) { traffic_widget->ToggleNorthUp(); } }
void InputEvents::eventThermalAssistant(gcc_unused const TCHAR *misc) { if (IsFlavour(_T("TA"))) return; ta_widget = new BigThermalAssistantWidget(CommonInterface::GetLiveBlackboard()); CommonInterface::main_window.SetWidget(ta_widget); SetFlavour(_T("TA")); }