Audacity 3.2.0
Typedefs | Enumerations | Functions | Variables
TimeTrackControls.cpp File Reference
#include "TimeTrackControls.h"
#include "../../../HitTestResult.h"
#include "Project.h"
#include "ProjectHistory.h"
#include "../../../RefreshCode.h"
#include "TimeTrack.h"
#include "../../../widgets/PopupMenuTable.h"
#include <wx/numdlg.h>
#include "ShuttleGui.h"
#include "wxPanelWrapper.h"
#include <wx/spinctrl.h>
#include "AudacityMessageBox.h"
#include "../../ui/ChannelView.h"
Include dependency graph for TimeTrackControls.cpp:

Go to the source code of this file.

Typedefs

using DoGetTimeTrackControls = DoGetControls::Override< TimeTrack >
 
using GetDefaultTimeTrackHeight = GetDefaultTrackHeight::Override< TimeTrack >
 

Enumerations

enum  { OnTimeTrackLinID = 30000 , OnTimeTrackLogID , OnTimeTrackLogIntID , OnSetTimeTrackRangeID }
 

Functions

 BeginSection ("Scales")
 
 AppendRadioItem ("Linear", OnTimeTrackLinID, XXO("&Linear scale"), POPUP_MENU_FN(OnTimeTrackLin), [](PopupMenuHandler &handler, wxMenu &menu, int id){ menu.Check(id, !findTrack(handler).GetDisplayLog());})
 
 AppendRadioItem ("Log", OnTimeTrackLogID, XXO("L&ogarithmic scale"), POPUP_MENU_FN(OnTimeTrackLog), [](PopupMenuHandler &handler, wxMenu &menu, int id){ menu.Check(id, findTrack(handler).GetDisplayLog());})
 
 EndSection ()
 
 BeginSection ("Other")
 
 AppendItem ("Range", OnSetTimeTrackRangeID, XXO("&Range..."), POPUP_MENU_FN(OnSetTimeTrackRange))
 
 AppendCheckItem ("LogInterp", OnTimeTrackLogIntID, XXO("Logarithmic &Interpolation"), POPUP_MENU_FN(OnTimeTrackLogInt), [](PopupMenuHandler &handler, wxMenu &menu, int id){ menu.Check(id, findTrack(handler).GetInterpolateLog());})
 
 DEFINE_ATTACHED_VIRTUAL_OVERRIDE (DoGetTimeTrackControls)
 

Variables

static const auto findTrack
 

Typedef Documentation

◆ DoGetTimeTrackControls

Definition at line 223 of file TimeTrackControls.cpp.

◆ GetDefaultTimeTrackHeight

Definition at line 232 of file TimeTrackControls.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OnTimeTrackLinID 
OnTimeTrackLogID 
OnTimeTrackLogIntID 
OnSetTimeTrackRangeID 

Definition at line 37 of file TimeTrackControls.cpp.

38{
39 OnTimeTrackLinID = 30000,
43};
@ OnTimeTrackLogIntID
@ OnTimeTrackLinID
@ OnTimeTrackLogID
@ OnSetTimeTrackRangeID

Function Documentation

◆ AppendCheckItem()

AppendCheckItem ( "LogInterp"  ,
OnTimeTrackLogIntID  ,
XXO("Logarithmic &Interpolation")  ,
POPUP_MENU_FN(OnTimeTrackLogInt)  ,
[] (PopupMenuHandler &handler, wxMenu &menu, int id){ menu.Check(id, findTrack(handler).GetInterpolateLog());}   
)

◆ AppendItem()

AppendItem ( "Range"  ,
OnSetTimeTrackRangeID  ,
XXO("&Range...")  ,
POPUP_MENU_FN(OnSetTimeTrackRange)   
)

◆ AppendRadioItem() [1/2]

AppendRadioItem ( "Linear"  ,
OnTimeTrackLinID  ,
XXO("&Linear scale")  ,
POPUP_MENU_FN(OnTimeTrackLin)  ,
[] (PopupMenuHandler &handler, wxMenu &menu, int id){ menu.Check(id, !findTrack(handler).GetDisplayLog());}   
)

◆ AppendRadioItem() [2/2]

AppendRadioItem ( "Log"  ,
OnTimeTrackLogID  ,
XXO("L&ogarithmic scale")  ,
POPUP_MENU_FN(OnTimeTrackLog)  ,
[] (PopupMenuHandler &handler, wxMenu &menu, int id){ menu.Check(id, findTrack(handler).GetDisplayLog());}   
)

◆ BeginSection() [1/2]

BeginSection ( "Other"  )

◆ BeginSection() [2/2]

BeginSection ( "Scales"  )

◆ DEFINE_ATTACHED_VIRTUAL_OVERRIDE()

DEFINE_ATTACHED_VIRTUAL_OVERRIDE ( DoGetTimeTrackControls  )

Definition at line 224 of file TimeTrackControls.cpp.

224 {
225 return [](TimeTrack &track) {
226 return std::make_shared<TimeTrackControls>( track.SharedPointer() );
227 };
228}
A kind of Track used to 'warp time'.
Definition: TimeTrack.h:24

◆ EndSection()

EndSection ( )

Variable Documentation

◆ findTrack

const auto findTrack
static
Initial value:

Definition at line 187 of file TimeTrackControls.cpp.

Referenced by AppendCheckItem(), and AppendRadioItem().