Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
FFmpegNotFoundDialog Class Referencefinal

#include <FFmpeg.h>

Inheritance diagram for FFmpegNotFoundDialog:
Collaboration diagram for FFmpegNotFoundDialog:

Public Member Functions

 FFmpegNotFoundDialog (wxWindow *parent)
void PopulateOrExchange (ShuttleGui &S)
void OnOk (wxCommandEvent &WXUNUSED(event))
- Public Member Functions inherited from wxDialogWrapper
 wxDialogWrapper ()
 wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
bool Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
void SetTitle (const TranslatableString &title)
void SetLabel (const TranslatableString &title)
void SetName (const TranslatableString &title)
void SetName ()
- Public Member Functions inherited from wxTabTraversalWrapper< wxDialog >
 wxTabTraversalWrapper (Args &&... args)
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete

Private Attributes

wxCheckBox * mDontShow

Detailed Description

If Audacity failed to load libav*, this dialog shows up and tells user about that. It will pop-up again and again until it is disabled.

Definition at line 39 of file FFmpeg.h.

Constructor & Destructor Documentation

◆ FFmpegNotFoundDialog()

FFmpegNotFoundDialog::FFmpegNotFoundDialog ( wxWindow *  parent)

Definition at line 251 of file FFmpeg.cpp.

252 : wxDialogWrapper(parent, wxID_ANY, XO("FFmpeg not found"))
254 SetName();
255 ShuttleGui S(this, eIsCreating);
@ eIsCreating
Definition: ShuttleGui.h:37
#define S(N)
Definition: ToChars.cpp:64
void PopulateOrExchange(ShuttleGui &S)
Definition: FFmpeg.cpp:259
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640

References eIsCreating, and S.

Member Function Documentation

◆ OnOk()

void FFmpegNotFoundDialog::OnOk ( wxCommandEvent &  WXUNUSEDevent)

Definition at line 289 of file FFmpeg.cpp.

291 if (mDontShow->GetValue())
292 {
294 gPrefs->Flush();
295 }
296 this->EndModal(0);
BoolSetting FFmpegNotFoundDontShow
Definition: FFmpeg.cpp:355
audacity::BasicSettings * gPrefs
Definition: Prefs.cpp:68
wxCheckBox * mDontShow
Definition: FFmpeg.h:51
bool Write(const T &value)
Write value to config and return true if successful.
Definition: Prefs.h:259
virtual bool Flush() noexcept=0

References FFmpegNotFoundDontShow, audacity::BasicSettings::Flush(), gPrefs, mDontShow, and Setting< T >::Write().

Here is the call graph for this function:

◆ PopulateOrExchange()

void FFmpegNotFoundDialog::PopulateOrExchange ( ShuttleGui S)

Definition at line 259 of file FFmpeg.cpp.

261 wxString text;
263 S.SetBorder(10);
264 S.StartVerticalLay(true);
265 {
266 S.AddFixedText(XO(
267"Audacity attempted to use FFmpeg to import an audio file,\n\
268but the libraries were not found.\n\n\
269To use FFmpeg import, go to Edit > Preferences > Libraries\n\
270to download or locate the FFmpeg libraries."
271 ));
273 mDontShow = S
274 .AddCheckBox(XXO("Do not show this warning again"),
277 S.AddStandardButtons(eOkButton);
278 }
279 S.EndVerticalLay();
281 Layout();
282 Fit();
283 SetMinSize(GetSize());
284 Center();
286 return;
XXO("&Cut/Copy/Paste Toolbar")
@ eOkButton
Definition: ShuttleGui.h:609
bool Read(T *pVar) const
overload of Read returning a boolean that is true if the value was previously defined *‍/
Definition: Prefs.h:207

References eOkButton, FFmpegNotFoundDontShow, mDontShow, Setting< T >::Read(), S, XO(), and XXO().

Here is the call graph for this function:

Member Data Documentation

◆ mDontShow

wxCheckBox* FFmpegNotFoundDialog::mDontShow

Definition at line 51 of file FFmpeg.h.

Referenced by OnOk(), and PopulateOrExchange().

The documentation for this class was generated from the following files: