Audacity 3.2.0
Namespaces | Enumerations | Functions | Variables
SpectrumPrefs.cpp File Reference
#include "SpectrumPrefs.h"
#include <wx/choice.h>
#include <wx/defs.h>
#include <wx/intl.h>
#include <wx/checkbox.h>
#include <wx/textctrl.h>
#include "FFT.h"
#include "Project.h"
#include "../ShuttleGui.h"
#include "../TrackPanel.h"
#include "../WaveTrack.h"
#include "../tracks/playabletrack/wavetrack/ui/WaveTrackView.h"
#include <algorithm>
#include "../widgets/AudacityMessageBox.h"
Include dependency graph for SpectrumPrefs.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{SpectrumPrefs.cpp}
 

Enumerations

enum  {
  ID_WINDOW_SIZE = 10001 , ID_WINDOW_TYPE , ID_PADDING_SIZE , ID_SCALE ,
  ID_ALGORITHM , ID_MINIMUM , ID_MAXIMUM , ID_GAIN ,
  ID_RANGE , ID_FREQUENCY_GAIN , ID_COLOR_SCHEME , ID_SPECTRAL_SELECTION ,
  ID_DEFAULTS
}
 

Functions

PrefsPanel::Factory SpectrumPrefsFactory (WaveTrack *wt)
 

Variables

PrefsPanel::Registration anonymous_namespace{SpectrumPrefs.cpp}::sAttachment
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_WINDOW_SIZE 
ID_WINDOW_TYPE 
ID_PADDING_SIZE 
ID_SCALE 
ID_ALGORITHM 
ID_MINIMUM 
ID_MAXIMUM 
ID_GAIN 
ID_RANGE 
ID_FREQUENCY_GAIN 
ID_COLOR_SCHEME 
ID_SPECTRAL_SELECTION 
ID_DEFAULTS 

Definition at line 92 of file SpectrumPrefs.cpp.

92 {
93 ID_WINDOW_SIZE = 10001,
100 ID_GAIN,
101 ID_RANGE,
106};
@ ID_FREQUENCY_GAIN
@ ID_SCALE
@ ID_COLOR_SCHEME
@ ID_PADDING_SIZE
@ ID_WINDOW_TYPE
@ ID_DEFAULTS
@ ID_RANGE
@ ID_GAIN
@ ID_ALGORITHM
@ ID_MAXIMUM
@ ID_SPECTRAL_SELECTION
@ ID_MINIMUM
@ ID_WINDOW_SIZE

Function Documentation

◆ SpectrumPrefsFactory()

PrefsPanel::Factory SpectrumPrefsFactory ( WaveTrack wt = 0)

A PrefsPanel::Factory that creates one SpectrumPrefs panel. This factory can be parametrized by a single track, to change settings non-globally

Definition at line 587 of file SpectrumPrefs.cpp.

588{
589 return [=](wxWindow *parent, wxWindowID winid, AudacityProject *pProject)
590 {
591 wxASSERT(parent); // to justify safenew
592 return safenew SpectrumPrefs(parent, winid, pProject, wt);
593 };
594}
#define safenew
Definition: MemoryX.h:10
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:89
A PrefsPanel for spectrum settings.
Definition: SpectrumPrefs.h:42

References safenew.

Referenced by anonymous_namespace{SpectrumView.cpp}::SpectrogramSettingsHandler::OnSpectrogramSettings().

Here is the caller graph for this function: