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/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/WaveChannelView.h"
#include <algorithm>
#include "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 (WaveChannel *wc)
 

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 91 of file SpectrumPrefs.cpp.

91 {
92 ID_WINDOW_SIZE = 10001,
99 ID_GAIN,
100 ID_RANGE,
105};
@ 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 ( WaveChannel wc = 0)

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

Definition at line 576 of file SpectrumPrefs.cpp.

577{
578 return [=](wxWindow *parent, wxWindowID winid, AudacityProject *pProject)
579 {
580 wxASSERT(parent); // to justify safenew
581 return safenew SpectrumPrefs(parent, winid, pProject, wc);
582 };
583}
#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:90
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: