Audacity  3.0.3
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 105 of file ExportFFmpegDialogs.h.

Constructor & Destructor Documentation

◆ ExportFFmpegAMRNBOptions()

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

Definition at line 351 of file ExportFFmpegDialogs.cpp.

352 : wxPanelWrapper(parent, wxID_ANY)
353 {
356 
358 }

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

Here is the call graph for this function:

◆ ~ExportFFmpegAMRNBOptions()

ExportFFmpegAMRNBOptions::~ExportFFmpegAMRNBOptions ( )
virtual

Definition at line 360 of file ExportFFmpegDialogs.cpp.

361 {
363 }

References TransferDataFromWindow().

Here is the call graph for this function:

Member Function Documentation

◆ PopulateOrExchange()

void ExportFFmpegAMRNBOptions::PopulateOrExchange ( ShuttleGui S)

Definition at line 367 of file ExportFFmpegDialogs.cpp.

368 {
369  S.StartVerticalLay();
370  {
371  S.StartHorizontalLay(wxCENTER);
372  {
373  S.StartMultiColumn(2, wxCENTER);
374  {
376  XXO("Bit Rate:"),
377  {wxT("/FileFormats/AMRNBBitRate"),
378  12200},
381  );
382  }
383  S.EndMultiColumn();
384  }
385  S.EndHorizontalLay();
386  }
387  S.EndVerticalLay();
388 }

References anonymous_namespace{ExportFFmpegDialogs.cpp}::AMRNBBitRateNames, anonymous_namespace{ExportFFmpegDialogs.cpp}::AMRNBBitRateValues, ShuttleGuiBase::EndHorizontalLay(), ShuttleGuiBase::EndMultiColumn(), ShuttleGuiBase::EndVerticalLay(), ShuttleGuiBase::StartHorizontalLay(), ShuttleGuiBase::StartMultiColumn(), ShuttleGuiBase::StartVerticalLay(), ShuttleGuiBase::TieNumberAsChoice(), 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 399 of file ExportFFmpegDialogs.cpp.

400 {
401  ShuttleGui S(this, eIsSavingToPrefs);
403 
404  gPrefs->Flush();
405 
406  return true;
407 }

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

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

393 {
394  return true;
395 }

Referenced by ExportFFmpegAMRNBOptions().

Here is the caller graph for this function:

Member Data Documentation

◆ mBitRateChoice

wxChoice* ExportFFmpegAMRNBOptions::mBitRateChoice
private

Definition at line 118 of file ExportFFmpegDialogs.h.

◆ mBitRateFromChoice

int ExportFFmpegAMRNBOptions::mBitRateFromChoice
private

Definition at line 119 of file ExportFFmpegDialogs.h.


The documentation for this class was generated from the following files:
ShuttleGuiBase::StartVerticalLay
void StartVerticalLay(int iProp=1)
Definition: ShuttleGui.cpp:1184
ExportFFmpegAMRNBOptions::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition: ExportFFmpegDialogs.cpp:399
gPrefs
FileConfig * gPrefs
Definition: Prefs.cpp:70
ExportFFmpegAMRNBOptions::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S)
Definition: ExportFFmpegDialogs.cpp:367
ShuttleGuiBase::TieNumberAsChoice
virtual wxChoice * TieNumberAsChoice(const TranslatableString &Prompt, const IntSetting &Setting, const TranslatableStrings &Choices, const std::vector< int > *pInternalChoices=nullptr, int iNoMatchSelector=0)
Definition: ShuttleGui.cpp:2011
anonymous_namespace{ExportFFmpegDialogs.cpp}::AMRNBBitRateNames
const TranslatableStrings AMRNBBitRateNames
Definition: ExportFFmpegDialogs.cpp:326
ShuttleGuiBase::EndMultiColumn
void EndMultiColumn()
Definition: ShuttleGui.cpp:1238
XXO
#define XXO(s)
Definition: Internat.h:44
ShuttleGuiBase::EndHorizontalLay
void EndHorizontalLay()
Definition: ShuttleGui.cpp:1177
ShuttleGuiBase::StartHorizontalLay
void StartHorizontalLay(int PositionFlags=wxALIGN_CENTRE, int iProp=1)
Definition: ShuttleGui.cpp:1167
ShuttleGuiBase::StartMultiColumn
void StartMultiColumn(int nCols, int PositionFlags=wxALIGN_LEFT)
Definition: ShuttleGui.cpp:1229
ShuttleGuiBase::EndVerticalLay
void EndVerticalLay()
Definition: ShuttleGui.cpp:1203
ExportFFmpegAMRNBOptions::TransferDataToWindow
bool TransferDataToWindow() override
Definition: ExportFFmpegDialogs.cpp:392
eIsSavingToPrefs
@ eIsSavingToPrefs
Definition: ShuttleGui.h:48
FileConfig::Flush
virtual bool Flush(bool bCurrentOnly=false) wxOVERRIDE
Definition: FileConfig.cpp:143
wxPanelWrapper::wxPanelWrapper
wxPanelWrapper()
Definition: wxPanelWrapper.h:44
eIsCreatingFromPrefs
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:47
anonymous_namespace{ExportFFmpegDialogs.cpp}::AMRNBBitRateValues
const std::vector< int > AMRNBBitRateValues
Definition: ExportFFmpegDialogs.cpp:338
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631