/// <summary> /// Creates a waveform view of the <code>Audio</code> that is associated scaled to the timeinfo. /// </summary> /// <param name="timeinfo"></param> public Waveform(TimeInfo timeinfo) : base(timeinfo) { samples = new SampleAggregator(); BackColor = Color.Gray; Visible = false; _timeLineGlobalEventManager = TimeLineGlobalEventManager.Manager; _timeLineGlobalEventManager.AlignmentActivity += WaveFormSelectedTimeLineGlobalMove; }
/// <inheritdoc /> public MarksBar(TimeInfo timeinfo) : base(timeinfo) { BackColor = Color.Gray; _marksSelectionManager = MarksSelectionManager.Manager(); _timeLineGlobalEventManager = TimeLineGlobalEventManager.Manager; _timeLineGlobalEventManager.MarksMoving += TimeLineGlobalEventManagerTimeLineGlobalMoving; _timeLineGlobalEventManager.DeleteMark += TimeLineGlobalEventManagerDeleteTimeLineGlobal; _marksSelectionManager.SelectionChanged += _marksSelectionManager_SelectionChanged; _rows = new List <MarkRow>(); MarkRow.MarkRowChanged += MarkRow_MarkRowChanged; }
public Ruler(TimeInfo timeinfo) : base(timeinfo) { AutoScaleMode = AutoScaleMode.Font; BackColor = Color.Gray; _marksSelectionManager = MarksSelectionManager.Manager(); _timeLineGlobalEventManager = TimeLineGlobalEventManager.Manager; _timeLineGlobalEventManager.MarksMoving += TimeLineGlobalEventManagerTimeLineGlobalMoving; _timeLineGlobalEventManager.DeleteMark += TimeLineGlobalEventManagerDeleteTimeLineGlobal; _marksSelectionManager.SelectionChanged += _marksSelectionManager_SelectionChanged; recalculate(); double factor = ScalingTools.GetScaleFactor(); _arrowBase = (int) (16 * factor); _arrowLength = (int)(10 * factor); }