Audacity  3.0.3
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ExportFFmpegWMAOptions Class Referencefinal

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

#include <ExportFFmpegDialogs.h>

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

Public Member Functions

 ExportFFmpegWMAOptions (wxWindow *parent, int format)
 
 ~ExportFFmpegWMAOptions ()
 
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
 

Static Public Attributes

static const int iWMASampleRates []
 

Private Attributes

wxChoice * mBitRateChoice
 
int mBitRateFromChoice
 

Detailed Description

Options dialog for FFmpeg exporting of WMA format.

Definition at line 156 of file ExportFFmpegDialogs.h.

Constructor & Destructor Documentation

◆ ExportFFmpegWMAOptions()

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

Definition at line 710 of file ExportFFmpegDialogs.cpp.

711 : wxPanelWrapper(parent, wxID_ANY)
712 {
715 
717 }

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

Here is the call graph for this function:

◆ ~ExportFFmpegWMAOptions()

ExportFFmpegWMAOptions::~ExportFFmpegWMAOptions ( )

Definition at line 719 of file ExportFFmpegDialogs.cpp.

720 {
722 }

References TransferDataFromWindow().

Here is the call graph for this function:

Member Function Documentation

◆ PopulateOrExchange()

void ExportFFmpegWMAOptions::PopulateOrExchange ( ShuttleGui S)

Definition at line 726 of file ExportFFmpegDialogs.cpp.

727 {
728  S.StartVerticalLay();
729  {
730  S.StartHorizontalLay(wxCENTER);
731  {
732  S.StartMultiColumn(2, wxCENTER);
733  {
735  XXO("Bit Rate:"),
736  {wxT("/FileFormats/WMABitRate"),
737  128000},
740  );
741  }
742  S.EndMultiColumn();
743  }
744  S.EndHorizontalLay();
745  }
746  S.EndVerticalLay();
747 }

References ShuttleGuiBase::EndHorizontalLay(), ShuttleGuiBase::EndMultiColumn(), ShuttleGuiBase::EndVerticalLay(), ShuttleGuiBase::StartHorizontalLay(), ShuttleGuiBase::StartMultiColumn(), ShuttleGuiBase::StartVerticalLay(), ShuttleGuiBase::TieNumberAsChoice(), anonymous_namespace{ExportFFmpegDialogs.cpp}::WMABitRateNames, anonymous_namespace{ExportFFmpegDialogs.cpp}::WMABitRateValues, and XXO.

Referenced by ExportFFmpegWMAOptions(), and TransferDataFromWindow().

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

◆ TransferDataFromWindow()

bool ExportFFmpegWMAOptions::TransferDataFromWindow ( )
override

Definition at line 758 of file ExportFFmpegDialogs.cpp.

759 {
760  ShuttleGui S(this, eIsSavingToPrefs);
762 
763  gPrefs->Flush();
764 
765  return true;
766 }

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

Referenced by ~ExportFFmpegWMAOptions().

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

◆ TransferDataToWindow()

bool ExportFFmpegWMAOptions::TransferDataToWindow ( )
override

Definition at line 751 of file ExportFFmpegDialogs.cpp.

752 {
753  return true;
754 }

Referenced by ExportFFmpegWMAOptions().

Here is the caller graph for this function:

Member Data Documentation

◆ iWMASampleRates

const int ExportFFmpegWMAOptions::iWMASampleRates
static
Initial value:
=
{ 8000, 11025, 16000, 22050, 44100, 0}

Definition at line 167 of file ExportFFmpegDialogs.h.

Referenced by ExportFFmpeg::InitCodecs().

◆ mBitRateChoice

wxChoice* ExportFFmpegWMAOptions::mBitRateChoice
private

Definition at line 171 of file ExportFFmpegDialogs.h.

◆ mBitRateFromChoice

int ExportFFmpegWMAOptions::mBitRateFromChoice
private

Definition at line 172 of file ExportFFmpegDialogs.h.


The documentation for this class was generated from the following files:
ExportFFmpegWMAOptions::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition: ExportFFmpegDialogs.cpp:758
ShuttleGuiBase::StartVerticalLay
void StartVerticalLay(int iProp=1)
Definition: ShuttleGui.cpp:1184
gPrefs
FileConfig * gPrefs
Definition: Prefs.cpp:70
anonymous_namespace{ExportFFmpegDialogs.cpp}::WMABitRateValues
const std::vector< int > WMABitRateValues
Definition: ExportFFmpegDialogs.cpp:693
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
ShuttleGuiBase::EndMultiColumn
void EndMultiColumn()
Definition: ShuttleGui.cpp:1238
XXO
#define XXO(s)
Definition: Internat.h:44
ExportFFmpegWMAOptions::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S)
Definition: ExportFFmpegDialogs.cpp:726
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
anonymous_namespace{ExportFFmpegDialogs.cpp}::WMABitRateNames
const TranslatableStrings WMABitRateNames
Bit Rates supported by WMA encoder. Setting bit rate to other values will not result in different fil...
Definition: ExportFFmpegDialogs.cpp:678
ExportFFmpegWMAOptions::TransferDataToWindow
bool TransferDataToWindow() override
Definition: ExportFFmpegDialogs.cpp:751
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
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631