| 28 | END_EVENT_TABLE() |
| 29 | |
| 30 | NoUpdatesAvailableDialog::NoUpdatesAvailableDialog(wxWindow* parent) |
| 31 | : wxDialogWrapper( |
| 32 | parent, -1, XO("Check for Updates"), wxDefaultPosition, wxDefaultSize, wxCAPTION | wxCLOSE_BOX) |
| 33 | { |
| 34 | ShuttleGui S(this, eIsCreating); |
| 35 | |
| 36 | S.SetBorder(8); |
| 37 | |
| 38 | S.StartVerticalLay(); |
| 39 | { |
| 40 | S.AddSpace(0, 12); |
| 41 | |
| 42 | S.StartHorizontalLay(); |
| 43 | { |
| 44 | S.AddSpace(12, 0); |
| 45 | |
| 46 | S.StartVerticalLay(); |
| 47 | { |
| 48 | wxStaticText* titleCtrl = S.AddVariableText(title, false, 0, 500); |
| 49 | |
| 50 | wxFont font = titleCtrl->GetFont().MakeLarger().MakeBold(); |
| 51 | |
| 52 | titleCtrl->SetFont(font); |
| 53 | |
| 54 | AccessibleLinksFormatter preferencesMessage( |
| 55 | /* i18n-hint: %s is replaced with 'Preferences > Application'. */ |
| 56 | XO("If you want to change your preference for automatic updates checking, you can find it in %s.")); |
| 57 | |
| 58 | preferencesMessage.FormatLink( |
| 59 | /* i18n-hint: Hyperlink title that opens Preferences dialog on Application page and is substituted into "... you can find it in %s." string. */ |
| 60 | wxT("%s"), XO("Preferences > Application"), [parent, this]() { |
| 61 | EndModal(wxID_OK); |
| 62 | |
| 63 | GlobalPrefsDialog dialog(parent, nullptr); |
| 64 | |
| 65 | dialog.SelectPageByName(XO("Application").Translation()); |
| 66 | dialog.ShowModal(); |
| 67 | }); |
| 68 | |
| 69 | preferencesMessage.Populate(S); |
| 70 | } |
| 71 | S.EndVerticalLay(); |
| 72 | |
| 73 | S.AddSpace(12, 0); |
| 74 | } |
| 75 | S.EndHorizontalLay(); |
| 76 | |
| 77 | S.AddSpace(0, 12); |
| 78 | |
| 79 | S.AddStandardButtons(eOkButton); |
| 80 | } |
| 81 | S.EndVerticalLay(); |
| 82 | |
| 83 | Layout(); |
| 84 | Fit(); |
| 85 | Center(); |
| 86 | } |
| 87 |
nothing calls this directly
no test coverage detected