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

Method PopulateLicensePage

src/AboutDialog.cpp:792–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790const wxString GPL_TEXT();
791
792void 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
841void AboutDialog::AddCredit( const wxString &name, Role role )
842{

Callers

nothing calls this directly

Calls 13

FormatHtmlTextFunction · 0.85
StartNotebookPageMethod · 0.80
StartPanelMethod · 0.80
AddVariableTextMethod · 0.80
AddFixedTextMethod · 0.80
EndPanelMethod · 0.80
AddWindowMethod · 0.80
PositionMethod · 0.80
EndNotebookPageMethod · 0.80
GPL_TEXTFunction · 0.70
wxSizeClass · 0.50
PopulateMethod · 0.45

Tested by

no test coverage detected