| 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 | { |
no test coverage detected