| 790 | const wxString GPL_TEXT(); |
| 791 | |
| 792 | void AboutDialog::PopulateLicensePage( ShuttleGui & S ) |
| 793 | { |
| 794 | #if defined(HAS_PRIVACY_POLICY) |
| 795 | S.StartNotebookPage(XC("Legal", "about dialog")); |
| 796 | #else |
| 797 | S.StartNotebookPage(XO("GPL License")); |
| 798 | #endif |
| 799 | |
| 800 | #if defined(HAS_PRIVACY_POLICY) |
| 801 | S.Prop(0).StartPanel(); |
| 802 | { |
| 803 | S.AddSpace(0, 8); |
| 804 | /* i18n-hint: For "About Audacity...": Title for Privacy Policy section */ |
| 805 | S.AddVariableText(XC("PRIVACY POLICY", "about dialog"), true); |
| 806 | |
| 807 | S.AddFixedText( |
| 808 | XO("App update checking and error reporting require network access. " |
| 809 | "These features are optional.")); |
| 810 | |
| 811 | /* i18n-hint: %s will be replaced with "our Privacy Policy" */ |
| 812 | AccessibleLinksFormatter privacyPolicy(XO("See %s for more info.")); |
| 813 | |
| 814 | privacyPolicy.FormatLink( |
| 815 | /* i18n-hint: Title of hyperlink to the privacy policy. This is an object of "See". */ |
| 816 | wxT("%s"), XO("our Privacy Policy"), |
| 817 | "https://www.audacityteam.org/desktop-privacy-notice/"); |
| 818 | |
| 819 | privacyPolicy.Populate(S); |
| 820 | } |
| 821 | S.EndPanel(); |
| 822 | |
| 823 | S.AddSpace(0, 8); |
| 824 | #endif |
| 825 | |
| 826 | S.Prop(1).StartPanel(); |
| 827 | { |
| 828 | HtmlWindow* html = safenew LinkingHtmlWindow( |
| 829 | S.GetParent(), -1, wxDefaultPosition, wxSize(ABOUT_DIALOG_WIDTH, 264), |
| 830 | wxHW_SCROLLBAR_AUTO ); |
| 831 | |
| 832 | html->SetPage(FormatHtmlText(GPL_TEXT())); |
| 833 | |
| 834 | S.Prop(1).Position(wxEXPAND).AddWindow( html ); |
| 835 | } |
| 836 | S.EndPanel(); |
| 837 | |
| 838 | S.EndNotebookPage(); |
| 839 | } |
| 840 | |
| 841 | void AboutDialog::AddCredit( const wxString &name, Role role ) |
| 842 | { |
nothing calls this directly
no test coverage detected