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

Options dialog for FFmpeg exporting of AMRNB format. More...

#include <ExportFFmpegDialogs.h>

Inheritance diagram for ExportFFmpegAMRNBOptions:
[legend]
Collaboration diagram for ExportFFmpegAMRNBOptions:
[legend]

Public Member Functions

 ExportFFmpegAMRNBOptions (wxWindow *parent, int format)
 
virtual ~ExportFFmpegAMRNBOptions ()
 
void PopulateOrExchange (ShuttleGui &S)
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
- Public Member Functions inherited from wxPanelWrapper
 wxPanelWrapper ()
 
 wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
void SetLabel (const TranslatableString &label)
 
void SetName (const TranslatableString &name)
 
void SetToolTip (const TranslatableString &toolTip)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Private Attributes

wxChoice * mBitRateChoice
 
int mBitRateFromChoice
 

Detailed Description

Options dialog for FFmpeg exporting of AMRNB format.

Definition at line 104 of file ExportFFmpegDialogs.h.

Constructor & Destructor Documentation

◆ ExportFFmpegAMRNBOptions()

ExportFFmpegAMRNBOptions::ExportFFmpegAMRNBOptions ( wxWindow *  parent,
int  format 
)

Definition at line 347 of file ExportFFmpegDialogs.cpp.

348: wxPanelWrapper(parent, wxID_ANY)
349{
352
354}
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:46
#define S(N)
Definition: ToChars.cpp:64
void PopulateOrExchange(ShuttleGui &S)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:625

References eIsCreatingFromPrefs, PopulateOrExchange(), S, and TransferDataToWindow().

Here is the call graph for this function:

◆ ~ExportFFmpegAMRNBOptions()

ExportFFmpegAMRNBOptions::~ExportFFmpegAMRNBOptions ( )
virtual

Definition at line 356 of file ExportFFmpegDialogs.cpp.

357{
359}
bool TransferDataFromWindow() override

References TransferDataFromWindow().

Here is the call graph for this function:

Member Function Documentation

◆ PopulateOrExchange()

void ExportFFmpegAMRNBOptions::PopulateOrExchange ( ShuttleGui S)

Definition at line 363 of file ExportFFmpegDialogs.cpp.

364{
365 IntSetting Setting{ L"/FileFormats/AMRNBBitRate", 12200 };
366 S.StartVerticalLay();
367 {
368 S.StartHorizontalLay(wxCENTER);
369 {
370 S.StartMultiColumn(2, wxCENTER);
371 {
372 S.TieNumberAsChoice(XXO("Bit Rate:"), Setting,
374 }
375 S.EndMultiColumn();
376 }
377 S.EndHorizontalLay();
378 }
379 S.EndVerticalLay();
380}
XXO("&Cut/Copy/Paste Toolbar")
Specialization of Setting for int.
Definition: Prefs.h:349
Definition: Prefs.h:173

References anonymous_namespace{ExportFFmpegDialogs.cpp}::AMRNBBitRateNames, anonymous_namespace{ExportFFmpegDialogs.cpp}::AMRNBBitRateValues, S, and XXO().

Referenced by ExportFFmpegAMRNBOptions(), and TransferDataFromWindow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TransferDataFromWindow()

bool ExportFFmpegAMRNBOptions::TransferDataFromWindow ( )
override

Definition at line 391 of file ExportFFmpegDialogs.cpp.

392{
395
396 gPrefs->Flush();
397
398 return true;
399}
FileConfig * gPrefs
Definition: Prefs.cpp:70
@ eIsSavingToPrefs
Definition: ShuttleGui.h:47
virtual bool Flush(bool bCurrentOnly=false) wxOVERRIDE
Definition: FileConfig.cpp:143

References eIsSavingToPrefs, FileConfig::Flush(), gPrefs, PopulateOrExchange(), and S.

Referenced by ~ExportFFmpegAMRNBOptions().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TransferDataToWindow()

bool ExportFFmpegAMRNBOptions::TransferDataToWindow ( )
override

Definition at line 384 of file ExportFFmpegDialogs.cpp.

385{
386 return true;
387}

Referenced by ExportFFmpegAMRNBOptions().

Here is the caller graph for this function:

Member Data Documentation

◆ mBitRateChoice

wxChoice* ExportFFmpegAMRNBOptions::mBitRateChoice
private

Definition at line 117 of file ExportFFmpegDialogs.h.

◆ mBitRateFromChoice

int ExportFFmpegAMRNBOptions::mBitRateFromChoice
private

Definition at line 118 of file ExportFFmpegDialogs.h.


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