Audacity 3.2.0
|
#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"
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 |
Definition at line 223 of file TimeTrackControls.cpp.
Definition at line 232 of file TimeTrackControls.cpp.
anonymous enum |
Enumerator | |
---|---|
OnTimeTrackLinID | |
OnTimeTrackLogID | |
OnTimeTrackLogIntID | |
OnSetTimeTrackRangeID |
Definition at line 37 of file TimeTrackControls.cpp.
AppendCheckItem | ( | "LogInterp" | , |
OnTimeTrackLogIntID | , | ||
XXO("Logarithmic &Interpolation") | , | ||
POPUP_MENU_FN(OnTimeTrackLogInt) | , | ||
[] (PopupMenuHandler &handler, wxMenu &menu, int id){ menu.Check(id, findTrack(handler).GetInterpolateLog());} | |||
) |
AppendItem | ( | "Range" | , |
OnSetTimeTrackRangeID | , | ||
XXO("&Range...") | , | ||
POPUP_MENU_FN(OnSetTimeTrackRange) | |||
) |
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());} | |||
) |
BeginSection | ( | "Other" | ) |
BeginSection | ( | "Scales" | ) |
DEFINE_ATTACHED_VIRTUAL_OVERRIDE | ( | DoGetTimeTrackControls | ) |
Definition at line 224 of file TimeTrackControls.cpp.
EndSection | ( | ) |
|
static |
Definition at line 187 of file TimeTrackControls.cpp.
Referenced by AppendCheckItem(), and AppendRadioItem().