Audacity 3.2.0
Public Member Functions | List of all members
ExportFLACOptions Class Referencefinal
Inheritance diagram for ExportFLACOptions:
[legend]
Collaboration diagram for ExportFLACOptions:
[legend]

Public Member Functions

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

Detailed Description

Definition at line 45 of file ExportFLAC.cpp.

Constructor & Destructor Documentation

◆ ExportFLACOptions()

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

Definition at line 59 of file ExportFLAC.cpp.

60: wxPanelWrapper(parent, wxID_ANY)
61{
64
66}
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:46
#define S(N)
Definition: ToChars.cpp:64
void PopulateOrExchange(ShuttleGui &S)
Definition: ExportFLAC.cpp:117
bool TransferDataToWindow() override
Definition: ExportFLAC.cpp:139
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:

◆ ~ExportFLACOptions()

ExportFLACOptions::~ExportFLACOptions ( )
virtual

Definition at line 70 of file ExportFLAC.cpp.

71{
73}
bool TransferDataFromWindow() override
Definition: ExportFLAC.cpp:146

References TransferDataFromWindow().

Here is the call graph for this function:

Member Function Documentation

◆ PopulateOrExchange()

void ExportFLACOptions::PopulateOrExchange ( ShuttleGui S)

Definition at line 117 of file ExportFLAC.cpp.

118{
119 S.StartVerticalLay();
120 {
121 S.StartHorizontalLay(wxCENTER);
122 {
123 S.StartMultiColumn(2, wxCENTER);
124 {
125 S.TieChoice( XXO("Level:"), FLACLevel);
126 S.TieChoice( XXO("Bit depth:"), FLACBitDepth);
127 }
128 S.EndMultiColumn();
129 }
130 S.EndHorizontalLay();
131 }
132 S.EndVerticalLay();
133
134 return;
135}
ChoiceSetting FLACLevel
Definition: ExportFLAC.cpp:85
ChoiceSetting FLACBitDepth
Definition: ExportFLAC.cpp:75
XXO("&Cut/Copy/Paste Toolbar")

References FLACBitDepth, FLACLevel, S, and XXO().

Referenced by ExportFLACOptions(), and TransferDataFromWindow().

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

◆ TransferDataFromWindow()

bool ExportFLACOptions::TransferDataFromWindow ( )
override

Definition at line 146 of file ExportFLAC.cpp.

147{
150
151 gPrefs->Flush();
152
153 return true;
154}
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 ~ExportFLACOptions().

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

◆ TransferDataToWindow()

bool ExportFLACOptions::TransferDataToWindow ( )
override

Definition at line 139 of file ExportFLAC.cpp.

140{
141 return true;
142}

Referenced by ExportFLACOptions().

Here is the caller graph for this function:

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