Audacity 3.2.0
Functions | Variables
SpectrumVZoomHandle.cpp File Reference
#include "SpectrumVZoomHandle.h"
#include "WaveChannelVZoomHandle.h"
#include "../../../../HitTestResult.h"
#include "NumberScale.h"
#include "Prefs.h"
#include "ProjectHistory.h"
#include "../../../../RefreshCode.h"
#include "../../../../TrackPanelMouseEvent.h"
#include "WaveTrack.h"
#include "SpectrogramSettings.h"
Include dependency graph for SpectrumVZoomHandle.cpp:

Go to the source code of this file.

Functions

 for (int ii=0, nn=names.size();ii< nn;++ii)
 
 BeginSection ("Zoom")
 
 AppendItem ("In", OnZoomInVerticalID, XXO("Zoom In"), POPUP_MENU_FN(OnZoomInVertical))
 
 AppendItem ("Out", OnZoomOutVerticalID, XXO("Zoom Out"), POPUP_MENU_FN(OnZoomOutVertical))
 
 AppendItem ("Fit", OnZoomFitVerticalID, XXO("Zoom to Fit"), POPUP_MENU_FN(OnZoomFitVertical))
 
 AppendItem ("Reset", OnZoomResetID, XXO("Reset Zoom"), POPUP_MENU_FN(OnZoomReset))
 
 EndSection ()
 

Variables

const auto & names = SpectrogramSettings::GetScaleNames()
 

Function Documentation

◆ AppendItem() [1/4]

AppendItem ( "Fit"  ,
OnZoomFitVerticalID  ,
XXO("Zoom to Fit")  ,
POPUP_MENU_FN(OnZoomFitVertical)   
)

◆ AppendItem() [2/4]

AppendItem ( "In"  ,
OnZoomInVerticalID  ,
XXO("Zoom In")  ,
POPUP_MENU_FN(OnZoomInVertical)   
)

◆ AppendItem() [3/4]

AppendItem ( "Out"  ,
OnZoomOutVerticalID  ,
XXO("Zoom Out")  ,
POPUP_MENU_FN(OnZoomOutVertical)   
)

◆ AppendItem() [4/4]

AppendItem ( "Reset"  ,
OnZoomResetID  ,
XXO("Reset Zoom")  ,
POPUP_MENU_FN(OnZoomReset)   
)

◆ BeginSection()

BeginSection ( "Zoom"  )

◆ EndSection()

EndSection ( )

◆ for()

for ( int  ii = 0)

Definition at line 283 of file SpectrumVZoomHandle.cpp.

283 {
285 OnFirstSpectrumScaleID + ii, names[ii].Msgid(),
286 POPUP_MENU_FN( OnSpectrumScaleType ),
287 []( PopupMenuHandler &handler, wxMenu &menu, int id ){
288 auto &wc =
289 static_cast<SpectrumVRulerMenuTable&>(handler)
290 .mpData->wc;
291 if ( id ==
293 static_cast<int>(SpectrogramSettings::Get(wc).scaleType))
294 menu.Check(id, true);
295 }
296 );
297 }
@ Internal
Indicates internal failure from Audacity.
#define POPUP_MENU_FN(memFn)
const auto & names
@ OnFirstSpectrumScaleID
AppendRadioItem("Instrument1", OnInstrument1ID, GetWaveColorStr(0), POPUP_MENU_FN(OnWaveColorChange), fn)
static SpectrogramSettings & Get(const WaveTrack &track)

References AppendRadioItem(), SpectrogramSettings::Get(), audacity::cloud::audiocom::anonymous_namespace{AuthorizationHandler.cpp}::handler, Internal, names, OnFirstSpectrumScaleID, and POPUP_MENU_FN.

Referenced by RealtimeEffectPanel::RealtimeEffectPanel(), VSTInstance::RealtimeFinalize(), AudioUnitInstance::Render(), GetInfoCommand::SendEnvelopes(), and TEST_CASE().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ names

const auto& names = SpectrogramSettings::GetScaleNames()

Definition at line 282 of file SpectrumVZoomHandle.cpp.

Referenced by for().