JD2022-TU1/main/tools/framework/JD.Application.TeaBox/View/TrackItems/SongSectionTrackItem.cs

32 lines
No EOL
908 B
C#

using System;
using JD.Application.Properties;
using JD.Application.View.PropertyGrid;
using JD.Audio.Annotations;
using JD.Audio.Sound;
namespace JD.Application.View.TrackItems
{
/// <summary>
/// Representation of the song section as a marker in the wave track.
/// </summary>
public class SongSectionTrackItem : AnnotationTrackItem
{
/// <summary>
/// Constructor.
/// </summary>
public SongSectionTrackItem(SongSection section, global::JD.Sequencers.Times.Timeline timeline)
: base(section, timeline, ResourcesCache.Icons_16x16_Marker)
{
}
public override SnappingUnit SnappingUnit
{
get { return SnappingUnit.Measure; }
}
public override object ToGridView(Wave parentWave)
{
return new SongSectionGridView((SongSection)Model, parentWave);
}
}
}