![]() |
Audacity 3.2.0
|
Displays a spectrum plot of the waveform. Has options for selecting parameters of the plot. More...
#include <FreqWindow.h>
Public Member Functions | |
FrequencyPlotDialog (wxWindow *parent, wxWindowID id, AudacityProject &project, const TranslatableString &title, const wxPoint &pos) | |
virtual | ~FrequencyPlotDialog () |
bool | Show (bool show=true) override |
![]() | |
wxDialogWrapper () | |
wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
void | SetTitle (const TranslatableString &title) |
void | SetLabel (const TranslatableString &title) |
void | SetName (const TranslatableString &title) |
void | SetName () |
![]() | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
![]() | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
Private Member Functions | |
void | Populate () |
bool | GetAudio () |
void | PlotMouseEvent (wxMouseEvent &event) |
void | PlotPaint (wxPaintEvent &event) |
void | OnCloseWindow (wxCloseEvent &event) |
void | OnCloseButton (wxCommandEvent &event) |
void | OnGetURL (wxCommandEvent &event) |
void | OnSize (wxSizeEvent &event) |
void | OnPanScroller (wxScrollEvent &event) |
void | OnZoomSlider (wxCommandEvent &event) |
void | OnAlgChoice (wxCommandEvent &event) |
void | OnSizeChoice (wxCommandEvent &event) |
void | OnFuncChoice (wxCommandEvent &event) |
void | OnAxisChoice (wxCommandEvent &event) |
void | OnExport (wxCommandEvent &event) |
void | OnReplot (wxCommandEvent &event) |
void | OnGridOnOff (wxCommandEvent &event) |
void | OnRecalc (wxCommandEvent &event) |
void | SendRecalcEvent () |
void | Recalc () |
void | DrawPlot () |
void | DrawBackground (wxMemoryDC &dc) |
void | UpdatePrefs () override |
Private Attributes | |
bool | mDrawGrid |
int | mSize |
SpectrumAnalyst::Algorithm | mAlg |
int | mFunc |
int | mAxis |
int | dBRange |
AudacityProject * | mProject |
RulerPanel * | vRuler |
RulerPanel * | hRuler |
FreqPlot * | mFreqPlot |
FreqGauge * | mProgress |
wxRect | mPlotRect |
wxFont | mFreqFont |
std::unique_ptr< wxCursor > | mArrowCursor |
std::unique_ptr< wxCursor > | mCrossCursor |
wxButton * | mCloseButton |
wxButton * | mExportButton |
wxButton * | mReplotButton |
wxCheckBox * | mGridOnOff |
wxChoice * | mAlgChoice |
wxChoice * | mSizeChoice |
wxChoice * | mFuncChoice |
wxChoice * | mAxisChoice |
wxScrollBar * | mPanScroller |
wxSlider * | mZoomSlider |
wxTextCtrl * | mCursorText |
wxTextCtrl * | mPeakText |
double | mRate |
size_t | mDataLen |
Floats | mData |
size_t | mWindowSize |
bool | mLogAxis |
float | mYMin |
float | mYMax |
float | mYStep |
std::unique_ptr< wxBitmap > | mBitmap |
int | mMouseX |
int | mMouseY |
std::unique_ptr< SpectrumAnalyst > | mAnalyst |
Static Private Attributes | |
static const int | fontSize = 8 |
Friends | |
class | FreqPlot |
Additional Inherited Members | |
![]() | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
![]() | |
virtual void | UpdateSelectedPrefs (int id) |
Displays a spectrum plot of the waveform. Has options for selecting parameters of the plot.
Has a feature that finds peaks and reports their value as you move the mouse around.
Definition at line 56 of file FreqWindow.h.
FrequencyPlotDialog::FrequencyPlotDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
AudacityProject & | project, | ||
const TranslatableString & | title, | ||
const wxPoint & | pos | ||
) |
Definition at line 187 of file FreqWindow.cpp.
References project.
|
virtual |
Definition at line 216 of file FreqWindow.cpp.
|
private |
Definition at line 675 of file FreqWindow.cpp.
References mBitmap, mFreqFont, mFreqPlot, and mPlotRect.
Referenced by DrawPlot().
|
private |
Definition at line 697 of file FreqWindow.cpp.
References _, ThemeBase::Colour(), dBRange, DrawBackground(), Ruler::DrawGrid(), Ruler::GetMaxSize(), hRuler, LinearDBFormat::Instance(), LinearUpdater::Instance(), LogarithmicUpdater::Instance(), AColor::Line(), RealFormat::LinearInstance(), mAlg, mAnalyst, mData, mDataLen, mDrawGrid, mFreqPlot, mLogAxis, mPanScroller, mPlotRect, mRate, mWindowSize, mYMax, mYMin, mZoomSlider, RulerPanel::ruler, Ruler::SetFormat(), Ruler::SetRange(), Ruler::SetUnits(), Ruler::SetUpdater(), SpectrumAnalyst::Spectrum, theTheme, vRuler, and XO().
Referenced by OnAxisChoice(), OnGridOnOff(), OnPanScroller(), OnSize(), OnZoomSlider(), and Recalc().
|
private |
Definition at line 585 of file FreqWindow.cpp.
References AudacityMessageBox(), BasicUI::MessageBoxOptions::Caption(), PackedArray::end(), fillZero, ViewInfo::Get(), TrackList::Get(), anonymous_namespace{StretchingSequenceIntegrationTest.cpp}::iChannel, mData, mDataLen, mRate, TrackList::Selected(), ViewInfo::selectedRegion, BasicUI::ShowMessageBox(), and XO().
Referenced by OnReplot(), and Show().
|
private |
Definition at line 874 of file FreqWindow.cpp.
References mAlg, mAlgChoice, mAxisChoice, mLogAxis, SendRecalcEvent(), and SpectrumAnalyst::Spectrum.
|
private |
Definition at line 905 of file FreqWindow.cpp.
References DrawPlot(), mAxisChoice, and mLogAxis.
|
private |
Definition at line 1019 of file FreqWindow.cpp.
References audacity::BasicSettings::Flush(), gPrefs, mAlgChoice, mAxisChoice, mData, mDrawGrid, mFuncChoice, mSizeChoice, Show(), audacity::BasicSettings::Write(), and wxT().
|
private |
Definition at line 1014 of file FreqWindow.cpp.
References Show().
|
private |
Definition at line 1082 of file FreqWindow.cpp.
References _, FileNames::AllFiles, AudacityMessageBox(), mAlgChoice, mAnalyst, mRate, mWindowSize, SelectFile(), FileNames::TextFiles, wxT(), and XO().
|
private |
Definition at line 900 of file FreqWindow.cpp.
References SendRecalcEvent().
|
private |
Definition at line 551 of file FreqWindow.cpp.
References HelpSystem::ShowHelp().
|
private |
Definition at line 1135 of file FreqWindow.cpp.
References DrawPlot(), mDrawGrid, and mGridOnOff.
|
private |
Definition at line 864 of file FreqWindow.cpp.
References DrawPlot().
|
private |
Definition at line 1142 of file FreqWindow.cpp.
References Recalc().
|
private |
Definition at line 1126 of file FreqWindow.cpp.
References dBRange, DecibelScaleCutoff, GetAudio(), Setting< T >::Read(), and SendRecalcEvent().
|
private |
Definition at line 666 of file FreqWindow.cpp.
References DrawPlot().
|
private |
Definition at line 891 of file FreqWindow.cpp.
References mSizeChoice, mWindowSize, and SendRecalcEvent().
|
private |
Definition at line 869 of file FreqWindow.cpp.
References DrawPlot().
|
private |
Definition at line 849 of file FreqWindow.cpp.
References mArrowCursor, mCrossCursor, mFreqPlot, mMouseX, mMouseY, and mPlotRect.
Referenced by FreqPlot::OnMouseEvent().
|
private |
Definition at line 911 of file FreqWindow.cpp.
References FreqToMIDInote(), AColor::Line(), mAlg, mAnalyst, mBitmap, mCursorText, mData, mDataLen, mFreqFont, mLogAxis, mMouseX, mMouseY, mPeakText, mPlotRect, mRate, mWindowSize, PitchName_Absolute(), SpectrumAnalyst::Spectrum, TranslatableString::Translation(), wxT(), and XO().
Referenced by FreqPlot::OnPaint().
|
private |
Definition at line 220 of file FreqWindow.cpp.
References ThemeBase::Colour(), dBRange, DecibelScaleCutoff, eCloseButton, eHelpButton, eIsCreating, fontSize, FREQ_WINDOW_HEIGHT, FreqAlgChoiceID, FreqAxisChoiceID, FreqExportButtonID, FreqFuncChoiceID, FreqPanScrollerID, FreqPlot, FreqSizeChoiceID, FrequencyAnalysisTitle, FreqZoomSliderID, GridOnOffID, hRuler, LinearDBFormat::Instance(), RulerPanel::Options::LabelEdges(), RealFormat::LinearInstance(), RulerPanel::Options::Log(), mAlg, mAlgChoice, mArrowCursor, mAxis, mAxisChoice, mCloseButton, mCrossCursor, mCursorText, mDrawGrid, mExportButton, mFreqFont, mFreqPlot, mFunc, mFuncChoice, mGridOnOff, mLogAxis, mPanScroller, mPeakText, mProgress, mReplotButton, mSize, mSizeChoice, mWindowSize, mZoomSlider, NumWindowFuncs(), Setting< T >::Read(), ReplotButtonID, S, safenew, wxDialogWrapper::SetTitle(), size, SpectrumAnalyst::Spectrum, theTheme, Verbatim(), vRuler, WindowFuncName(), wxT(), XO(), XXO(), ZoomIn, and ZoomOut.
Referenced by UpdatePrefs().
|
private |
Definition at line 1037 of file FreqWindow.cpp.
References dBRange, DrawPlot(), BasicUI::FindFocus(), mAlgChoice, mAnalyst, mData, mDataLen, mFuncChoice, mPanScroller, mProgress, mRate, mWindowSize, mYMax, mYMin, and SpectrumAnalyst::Spectrum.
Referenced by OnRecalc(), and Show().
|
private |
Definition at line 1031 of file FreqWindow.cpp.
Referenced by OnAlgChoice(), OnFuncChoice(), OnReplot(), and OnSizeChoice().
|
override |
Definition at line 558 of file FreqWindow.cpp.
References dBRange, DecibelScaleCutoff, GetAudio(), mArrowCursor, mFreqPlot, Setting< T >::Read(), Recalc(), and ExportProgressUI::Show().
Referenced by OnCloseButton(), OnCloseWindow(), anonymous_namespace{FreqWindow.cpp}::OnPlotSpectrum(), and UpdatePrefs().
|
overrideprivatevirtual |
Implements PrefsListener.
Definition at line 1147 of file FreqWindow.cpp.
References mAlg, mAlgChoice, mAxis, mAxisChoice, mDrawGrid, mFunc, mFuncChoice, mGridOnOff, mSizeChoice, mWindowSize, mZoomSlider, Populate(), and Show().
|
friend |
Definition at line 158 of file FreqWindow.h.
Referenced by Populate().
|
private |
Definition at line 104 of file FreqWindow.h.
Referenced by DrawPlot(), OnReplot(), Populate(), Recalc(), and Show().
|
staticprivate |
Definition at line 108 of file FreqWindow.h.
Referenced by Populate().
|
private |
Definition at line 114 of file FreqWindow.h.
Referenced by DrawPlot(), and Populate().
|
private |
Definition at line 101 of file FreqWindow.h.
Referenced by DrawPlot(), OnAlgChoice(), PlotPaint(), Populate(), and UpdatePrefs().
|
private |
Definition at line 129 of file FreqWindow.h.
Referenced by OnAlgChoice(), OnCloseButton(), OnExport(), Populate(), Recalc(), and UpdatePrefs().
|
private |
Definition at line 154 of file FreqWindow.h.
Referenced by DrawPlot(), OnExport(), PlotPaint(), and Recalc().
|
private |
Definition at line 122 of file FreqWindow.h.
Referenced by PlotMouseEvent(), Populate(), and Show().
|
private |
Definition at line 103 of file FreqWindow.h.
Referenced by Populate(), and UpdatePrefs().
|
private |
Definition at line 132 of file FreqWindow.h.
Referenced by OnAlgChoice(), OnAxisChoice(), OnCloseButton(), Populate(), and UpdatePrefs().
|
private |
Definition at line 149 of file FreqWindow.h.
Referenced by DrawBackground(), and PlotPaint().
|
private |
Definition at line 125 of file FreqWindow.h.
Referenced by Populate().
|
private |
Definition at line 123 of file FreqWindow.h.
Referenced by PlotMouseEvent(), and Populate().
|
private |
Definition at line 135 of file FreqWindow.h.
Referenced by PlotPaint(), and Populate().
|
private |
Definition at line 141 of file FreqWindow.h.
Referenced by DrawPlot(), GetAudio(), OnCloseButton(), PlotPaint(), and Recalc().
|
private |
Definition at line 140 of file FreqWindow.h.
Referenced by DrawPlot(), GetAudio(), PlotPaint(), and Recalc().
|
private |
Definition at line 99 of file FreqWindow.h.
Referenced by DrawPlot(), OnCloseButton(), OnGridOnOff(), Populate(), and UpdatePrefs().
|
private |
Definition at line 126 of file FreqWindow.h.
Referenced by Populate().
|
private |
Definition at line 120 of file FreqWindow.h.
Referenced by DrawBackground(), PlotPaint(), and Populate().
|
private |
Definition at line 115 of file FreqWindow.h.
Referenced by DrawBackground(), DrawPlot(), PlotMouseEvent(), Populate(), and Show().
|
private |
Definition at line 102 of file FreqWindow.h.
Referenced by Populate(), and UpdatePrefs().
|
private |
Definition at line 131 of file FreqWindow.h.
Referenced by OnCloseButton(), Populate(), Recalc(), and UpdatePrefs().
|
private |
Definition at line 128 of file FreqWindow.h.
Referenced by OnGridOnOff(), Populate(), and UpdatePrefs().
|
private |
Definition at line 144 of file FreqWindow.h.
Referenced by DrawPlot(), OnAlgChoice(), OnAxisChoice(), PlotPaint(), and Populate().
|
private |
Definition at line 151 of file FreqWindow.h.
Referenced by PlotMouseEvent(), and PlotPaint().
|
private |
Definition at line 152 of file FreqWindow.h.
Referenced by PlotMouseEvent(), and PlotPaint().
|
private |
Definition at line 133 of file FreqWindow.h.
Referenced by DrawPlot(), Populate(), and Recalc().
|
private |
Definition at line 136 of file FreqWindow.h.
Referenced by PlotPaint(), and Populate().
|
private |
Definition at line 118 of file FreqWindow.h.
Referenced by DrawBackground(), DrawPlot(), PlotMouseEvent(), and PlotPaint().
|
private |
Definition at line 116 of file FreqWindow.h.
Referenced by Populate(), and Recalc().
|
private |
Definition at line 105 of file FreqWindow.h.
|
private |
Definition at line 139 of file FreqWindow.h.
Referenced by DrawPlot(), GetAudio(), OnExport(), PlotPaint(), and Recalc().
|
private |
Definition at line 127 of file FreqWindow.h.
Referenced by Populate().
|
private |
Definition at line 100 of file FreqWindow.h.
Referenced by Populate().
|
private |
Definition at line 130 of file FreqWindow.h.
Referenced by OnCloseButton(), OnSizeChoice(), Populate(), and UpdatePrefs().
|
private |
Definition at line 142 of file FreqWindow.h.
Referenced by DrawPlot(), OnExport(), OnSizeChoice(), PlotPaint(), Populate(), Recalc(), and UpdatePrefs().
|
private |
Definition at line 146 of file FreqWindow.h.
Referenced by DrawPlot(), and Recalc().
|
private |
Definition at line 145 of file FreqWindow.h.
Referenced by DrawPlot(), and Recalc().
|
private |
Definition at line 147 of file FreqWindow.h.
|
private |
Definition at line 134 of file FreqWindow.h.
Referenced by DrawPlot(), Populate(), and UpdatePrefs().
|
private |
Definition at line 113 of file FreqWindow.h.
Referenced by DrawPlot(), and Populate().