void SystemConfiguration() { const UISettings old_ui_settings = CommonInterface::GetUISettings(); SettingsEnter(); dlgConfigurationShowModal(); SettingsLeave(old_ui_settings); }
void SystemConfiguration() { if (!is_simulator() && XCSoarInterface::LockSettingsInFlight && XCSoarInterface::Basic().flight.Flying) { Message::AddMessage(_("Settings locked in flight")); return; } SettingsEnter(); dlgConfigurationShowModal(); SettingsLeave(); }
void SystemConfiguration(short mode) { if (!SIMMODE) { if (LockSettingsInFlight && CALCULATED_INFO.Flying) { DoStatusMessage(TEXT("Settings locked in flight")); return; } } #if TESTBENCH StartupStore(_T("... SETTINGS enter @%s\n"),WhatTimeIsIt()); #endif SettingsEnter(); dlgConfigurationShowModal(mode); #if TESTBENCH StartupStore(_T("... SETTINGS leave @%s\n"),WhatTimeIsIt()); #endif SettingsLeave(); }
static void OnLoadClicked(WindowControl * Sender){ TCHAR file_name[MAX_PATH]; WndProperty* wp; DataFieldFileReader *dfe; wp = (WndProperty*)wf->FindByName(TEXT("prpFile")); if (!wp) return; HWND hwnd = wp->GetHandle(); SendMessage(hwnd,WM_LBUTTONDOWN,0,0); dfe = (DataFieldFileReader*) wp->GetDataField(); int file_index = dfe->GetAsInteger(); if (file_index>0) { _tcscpy(file_name,dfe->GetAsString()); if(MessageBoxX(hWndMapWindow, file_name, // LKTOKEN _@M397_ = "Load this profile?" gettext(TEXT("_@M397_")), MB_YESNO|MB_ICONQUESTION) == IDYES) { SettingsEnter(); ReadProfile(dfe->GetPathFile()); WAYPOINTFILECHANGED=true; SettingsLeave(); MessageBoxX(hWndMapWindow, // LKTOKEN _@M534_ = "Profile loaded!" gettext(TEXT("_@M534_")), _T(""), MB_OK|MB_ICONEXCLAMATION); return; } dfe->Set(0); } }