Audacity  2.2.0
SpectrumPrefs Class Referencefinal

A PrefsPanel for spectrum settings. More...

#include <SpectrumPrefs.h>

Inheritance diagram for SpectrumPrefs:
PrefsPanel wxTabTraversalWrapper< Base >

Public Member Functions

 SpectrumPrefs (wxWindow *parent, WaveTrack *wt)
 
virtual ~SpectrumPrefs ()
 
void Preview () override
 
bool Commit () override
 
void Rollback ()
 
bool ShowsPreviewButton () override
 
bool Validate () override
 
wxString HelpPageName () override
 
- Public Member Functions inherited from PrefsPanel
 PrefsPanel (wxWindow *parent, const wxString &title)
 
virtual ~PrefsPanel ()
 
virtual void Cancel ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 
 ~wxTabTraversalWrapper ()
 

Private Member Functions

void Populate (size_t windowSize)
 
void PopulatePaddingChoices (size_t windowSize)
 
void PopulateOrExchange (ShuttleGui &S)
 
void OnControl (wxCommandEvent &event)
 
void OnWindowSize (wxCommandEvent &event)
 
void OnDefaults (wxCommandEvent &)
 
void OnAlgorithm (wxCommandEvent &)
 
void EnableDisableSTFTOnlyControls ()
 

Private Attributes

WaveTrack *const mWt
 
bool mDefaulted
 
bool mOrigDefaulted
 
wxTextCtrl * mMinFreq
 
wxTextCtrl * mMaxFreq
 
wxTextCtrl * mGain
 
wxTextCtrl * mRange
 
wxTextCtrl * mFrequencyGain
 
wxArrayString mSizeChoices
 
int mZeroPaddingChoice
 
wxChoice * mZeroPaddingChoiceCtrl
 
wxArrayString mZeroPaddingChoices
 
wxArrayString mTypeChoices
 
wxArrayString mScaleChoices
 
wxChoice * mAlgorithmChoice
 
wxArrayString mAlgorithmChoices
 
wxCheckBox * mDefaultsCheckbox
 
SpectrogramSettings mTempSettings
 
SpectrogramSettings mOrigSettings
 
WaveTrack::WaveTrackDisplay mOrigDisplay
 
float mOrigMin
 
float mOrigMax
 
bool mPopulating
 
bool mCommitted {}
 

Detailed Description

A PrefsPanel for spectrum settings.

Constructor & Destructor Documentation

SpectrumPrefs::~SpectrumPrefs ( )
virtual

References mCommitted, and Rollback().

Member Function Documentation

void SpectrumPrefs::EnableDisableSTFTOnlyControls ( )
private
wxString SpectrumPrefs::HelpPageName ( )
overridevirtual

Reimplemented from PrefsPanel.

void SpectrumPrefs::OnAlgorithm ( wxCommandEvent &  evt)
private
void SpectrumPrefs::OnControl ( wxCommandEvent &  event)
private

References mDefaulted, mDefaultsCheckbox, and mPopulating.

Referenced by OnAlgorithm(), and OnWindowSize().

void SpectrumPrefs::OnWindowSize ( wxCommandEvent &  event)
private
void SpectrumPrefs::PopulatePaddingChoices ( size_t  windowSize)
private
bool SpectrumPrefs::ShowsPreviewButton ( )
overridevirtual

Reimplemented from PrefsPanel.

Member Data Documentation

wxChoice* SpectrumPrefs::mAlgorithmChoice
private
wxArrayString SpectrumPrefs::mAlgorithmChoices
private

Referenced by Populate(), and PopulateOrExchange().

bool SpectrumPrefs::mCommitted {}
private

Referenced by Commit(), and ~SpectrumPrefs().

bool SpectrumPrefs::mDefaulted
private
wxCheckBox* SpectrumPrefs::mDefaultsCheckbox
private
wxTextCtrl* SpectrumPrefs::mFrequencyGain
private
wxTextCtrl* SpectrumPrefs::mGain
private
wxTextCtrl* SpectrumPrefs::mMaxFreq
private

Referenced by PopulateOrExchange(), and Validate().

wxTextCtrl* SpectrumPrefs::mMinFreq
private

Referenced by PopulateOrExchange(), and Validate().

bool SpectrumPrefs::mOrigDefaulted
private

Referenced by Rollback(), and SpectrumPrefs().

WaveTrack::WaveTrackDisplay SpectrumPrefs::mOrigDisplay
private

Referenced by Rollback(), and SpectrumPrefs().

float SpectrumPrefs::mOrigMax
private

Referenced by Rollback(), and SpectrumPrefs().

float SpectrumPrefs::mOrigMin
private

Referenced by Rollback(), and SpectrumPrefs().

SpectrogramSettings SpectrumPrefs::mOrigSettings
private

Referenced by Rollback(), and SpectrumPrefs().

bool SpectrumPrefs::mPopulating
private

Referenced by OnControl(), and PopulateOrExchange().

wxTextCtrl* SpectrumPrefs::mRange
private
wxArrayString SpectrumPrefs::mScaleChoices
private

Referenced by Populate(), and PopulateOrExchange().

wxArrayString SpectrumPrefs::mSizeChoices
private

Referenced by Populate(), and PopulateOrExchange().

SpectrogramSettings SpectrumPrefs::mTempSettings
private
wxArrayString SpectrumPrefs::mTypeChoices
private

Referenced by Populate(), and PopulateOrExchange().

WaveTrack* const SpectrumPrefs::mWt
private
int SpectrumPrefs::mZeroPaddingChoice
private

Referenced by PopulatePaddingChoices().

wxChoice* SpectrumPrefs::mZeroPaddingChoiceCtrl
private
wxArrayString SpectrumPrefs::mZeroPaddingChoices
private

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