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 350 of file ExportFFmpegDialogs.cpp.

351: wxPanelWrapper(parent, wxID_ANY)
352{
355
357}
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:48
#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:628

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

Here is the call graph for this function:

◆ ~ExportFFmpegAMRNBOptions()

ExportFFmpegAMRNBOptions::~ExportFFmpegAMRNBOptions ( )
virtual

Definition at line 359 of file ExportFFmpegDialogs.cpp.

360{
362}
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 366 of file ExportFFmpegDialogs.cpp.

367{
368 IntSetting Setting{ L"/FileFormats/AMRNBBitRate", 12200 };
369 S.StartVerticalLay();
370 {
371 S.StartHorizontalLay(wxCENTER);
372 {
373 S.StartMultiColumn(2, wxCENTER);
374 {
375 S.TieNumberAsChoice(XXO("Bit Rate:"), Setting,
377 }
378 S.EndMultiColumn();
379 }
380 S.EndHorizontalLay();
381 }
382 S.EndVerticalLay();
383}
#define XXO(s)
Definition: Internat.h:44
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 caller graph for this function:

◆ TransferDataFromWindow()

bool ExportFFmpegAMRNBOptions::TransferDataFromWindow ( )
override

Definition at line 394 of file ExportFFmpegDialogs.cpp.

395{
398
399 gPrefs->Flush();
400
401 return true;
402}
FileConfig * gPrefs
Definition: Prefs.cpp:71
@ eIsSavingToPrefs
Definition: ShuttleGui.h:49
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 387 of file ExportFFmpegDialogs.cpp.

388{
389 return true;
390}

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: