19#include <wx/stattext.h>
24 wxWindow *parent =
nullptr;
38 auto pState = std::make_shared<State>();
39 pState->parent =
S.GetParent();
41 S.StartStatic(
XO(
"FFmpeg Import/Export Library"));
46 XO(
"No compatible FFmpeg library was found");
48 pState->FFmpegVersion =
S
49 .Position(wxALIGN_CENTRE_VERTICAL)
50 .AddReadOnlyText(
XO(
"FFmpeg Library Version:"), version.Translation());
52 S.AddVariableText(
XO(
"FFmpeg Library:"),
53 true, wxALL | wxALIGN_RIGHT | wxALIGN_CENTRE_VERTICAL);
57#if defined(DISABLE_DYNAMIC_LOADING_FFMPEG)
60 .AddButton(
XXO(
"Loca&te..."),
61 wxALL | wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
63 pFindButton->Bind(wxEVT_BUTTON, [pState](wxCommandEvent&){
67 S.AddVariableText(
XO(
"FFmpeg Library:"),
68 true, wxALL | wxALIGN_RIGHT | wxALIGN_CENTRE_VERTICAL);
72#if defined(DISABLE_DYNAMIC_LOADING_FFMPEG)
75 .AddButton(
XXO(
"Dow&nload"),
76 wxALL | wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
78 pDownButton->Bind(wxEVT_BUTTON, [pState](wxCommandEvent&){
80 wxT(
"FAQ:Installing_the_FFmpeg_Import_Export_Library"),
true);
105"Audacity has automatically detected valid FFmpeg libraries.\nDo you still want to locate them manually?"),
107 wxCENTRE | wxYES_NO | wxNO_DEFAULT |wxICON_QUESTION);
108 if (response == wxYES) {
int AudacityMessageBox(const TranslatableString &message, const TranslatableString &caption, long style, wxWindow *parent, int x, int y)
TranslatableString GetFFmpegVersion()
bool FindFFmpegLibs(wxWindow *parent)
bool LoadFFmpeg(bool showerror)
XXO("&Cut/Copy/Paste Toolbar")
static void ShowHelp(wxWindow *parent, const FilePath &localFileName, const URLString &remoteURL, bool bModal=false, bool alwaysDefaultBrowser=false)
void SetValue(const wxString &value)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
void SetFFmpegVersionText(State &state)
LibraryPrefs::RegisteredControls reg
void AddControls(ShuttleGui &S)
void OnFFmpegFindButton(State &state)
To be statically constructed, it registers additions to the Library preference page.
ReadOnlyText * FFmpegVersion