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

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

#include <ExportFFmpegDialogs.h>

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

Public Member Functions

 ExportFFmpegOPUSOptions (wxWindow *parent, int format)
 
 ~ExportFFmpegOPUSOptions ()
 
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 iOPUSSampleRates []
 

Private Attributes

wxSlider * mBitRateSlider
 
int mBitRateFromSlider
 
wxChoice * mVbrChoice
 
int mVbrFromChoice
 
wxSlider * mComplexitySlider
 
int mComplexityFromSlider
 
wxChoice * mFramesizeChoice
 
int mFramesizeFromChoice
 
wxChoice * mApplicationChoice
 
int mApplicationFromChoice
 
wxChoice * mCuttoffChoice
 
int mCutoffFromChoice
 

Detailed Description

Options dialog for FFmpeg exporting of OPUS format.

Definition at line 122 of file ExportFFmpegDialogs.h.

Constructor & Destructor Documentation

◆ ExportFFmpegOPUSOptions()

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

Definition at line 582 of file ExportFFmpegDialogs.cpp.

583 : wxPanelWrapper(parent, wxID_ANY)
584 {
587 
589 }

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

Here is the call graph for this function:

◆ ~ExportFFmpegOPUSOptions()

ExportFFmpegOPUSOptions::~ExportFFmpegOPUSOptions ( )

Definition at line 591 of file ExportFFmpegDialogs.cpp.

592 {
594 }

References TransferDataFromWindow().

Here is the call graph for this function:

Member Function Documentation

◆ PopulateOrExchange()

void ExportFFmpegOPUSOptions::PopulateOrExchange ( ShuttleGui S)

Definition at line 598 of file ExportFFmpegDialogs.cpp.

599 {
600  S.SetSizerProportion(1);
601  S.SetBorder(4);
602  S.StartVerticalLay();
603  {
604  S.StartHorizontalLay(wxCENTER);
605  {
606  S.StartMultiColumn(2, wxCENTER);
607  {
608  S.StartMultiColumn(2, wxCENTER);
609  {
610  S.TieChoice(
611  XXO("Bit Rate:"),
612  OPUSBitrate);
613 
614  S.TieChoice(
615  XXO("Compression"),
617 
618  S.TieChoice(
619  XXO("Frame Duration:"),
621  }
622  S.EndMultiColumn();
623 
624  S.StartMultiColumn(2, wxCENTER);
625  {
626  S.TieChoice(
627  XXO("Vbr Mode:"),
628  OPUSVbrMode);
629 
630  S.TieChoice(
631  XXO("Application:"),
633 
634  S.TieChoice(
635  XXO("Cutoff:"),
636  OPUSCutoff);
637 
638  }
639  S.EndMultiColumn();
640  }
641  S.EndMultiColumn();
642  }
643  S.EndHorizontalLay();
644  }
645  S.EndVerticalLay();
646 }

References ShuttleGuiBase::EndHorizontalLay(), ShuttleGuiBase::EndMultiColumn(), ShuttleGuiBase::EndVerticalLay(), anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSApplication, anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSBitrate, anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSCompression, anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSCutoff, anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSFrameDuration, anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSVbrMode, ShuttleGuiBase::SetBorder(), ShuttleGuiBase::SetSizerProportion(), ShuttleGuiBase::StartHorizontalLay(), ShuttleGuiBase::StartMultiColumn(), ShuttleGuiBase::StartVerticalLay(), ShuttleGuiBase::TieChoice(), and XXO.

Referenced by ExportFFmpegOPUSOptions(), and TransferDataFromWindow().

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

◆ TransferDataFromWindow()

bool ExportFFmpegOPUSOptions::TransferDataFromWindow ( )
override

Definition at line 657 of file ExportFFmpegDialogs.cpp.

658 {
659  ShuttleGui S(this, eIsSavingToPrefs);
661 
662  gPrefs->Flush();
663 
664  return true;
665 }

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

Referenced by ~ExportFFmpegOPUSOptions().

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

◆ TransferDataToWindow()

bool ExportFFmpegOPUSOptions::TransferDataToWindow ( )
override

Definition at line 650 of file ExportFFmpegDialogs.cpp.

651 {
652  return true;
653 }

Referenced by ExportFFmpegOPUSOptions().

Here is the caller graph for this function:

Member Data Documentation

◆ iOPUSSampleRates

const int ExportFFmpegOPUSOptions::iOPUSSampleRates[]
static

Definition at line 133 of file ExportFFmpegDialogs.h.

◆ mApplicationChoice

wxChoice* ExportFFmpegOPUSOptions::mApplicationChoice
private

Definition at line 149 of file ExportFFmpegDialogs.h.

◆ mApplicationFromChoice

int ExportFFmpegOPUSOptions::mApplicationFromChoice
private

Definition at line 150 of file ExportFFmpegDialogs.h.

◆ mBitRateFromSlider

int ExportFFmpegOPUSOptions::mBitRateFromSlider
private

Definition at line 138 of file ExportFFmpegDialogs.h.

◆ mBitRateSlider

wxSlider* ExportFFmpegOPUSOptions::mBitRateSlider
private

Definition at line 137 of file ExportFFmpegDialogs.h.

◆ mComplexityFromSlider

int ExportFFmpegOPUSOptions::mComplexityFromSlider
private

Definition at line 144 of file ExportFFmpegDialogs.h.

◆ mComplexitySlider

wxSlider* ExportFFmpegOPUSOptions::mComplexitySlider
private

Definition at line 143 of file ExportFFmpegDialogs.h.

◆ mCutoffFromChoice

int ExportFFmpegOPUSOptions::mCutoffFromChoice
private

Definition at line 153 of file ExportFFmpegDialogs.h.

◆ mCuttoffChoice

wxChoice* ExportFFmpegOPUSOptions::mCuttoffChoice
private

Definition at line 152 of file ExportFFmpegDialogs.h.

◆ mFramesizeChoice

wxChoice* ExportFFmpegOPUSOptions::mFramesizeChoice
private

Definition at line 146 of file ExportFFmpegDialogs.h.

◆ mFramesizeFromChoice

int ExportFFmpegOPUSOptions::mFramesizeFromChoice
private

Definition at line 147 of file ExportFFmpegDialogs.h.

◆ mVbrChoice

wxChoice* ExportFFmpegOPUSOptions::mVbrChoice
private

Definition at line 140 of file ExportFFmpegDialogs.h.

◆ mVbrFromChoice

int ExportFFmpegOPUSOptions::mVbrFromChoice
private

Definition at line 141 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
ExportFFmpegOPUSOptions::TransferDataToWindow
bool TransferDataToWindow() override
Definition: ExportFFmpegDialogs.cpp:650
gPrefs
FileConfig * gPrefs
Definition: Prefs.cpp:70
anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSFrameDuration
ChoiceSetting OPUSFrameDuration
Definition: ExportFFmpegDialogs.cpp:532
ShuttleGuiBase::EndMultiColumn
void EndMultiColumn()
Definition: ShuttleGui.cpp:1238
anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSCompression
ChoiceSetting OPUSCompression
Definition: ExportFFmpegDialogs.cpp:458
ShuttleGuiBase::SetSizerProportion
void SetSizerProportion(int iProp)
Definition: ShuttleGui.h:491
ExportFFmpegOPUSOptions::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition: ExportFFmpegDialogs.cpp:657
XXO
#define XXO(s)
Definition: Internat.h:44
ShuttleGuiBase::EndHorizontalLay
void EndHorizontalLay()
Definition: ShuttleGui.cpp:1177
ExportFFmpegOPUSOptions::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S)
Definition: ExportFFmpegDialogs.cpp:598
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}::OPUSApplication
ChoiceSetting OPUSApplication
Definition: ExportFFmpegDialogs.cpp:513
anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSCutoff
ChoiceSetting OPUSCutoff
Definition: ExportFFmpegDialogs.cpp:557
eIsSavingToPrefs
@ eIsSavingToPrefs
Definition: ShuttleGui.h:48
anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSVbrMode
ChoiceSetting OPUSVbrMode
Definition: ExportFFmpegDialogs.cpp:494
FileConfig::Flush
virtual bool Flush(bool bCurrentOnly=false) wxOVERRIDE
Definition: FileConfig.cpp:143
wxPanelWrapper::wxPanelWrapper
wxPanelWrapper()
Definition: wxPanelWrapper.h:44
ShuttleGuiBase::SetBorder
void SetBorder(int Border)
Definition: ShuttleGui.h:489
eIsCreatingFromPrefs
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:47
anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSBitrate
ChoiceSetting OPUSBitrate
Bit Rates supported by OPUS encoder. Setting bit rate to other values will not result in different fi...
Definition: ExportFFmpegDialogs.cpp:417
ShuttleGuiBase::TieChoice
wxChoice * TieChoice(const TranslatableString &Prompt, TranslatableString &Selected, const TranslatableStrings &choices)
Definition: ShuttleGui.cpp:1727
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631