Audacity 3.2.0
Functions | Variables
WaveformVZoomHandle.cpp File Reference
#include "WaveformVZoomHandle.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 "WaveformSettings.h"
#include "prefs/WaveformScale.h"
Include dependency graph for WaveformVZoomHandle.cpp:

Go to the source code of this file.

Functions

 for (int ii=0, nn=names.size();ii< nn;++ii)
 
 BeginSection ("Zoom")
 
 BeginSection ("Basic")
 
 AppendItem ("In", OnZoomInVerticalID, XXO("Zoom In"), POPUP_MENU_FN(OnZoomInVertical))
 
 AppendItem ("Out", OnZoomOutVerticalID, XXO("Zoom Out"), POPUP_MENU_FN(OnZoomOutVertical))
 
 AppendItem ("Reset", OnZoomFitVerticalID, XXO("Reset Zoom"), POPUP_MENU_FN(OnZoomReset))
 
 EndSection ()
 
 BeginSection ("InOut")
 
 AppendItem ("HalfWave", OnZoomHalfWaveID, XXO("Half Wave"), POPUP_MENU_FN(OnZoomHalfWave))
 

Variables

const auto & names = WaveformSettings::GetScaleNames()
 

Function Documentation

◆ AppendItem() [1/4]

AppendItem ( "HalfWave"  ,
OnZoomHalfWaveID  ,
XXO("Half Wave")  ,
POPUP_MENU_FN(OnZoomHalfWave)   
)

◆ 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"  ,
OnZoomFitVerticalID  ,
XXO("Reset Zoom")  ,
POPUP_MENU_FN(OnZoomReset)   
)

◆ BeginSection() [1/3]

BeginSection ( "Basic"  )

◆ BeginSection() [2/3]

BeginSection ( "InOut"  )

◆ BeginSection() [3/3]

BeginSection ( "Zoom"  )

◆ EndSection()

EndSection ( )

◆ for()

for ( int  ii = 0)

Definition at line 235 of file WaveformVZoomHandle.cpp.

235 {
237 OnFirstWaveformScaleID + ii, names[ii].Msgid(),
238 POPUP_MENU_FN( OnWaveformScaleType ),
239 []( PopupMenuHandler &handler, wxMenu &menu, int id ){
240 const auto pData =
241 static_cast< WaveformVRulerMenuTable& >( handler ).mpData;
242 if (id ==
244 static_cast<int>(WaveformSettings::Get(pData->wc).scaleType))
245 menu.Check(id, true);
246 }
247 );
248 }
@ Internal
Indicates internal failure from Audacity.
#define POPUP_MENU_FN(memFn)
@ OnFirstWaveformScaleID
const auto & names
AppendRadioItem("Instrument1", OnInstrument1ID, GetWaveColorStr(0), POPUP_MENU_FN(OnWaveColorChange), fn)
static WaveformSettings & Get(const WaveTrack &track)

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

Here is the call graph for this function:

Variable Documentation

◆ names

const auto& names = WaveformSettings::GetScaleNames()

Definition at line 234 of file WaveformVZoomHandle.cpp.

Referenced by for().