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

Function PopulateOrExchange

modules/import-export/mod-ffmpeg/FFmpeg.cpp:121–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 void PopulateOrExchange(ShuttleGui & S)
122 {
123 S.SetBorder(10);
124 S.StartVerticalLay(true);
125 {
126 S.AddTitle(
127 XO(
128"Audacity needs the file '%s' to import and export audio via FFmpeg.")
129 .Format( mName ) );
130
131 S.SetBorder(3);
132 S.StartHorizontalLay(wxALIGN_LEFT, true);
133 {
134 S.AddTitle( XO("Location of '%s':").Format( mName ) );
135 }
136 S.EndHorizontalLay();
137
138 S.StartMultiColumn(2, wxEXPAND);
139 S.SetStretchyCol(0);
140 {
141 if (mFullPath.GetFullPath().empty())
142 {
143 mPathText = S.AddTextBox(
144 {},
145 XO("To find '%s', click here -->")
146 .Format(mName)
147 .Translation(),
148 0);
149 }
150 else
151 {
152 mPathText = S.AddTextBox({}, mFullPath.GetFullPath(), 0);
153 }
154
155 S.Id(ID_FFMPEG_BROWSE).AddButton(XXO("Browse..."), wxALIGN_RIGHT);
156 S.AddVariableText(
157 XO("To get a free copy of FFmpeg, click here -->"), true);
158 S.Id(ID_FFMPEG_DLOAD).AddButton(XXO("Download"), wxALIGN_RIGHT);
159 }
160 S.EndMultiColumn();
161
162 S.AddStandardButtons();
163 }
164 S.EndVerticalLay();
165
166 Layout();
167 Fit();
168 SetMinSize(GetSize());
169 Center();
170
171 return;
172 }
173
174 void OnBrowse(wxCommandEvent & WXUNUSED(event))
175 {

Callers 9

ExportFFmpegOptionsMethod · 0.70
OnOKMethod · 0.70
FindFFmpegDialogFunction · 0.70
FFmpegNotFoundDialogMethod · 0.70
FFmpeg.cppFile · 0.70
FindDialogMethod · 0.50
AudioComPrefsPanelMethod · 0.50
CommitMethod · 0.50
NyqBenchMethod · 0.50

Calls 7

SetStretchyColMethod · 0.80
AddTextBoxMethod · 0.80
TranslationMethod · 0.80
AddVariableTextMethod · 0.80
AddTitleMethod · 0.45
emptyMethod · 0.45
AddButtonMethod · 0.45

Tested by

no test coverage detected