void dlgConfigWaypointsShowModal() { WndForm *wf = LoadDialog(CallBackTable, UIGlobals::GetMainWindow(), Layout::landscape ? _T("IDR_XML_CONFIG_WAYPOINTS_L") : _T("IDR_XML_CONFIG_WAYPOINTS")); assert(wf != nullptr); WaypointsNeedSave = false; wf->ShowModal(); if (WaypointsNeedSave && ShowMessageBox(_("Save changes to waypoint file?"), _("Waypoints edited"), MB_YESNO | MB_ICONQUESTION) == IDYES) SaveWaypoints(); delete wf; }
void dlgConfigWaypointsShowModal() { wf = LoadDialog(CallBackTable, XCSoarInterface::main_window, Layout::landscape ? _T("IDR_XML_CONFIG_WAYPOINTS_L") : _T("IDR_XML_CONFIG_WAYPOINTS")); assert(wf != NULL); ((WndButton *)wf->FindByName(_T("cmdClose")))->SetOnClickNotify(OnCloseClicked); WaypointsNeedSave = false; wf->ShowModal(); if (WaypointsNeedSave && MessageBoxX(_("Save changes to waypoint file?"), _("Waypoints edited"), MB_YESNO | MB_ICONQUESTION) == IDYES) SaveWaypoints(); delete wf; }
static void OnWaypointSaveClicked() { SaveWaypoints(); }
static void OnWaypointSaveClicked(WndButton &Sender) { (void)Sender; SaveWaypoints(); }
static void OnWaypointSaveClicked(gcc_unused WndButton &Sender) { SaveWaypoints(); }
inline void WaypointManagerWidget::OnWaypointSaveClicked() { SaveWaypoints(); }