Audacity 3.2.0
|
A PrefsPanel for spectrum settings. More...
#include <WaveformPrefs.h>
Public Member Functions | |
WaveformPrefs (wxWindow *parent, wxWindowID winid, AudacityProject *pProject, WaveChannel *wc) | |
virtual | ~WaveformPrefs () |
ComponentInterfaceSymbol | GetSymbol () const override |
TranslatableString | GetDescription () const override |
ManualPageID | HelpPageName () override |
If not empty string, the Help button is added below the panel. More... | |
bool | Commit () override |
bool | ShowsPreviewButton () override |
bool | Validate () override |
void | PopulateOrExchange (ShuttleGui &S) override |
Public Member Functions inherited from PrefsPanel | |
PrefsPanel (wxWindow *parent, wxWindowID winid, const TranslatableString &title) | |
virtual | ~PrefsPanel () |
virtual void | Preview () |
virtual bool | Commit ()=0 |
virtual PluginPath | GetPath () const override |
virtual VendorSymbol | GetVendor () const override |
virtual wxString | GetVersion () const override |
virtual bool | ShowsPreviewButton () |
virtual void | PopulateOrExchange (ShuttleGui &WXUNUSED(S)) |
virtual ManualPageID | HelpPageName () |
If not empty string, the Help button is added below the panel. More... | |
virtual void | Cancel () |
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 | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Member Functions | |
void | Populate () |
void | OnControl (wxCommandEvent &) |
void | OnScale (wxCommandEvent &) |
void | OnDefaults (wxCommandEvent &) |
void | EnableDisableRange () |
Private Attributes | |
AudacityProject * | mProject {} |
WaveChannel *const | mWc |
bool | mDefaulted |
wxCheckBox * | mDefaultsCheckbox |
wxChoice * | mScaleChoice |
wxChoice * | mRangeChoice |
wxArrayStringEx | mRangeCodes |
TranslatableStrings | mRangeChoices |
WaveformSettings | mTempSettings |
bool | mPopulating |
Additional Inherited Members | |
Public Types inherited from PrefsPanel | |
using | Factories = std::vector< PrefsPanel::PrefsNode > |
using | Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > |
Static Public Member Functions inherited from PrefsPanel | |
static Factories & | DefaultFactories () |
A PrefsPanel for spectrum settings.
Definition at line 25 of file WaveformPrefs.h.
WaveformPrefs::WaveformPrefs | ( | wxWindow * | parent, |
wxWindowID | winid, | ||
AudacityProject * | pProject, | ||
WaveChannel * | wc | ||
) |
Definition at line 33 of file WaveformPrefs.cpp.
References WaveformSettings::ConvertToEnumeratedDBRange(), WaveformSettings::defaults(), WaveformSettings::Get(), mDefaulted, mTempSettings, mWc, Populate(), and settings().
|
virtual |
Definition at line 55 of file WaveformPrefs.cpp.
|
overridevirtual |
Implements PrefsPanel.
Definition at line 158 of file WaveformPrefs.cpp.
References WaveformSettings::ConvertToActualDBRange(), WaveformSettings::ConvertToEnumeratedDBRange(), WaveformSettings::defaults(), eIsGettingFromDialog, WaveformSettings::Globals::Get(), TrackPanel::Get(), WaveformSettings::Get(), WaveChannelView::Get(), WaveformSettings::LoadPrefs(), mDefaulted, mProject, mTempSettings, mWc, PopulateOrExchange(), S, WaveformSettings::Globals::SavePrefs(), WaveformSettings::SavePrefs(), WaveformSettings::Set(), WaveChannelView::SetDisplay(), settings(), and WaveChannelViewConstants::Waveform.
|
private |
Definition at line 238 of file WaveformPrefs.cpp.
References mRangeChoice, mScaleChoice, and WaveformSettings::stLogarithmicDb.
Referenced by OnScale(), and PopulateOrExchange().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 64 of file WaveformPrefs.cpp.
References XO().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 59 of file WaveformPrefs.cpp.
References WAVEFORM_PREFS_PLUGIN_SYMBOL.
|
overridevirtual |
If not empty string, the Help button is added below the panel.
Default returns empty string.
Reimplemented from PrefsPanel.
Definition at line 69 of file WaveformPrefs.cpp.
|
private |
Definition at line 206 of file WaveformPrefs.cpp.
References mDefaulted, mDefaultsCheckbox, and mPopulating.
Referenced by OnScale().
|
private |
Definition at line 227 of file WaveformPrefs.cpp.
References WaveformSettings::ConvertToEnumeratedDBRange(), WaveformSettings::defaults(), eIsSettingToDialog, mDefaulted, mDefaultsCheckbox, mTempSettings, PopulateOrExchange(), and S.
|
private |
Definition at line 219 of file WaveformPrefs.cpp.
References EnableDisableRange(), and OnControl().
|
private |
Definition at line 81 of file WaveformPrefs.cpp.
References eIsCreatingFromPrefs, WaveformSettings::GetRangeChoices(), mRangeChoices, mRangeCodes, PopulateOrExchange(), and S.
Referenced by WaveformPrefs().
|
override |
Definition at line 93 of file WaveformPrefs.cpp.
References WaveformSettings::dBRange, EnableDisableRange(), WaveformSettings::GetScaleNames(), ID_DEFAULTS, ID_RANGE, ID_SCALE, mDefaulted, mDefaultsCheckbox, mPopulating, mRangeChoice, mRangeChoices, mScaleChoice, Msgids(), mTempSettings, mWc, S, WaveformSettings::scaleType, XO(), and XXO().
Referenced by Commit(), OnDefaults(), Populate(), and Validate().
|
overridevirtual |
Reimplemented from PrefsPanel.
Definition at line 201 of file WaveformPrefs.cpp.
|
override |
Definition at line 142 of file WaveformPrefs.cpp.
References WaveformSettings::ConvertToActualDBRange(), WaveformSettings::ConvertToEnumeratedDBRange(), eIsGettingFromDialog, mTempSettings, PopulateOrExchange(), S, and WaveformSettings::Validate().
|
private |
Definition at line 53 of file WaveformPrefs.h.
Referenced by Commit(), OnControl(), OnDefaults(), PopulateOrExchange(), and WaveformPrefs().
|
private |
Definition at line 55 of file WaveformPrefs.h.
Referenced by OnControl(), OnDefaults(), and PopulateOrExchange().
|
private |
Definition at line 64 of file WaveformPrefs.h.
Referenced by OnControl(), and PopulateOrExchange().
|
private |
Definition at line 50 of file WaveformPrefs.h.
Referenced by Commit().
|
private |
Definition at line 57 of file WaveformPrefs.h.
Referenced by EnableDisableRange(), and PopulateOrExchange().
|
private |
Definition at line 60 of file WaveformPrefs.h.
Referenced by Populate(), and PopulateOrExchange().
|
private |
Definition at line 59 of file WaveformPrefs.h.
Referenced by Populate().
|
private |
Definition at line 56 of file WaveformPrefs.h.
Referenced by EnableDisableRange(), and PopulateOrExchange().
|
private |
Definition at line 62 of file WaveformPrefs.h.
Referenced by Commit(), OnDefaults(), PopulateOrExchange(), Validate(), and WaveformPrefs().
|
private |
Definition at line 52 of file WaveformPrefs.h.
Referenced by Commit(), PopulateOrExchange(), and WaveformPrefs().