1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-18 16:41:14 +02:00

Lifted code that draws multi-tool sliders -- it's per track, not clip

This commit is contained in:
unknown
2015-06-01 18:45:08 -04:00
parent 29fb5a2ffe
commit 8aea663882
2 changed files with 7 additions and 8 deletions

View File

@@ -1448,7 +1448,7 @@ void TrackArtist::DrawWaveform(WaveTrack *track,
for (WaveClipList::compatibility_iterator it = track->GetClipIterator(); it; it = it->GetNext())
DrawClipWaveform(track, it->GetData(), dc, r, viewInfo,
drawEnvelope, drawSamples, drawSliders,
drawEnvelope, drawSamples,
dB, muted);
// Update cache for locations, e.g. cutlines and merge points
@@ -1471,6 +1471,11 @@ void TrackArtist::DrawWaveform(WaveTrack *track,
AColor::Line(dc, (int) (r.x + x + 1), r.y, (int) (r.x + x + 1), r.y + r.height);
}
}
if (drawSliders) {
DrawTimeSlider(track, dc, r, viewInfo, true); // directed right
DrawTimeSlider(track, dc, r, viewInfo, false); // directed left
}
}
@@ -1617,7 +1622,6 @@ void TrackArtist::DrawClipWaveform(WaveTrack *track,
const ViewInfo *viewInfo,
bool drawEnvelope,
bool drawSamples,
bool drawSliders,
bool dB,
bool muted)
{
@@ -1714,11 +1718,6 @@ void TrackArtist::DrawClipWaveform(WaveTrack *track,
DrawNegativeOffsetTrackArrows(dc, r);
}
if (drawSliders) {
DrawTimeSlider(track, dc, r, viewInfo, true); // directed right
DrawTimeSlider(track, dc, r, viewInfo, false); // directed left
}
// Draw clip edges
dc.SetPen(*wxGREY_PEN);
if (tpre < 0) {

View File

@@ -140,7 +140,7 @@ class AUDACITY_DLL_API TrackArtist {
void DrawClipWaveform(WaveTrack *track, WaveClip *clip,
wxDC & dc, const wxRect & r, const ViewInfo *viewInfo,
bool drawEnvelope, bool drawSamples, bool drawSliders,
bool drawEnvelope, bool drawSamples,
bool dB, bool muted);
void DrawClipSpectrum(WaveTrackCache &cache, WaveClip *clip,