Audacity 3.2.0
|
#include <ExportOptionsHandler.h>
Public Member Functions | |
ExportOptionsHandler (ShuttleGui &S, const ExportPlugin &plugin, int format) | |
~ExportOptionsHandler () | |
bool | TransferDataFromEditor () |
ExportProcessor::Parameters | GetParameters () const |
void | SetParameters (const ExportProcessor::Parameters ¶meters) |
ExportOptionsEditor::SampleRateList | GetSampleRateList () const |
void | OnExportOptionChangeBegin () override |
Called before OnExportOptionChange More... | |
void | OnExportOptionChangeEnd () override |
Called after OnExportOptionChange More... | |
void | OnExportOptionChange (const ExportOption &option) override |
Called when option change. More... | |
void | OnFormatInfoChange () override |
Called when format extension change (usually in response parameter change) More... | |
void | OnSampleRateListChange () override |
Public Member Functions inherited from ExportOptionsEditor::Listener | |
virtual | ~Listener () |
virtual void | OnExportOptionChangeBegin ()=0 |
Called before OnExportOptionChange More... | |
virtual void | OnExportOptionChangeEnd ()=0 |
Called after OnExportOptionChange More... | |
virtual void | OnExportOptionChange (const ExportOption &option)=0 |
Called when option change. More... | |
virtual void | OnFormatInfoChange ()=0 |
Called when format extension change (usually in response parameter change) More... | |
virtual void | OnSampleRateListChange ()=0 |
Public Member Functions inherited from Observer::Publisher< ExportOptionsHandlerEvent > | |
Publisher (ExceptionPolicy *pPolicy=nullptr, Alloc a={}) | |
Constructor supporting type-erased custom allocation/deletion. More... | |
Publisher (Publisher &&)=default | |
Publisher & | operator= (Publisher &&)=default |
Subscription | Subscribe (Callback callback) |
Connect a callback to the Publisher; later-connected are called earlier. More... | |
Subscription | Subscribe (Object &obj, Return(Object::*callback)(Args...)) |
Overload of Subscribe takes an object and pointer-to-member-function. More... | |
Private Member Functions | |
void | PopulateEmpty (ShuttleGui &S) |
void | PopulateOptions (ShuttleGui &S) |
void | UpdateSampleRateList () |
Private Attributes | |
wxWindow * | mParent { nullptr } |
std::unique_ptr< wxWindowUpdateLocker > | mUpdateLocker |
std::unique_ptr< ExportOptionsEditor > | mEditor |
std::vector< std::tuple< wxStaticText *, wxControl * > > | mRows |
std::unordered_map< int, int > | mIDRowIndexMap |
Additional Inherited Members | |
Public Types inherited from Observer::Publisher< ExportOptionsHandlerEvent > | |
using | message_type = ExportOptionsHandlerEvent |
using | CallbackReturn = std::conditional_t< true, void, bool > |
using | Callback = std::function< CallbackReturn(const ExportOptionsHandlerEvent &) > |
Type of functions that can be connected to the Publisher. More... | |
Static Public Attributes inherited from Observer::Publisher< ExportOptionsHandlerEvent > | |
static constexpr bool | notifies_all |
Protected Member Functions inherited from Observer::Publisher< ExportOptionsHandlerEvent > | |
CallbackReturn | Publish (const ExportOptionsHandlerEvent &message) |
Send a message to connected callbacks. More... | |
Definition at line 38 of file ExportOptionsHandler.h.
ExportOptionsHandler::ExportOptionsHandler | ( | ShuttleGui & | S, |
const ExportPlugin & | plugin, | ||
int | format | ||
) |
Definition at line 33 of file ExportOptionsHandler.cpp.
References ExportPlugin::CreateOptionsEditor(), anonymous_namespace{ExportPCM.cpp}::format, gPrefs, mEditor, mParent, PopulateEmpty(), PopulateOptions(), and S.
|
default |
ExportProcessor::Parameters ExportOptionsHandler::GetParameters | ( | ) | const |
Definition at line 64 of file ExportOptionsHandler.cpp.
References mEditor, and ExportUtils::ParametersFromEditor().
ExportOptionsEditor::SampleRateList ExportOptionsHandler::GetSampleRateList | ( | ) | const |
Definition at line 80 of file ExportOptionsHandler.cpp.
References mEditor.
|
overridevirtual |
Called when option change.
Implements ExportOptionsEditor::Listener.
Definition at line 228 of file ExportOptionsHandler.cpp.
References ExportOption::flags, ExportOption::Hidden, ExportOption::id, mIDRowIndexMap, mRows, and ExportOption::ReadOnly.
|
overridevirtual |
Called before OnExportOptionChange
Implements ExportOptionsEditor::Listener.
Definition at line 217 of file ExportOptionsHandler.cpp.
References mParent, and mUpdateLocker.
|
overridevirtual |
Called after OnExportOptionChange
Implements ExportOptionsEditor::Listener.
Definition at line 222 of file ExportOptionsHandler.cpp.
References mParent, and mUpdateLocker.
|
overridevirtual |
Called when format extension change (usually in response parameter change)
Implements ExportOptionsEditor::Listener.
Definition at line 246 of file ExportOptionsHandler.cpp.
References ExportOptionsHandlerEvent::FormatInfoChange, and Observer::Publisher< ExportOptionsHandlerEvent >::Publish().
|
overridevirtual |
Implements ExportOptionsEditor::Listener.
Definition at line 251 of file ExportOptionsHandler.cpp.
References Observer::Publisher< ExportOptionsHandlerEvent >::Publish(), and ExportOptionsHandlerEvent::SampleRateListChange.
|
private |
Definition at line 87 of file ExportOptionsHandler.cpp.
Referenced by ExportOptionsHandler().
|
private |
Definition at line 100 of file ExportOptionsHandler.cpp.
References ExportOption::flags, ExportOption::Hidden, ExportOption::id, mEditor, mIDRowIndexMap, min(), mRows, ExportOption::names, ExportOption::ReadOnly, S, safenew, str, ExportOption::title, ExportOption::TypeEnum, ExportOption::TypeMask, ExportOption::TypeRange, and ExportOption::values.
Referenced by ExportOptionsHandler().
void ExportOptionsHandler::SetParameters | ( | const ExportProcessor::Parameters & | parameters | ) |
Definition at line 71 of file ExportOptionsHandler.cpp.
References mEditor.
bool ExportOptionsHandler::TransferDataFromEditor | ( | ) |
Definition at line 50 of file ExportOptionsHandler.cpp.
|
private |
|
private |
Definition at line 68 of file ExportOptionsHandler.h.
Referenced by ExportOptionsHandler(), GetParameters(), GetSampleRateList(), PopulateOptions(), SetParameters(), and TransferDataFromEditor().
|
private |
Definition at line 70 of file ExportOptionsHandler.h.
Referenced by OnExportOptionChange(), and PopulateOptions().
|
private |
Definition at line 66 of file ExportOptionsHandler.h.
Referenced by ExportOptionsHandler(), OnExportOptionChangeBegin(), and OnExportOptionChangeEnd().
|
private |
Definition at line 69 of file ExportOptionsHandler.h.
Referenced by OnExportOptionChange(), and PopulateOptions().
|
private |
Definition at line 67 of file ExportOptionsHandler.h.
Referenced by OnExportOptionChangeBegin(), and OnExportOptionChangeEnd().