public TimelineMarker(TimelineView timelineView, ScrollView scrollView) { this.widget = scrollView.createWidgetT("Widget", "TimelineMarker", 1, 0, 2, (int)scrollView.CanvasSize.Height, Align.Left | Align.Top, ""); widget.Pointer = "size_horz"; widget.MouseDrag += new MyGUIEvent(widget_MouseDrag); widget.MouseButtonPressed += new MyGUIEvent(widget_MouseButtonPressed); this.timelineView = timelineView; pixelsPerSecond = timelineView.PixelsPerSecond; timelineView.CanvasHeightChanged += new CanvasSizeChanged(timelineView_CanvasHeightChanged); timelineView.PixelsPerSecondChanged += new EventHandler(timelineView_PixelsPerSecondChanged); }
public NumberLine(ScrollView numberlineScroller, TimelineView timelineView) { this.numberlineScroller = numberlineScroller; numberlineScroller.EventChangeCoord += numberlineScroller_EventChangeCoord; this.timelineView = timelineView; pixelsPerSecond = timelineView.PixelsPerSecond; timelineView.CanvasPositionChanged += new CanvasPositionChanged(actionView_CanvasPositionChanged); timelineView.CanvasWidthChanged += new CanvasSizeChanged(actionView_CanvasWidthChanged); timelineView.PixelsPerSecondChanged += new EventHandler(actionView_PixelsPerSecondChanged); numberlineScroller.ClientWidget.MouseButtonReleased += new MyGUIEvent(ClientWidget_MouseButtonReleased); canvasModified(); }
public TrackFilter(ScrollView scrollView, TimelineView actionView) { this.scrollView = scrollView; textWidth = (int)scrollView.CanvasSize.Width - ButtonWidth - 1; actionView.TrackPositionChanged += new TimelineTrackEvent(actionView_TrackPositionChanged); actionView.CanvasHeightChanged += new CanvasSizeChanged(actionView_CanvasHeightChanged); actionView.CanvasPositionChanged += new CanvasPositionChanged(actionView_CanvasPositionChanged); actionView.TrackAdded += new TimelineTrackEvent(actionView_RowAdded); actionView.TrackRemoved += new TimelineTrackEvent(actionView_TrackRemoved); foreach (TimelineViewTrack row in actionView.Tracks) { actionView_RowAdded(row); } }
public TimelineDataProperties(ScrollView propScroll, TimelineView timelineView) { this.propScroll = propScroll; this.timelineView = timelineView; timelineView.ActiveDataChanged += new EventHandler(timelineView_ActiveDataChanged); startTime = new NumericEdit(propScroll.findWidget("StartTime") as EditBox); startTime.ValueChanged += new MyGUIEvent(startTime_ValueChanged); startTime.MaxValue = float.MaxValue; EditBox durationEdit = propScroll.findWidget("Duration") as EditBox; if (durationEdit != null) { duration = new NumericEdit(durationEdit); duration.ValueChanged += new MyGUIEvent(duration_ValueChanged); duration.MaxValue = float.MaxValue; additionalPropertiesPosition = new IntVector2(1, duration.Edit.Bottom + 2); } else { additionalPropertiesPosition = new IntVector2(1, startTime.Edit.Bottom + 2); } }
void actionView_PixelsPerSecondChanged(object sender, EventArgs e) { TimelineView actionView = (TimelineView)sender; this.PixelsPerSecond = actionView.PixelsPerSecond; }
public TimelineSelectionCollection(TimelineView timelineView) { this.timelineView = timelineView; }