MCPcopy Create free account
hub / github.com/audacity/audacity / ApplyInner

Method ApplyInner

src/commands/SetTrackInfoCommand.cpp:106–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106bool SetTrackStatusCommand::ApplyInner(const CommandContext & context, Track &t)
107{
108 //auto wt = dynamic_cast<WaveTrack *>(t);
109 //auto pt = dynamic_cast<PlayableTrack *>(t);
110
111 if (bHasTrackName)
112 t.SetName(mTrackName);
113
114 if (bHasSelected)
115 t.SetSelected(bSelected);
116
117 if (bHasFocused) {
118 auto &trackFocus = TrackFocus::Get(context.project);
119 if (bFocused)
120 trackFocus.Set(&t);
121 else if (&t == trackFocus.Get())
122 trackFocus.Set(nullptr);
123 }
124 return true;
125}
126
127
128

Callers

nothing calls this directly

Calls 15

GetFunction · 0.85
AllFunction · 0.85
SetVolumeMethod · 0.80
SetPanMethod · 0.80
SetSoloMethod · 0.80
SetMuteMethod · 0.80
ChannelsMethod · 0.80
SetExpandedHeightMethod · 0.80
SetDisplayMethod · 0.80
UpdateVRulersMethod · 0.80
DefaultFunction · 0.50
swapFunction · 0.50

Tested by

no test coverage detected