MCPcopy Create free account
hub / github.com/audacity/audacity / NoUpdatesAvailableDialog

Method NoUpdatesAvailableDialog

src/update/NoUpdatesAvailableDialog.cpp:30–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28END_EVENT_TABLE()
29
30NoUpdatesAvailableDialog::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

Callers

nothing calls this directly

Calls 7

AddVariableTextMethod · 0.80
SetFontMethod · 0.80
SelectPageByNameMethod · 0.80
TranslationMethod · 0.80
GetFontMethod · 0.45
ShowModalMethod · 0.45
PopulateMethod · 0.45

Tested by

no test coverage detected