void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 11 "..\..\..\..\Controls\Acoustic\GainEditor.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnSelectFramesMenuItemClick); #line default #line hidden return; case 2: #line 13 "..\..\..\..\Controls\Acoustic\GainEditor.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnResetTuneMenuItemClick); #line default #line hidden return; case 3: #line 14 "..\..\..\..\Controls\Acoustic\GainEditor.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnDragSelectedMenuItemClick); #line default #line hidden return; case 4: this._grid = ((System.Windows.Controls.Grid)(target)); return; case 5: this._highlightFrames = ((Microsoft.Tts.UI.Controls.Trajectory.TrajectoryHighlightFrame)(target)); return; case 6: this._guidelineGraph = ((Microsoft.Tts.UI.Controls.Trajectory.IntervalLinerGraph)(target)); return; case 7: this._gridRect = ((System.Windows.Shapes.Rectangle)(target)); #line 32 "..\..\..\..\Controls\Acoustic\GainEditor.xaml" this._gridRect.MouseMove += new System.Windows.Input.MouseEventHandler(this.OnMouseMove); #line default #line hidden #line 32 "..\..\..\..\Controls\Acoustic\GainEditor.xaml" this._gridRect.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.OnMouseLeftButtonDown); #line default #line hidden #line 32 "..\..\..\..\Controls\Acoustic\GainEditor.xaml" this._gridRect.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.OnMouseLeftButtonUp); #line default #line hidden return; case 8: this._linerGraph = ((Microsoft.Tts.UI.Controls.Trajectory.IntervalLinerGraph)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this._graphSystem = ((Microsoft.Tts.UI.Controls.Trajectory.SingleTrajectoryGraph)(target)); return; case 2: this._frameline = ((Microsoft.Tts.UI.Controls.Trajectory.TrajectoryFrameline)(target)); return; case 3: this._hightlighFrames = ((Microsoft.Tts.UI.Controls.Trajectory.TrajectoryHighlightFrame)(target)); return; case 4: this._meanGraph = ((Microsoft.Tts.UI.Controls.Trajectory.IntervalConstantGraph)(target)); return; case 5: this._auxiliaryParameterGraph = ((Microsoft.Tts.UI.Controls.Trajectory.IntervalLinerGraph)(target)); return; case 6: this._parameterGraph = ((Microsoft.Tts.UI.Controls.Trajectory.IntervalLinerGraph)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this._segmentGraphRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 2: this._staticGraphRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 3: this._wordSegmentGraph = ((Microsoft.Tts.UI.Controls.Trajectory.SegmentGraph)(target)); return; case 4: this._phoneSegmentGraph = ((Microsoft.Tts.UI.Controls.Trajectory.SegmentGraph)(target)); return; case 5: this._intervalLinerGraph = ((Microsoft.Tts.UI.Controls.Trajectory.IntervalLinerGraph)(target)); return; } this._contentLoaded = true; }
/// <summary> /// Create trajectories. /// </summary> public void CreateTrajectories() { _trajectoryGrid.Children.Clear(); _parameterGraphs.Clear(); _auxiliaryParameterGraphs.Clear(); _meanGraphs.Clear(); _trajectoryData.LinkAxis(); foreach (VisualSingleTrajectory traj in _trajectoryData.Trajectories) { VisualLinerSamples visualLinerSamples = new VisualLinerSamples(); visualLinerSamples.TimeAxis = traj.TimeAxis; visualLinerSamples.YAxis = traj.YAxis; visualLinerSamples.Samples = traj.GeneratedParameters; IntervalLinerGraph paraGraph = new IntervalLinerGraph(); paraGraph.CurveStroke = parameterTrajectoryStroke.Brush; paraGraph.CurveStrokeThickness = parameterTrajectoryStroke.Thickness; paraGraph.Lowerbound = IntervalLinerGraph.DefaultLowerBound; paraGraph.Upperbound = IntervalLinerGraph.DefaultUpperBound; paraGraph.SetDataContext(visualLinerSamples); visualLinerSamples = new VisualLinerSamples(); visualLinerSamples.TimeAxis = traj.TimeAxis; visualLinerSamples.YAxis = traj.YAxis; visualLinerSamples.Samples = traj.AuxiliaryParameters; IntervalLinerGraph auxiliaryGraph = new IntervalLinerGraph(); auxiliaryGraph.CurveStroke = auxiliaryParameterTrajectoryStroke.Brush; auxiliaryGraph.CurveStrokeThickness = parameterTrajectoryStroke.Thickness; auxiliaryGraph.Lowerbound = IntervalLinerGraph.DefaultLowerBound; auxiliaryGraph.Upperbound = IntervalLinerGraph.DefaultUpperBound; auxiliaryGraph.SetDataContext(visualLinerSamples); VisualConstantSamples visualConstantSamples = new VisualConstantSamples(); visualConstantSamples.TimeAxis = traj.TimeAxis; visualConstantSamples.YAxis = traj.YAxis; visualConstantSamples.Samples = traj.Means; visualConstantSamples.Deviations = traj.StandardDeviations; IntervalConstantGraph meanGraph = new IntervalConstantGraph(); meanGraph.Lowerbound = IntervalConstantGraph.DefaultLowerBound; meanGraph.Upperbound = IntervalConstantGraph.DefaultUpperBound; meanGraph.SetDataContext(visualConstantSamples); Binding binding = new Binding("ActualWidth"); binding.Source = _graphSystem; paraGraph.SetBinding(IntervalLinerGraph.WidthProperty, binding); auxiliaryGraph.SetBinding(IntervalLinerGraph.WidthProperty, binding); meanGraph.SetBinding(IntervalConstantGraph.WidthProperty, binding); binding = new Binding("ActualHeight"); binding.Source = _graphSystem; paraGraph.SetBinding(IntervalLinerGraph.HeightProperty, binding); auxiliaryGraph.SetBinding(IntervalLinerGraph.HeightProperty, binding); meanGraph.SetBinding(IntervalConstantGraph.HeightProperty, binding); _parameterGraphs.Add(paraGraph); _auxiliaryParameterGraphs.Add(auxiliaryGraph); _meanGraphs.Add(meanGraph); } if (_dimensionGraphData.DisplayController.TrajectoryDisplayController.ModelDataShowed) { foreach (IntervalConstantGraph graph in _meanGraphs) { _trajectoryGrid.Children.Add(graph); } } if (_dimensionGraphData.DisplayController.TrajectoryDisplayController.TrajectoryShowed) { foreach (IntervalLinerGraph graph in _parameterGraphs) { _trajectoryGrid.Children.Add(graph); } } if (_dimensionGraphData.DisplayController.AuxiliaryTrajectoryEnabled && _dimensionGraphData.DisplayController.TrajectoryDisplayController.AuxiliaryTrajectoryShowed) { foreach (IntervalLinerGraph graph in _auxiliaryParameterGraphs) { _trajectoryGrid.Children.Add(graph); } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this._graphSystem = ((Microsoft.Tts.UI.Controls.Trajectory.SingleDimensionGraph)(target)); #line 7 "..\..\..\..\Controls\Trajectory\SingleDimensionGraph.xaml" this._graphSystem.SizeChanged += new System.Windows.SizeChangedEventHandler(this.OnGraphSizeChanged); #line default #line hidden return; case 2: this._segmentGraphRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 3: this._staticGraphRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 4: this._deltaGraphRowPadding = ((System.Windows.Controls.RowDefinition)(target)); return; case 5: this._deltaGraphRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 6: this._accelerationGraphRowPadding = ((System.Windows.Controls.RowDefinition)(target)); return; case 7: this._accelerationGraphRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 8: this._waveformGraphRowPadding = ((System.Windows.Controls.RowDefinition)(target)); return; case 9: this._waveformGraphRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 10: this._graphColumn = ((System.Windows.Controls.ColumnDefinition)(target)); return; case 11: this._rulerColumn = ((System.Windows.Controls.ColumnDefinition)(target)); return; case 12: this._segmentGraphRowGrid = ((System.Windows.Controls.Grid)(target)); return; case 13: this._wordSegmentGraph = ((Microsoft.Tts.UI.Controls.Trajectory.SegmentGraph)(target)); return; case 14: this._phoneSegmentGraph = ((Microsoft.Tts.UI.Controls.Trajectory.SegmentGraph)(target)); return; case 15: this._staticGraphRowGrid = ((System.Windows.Controls.Grid)(target)); return; case 16: this._staticGraph = ((Microsoft.Tts.UI.Controls.Trajectory.SingleTrajectoryGraph)(target)); return; case 17: this._staticYAxisGrid = ((System.Windows.Controls.Grid)(target)); return; case 18: this._staticYAxis = ((Microsoft.Tts.UI.Controls.Trajectory.AxisRuler)(target)); return; case 19: this._deltaGraphRowGrid = ((System.Windows.Controls.Grid)(target)); return; case 20: this._deltaGraph = ((Microsoft.Tts.UI.Controls.Trajectory.SingleTrajectoryGraph)(target)); return; case 21: this._deltaYAxisGrid = ((System.Windows.Controls.Grid)(target)); return; case 22: this._deltaYAxis = ((Microsoft.Tts.UI.Controls.Trajectory.AxisRuler)(target)); return; case 23: this._accelerationGraphRowGrid = ((System.Windows.Controls.Grid)(target)); return; case 24: this._accelerationGraph = ((Microsoft.Tts.UI.Controls.Trajectory.SingleTrajectoryGraph)(target)); return; case 25: this._accelerationYAxisGrid = ((System.Windows.Controls.Grid)(target)); return; case 26: this._accelerationYAxis = ((Microsoft.Tts.UI.Controls.Trajectory.AxisRuler)(target)); return; case 27: this._waveformGraphRowGrid = ((System.Windows.Controls.Grid)(target)); return; case 28: this._waveformGraph = ((Microsoft.Tts.UI.Controls.Trajectory.IntervalLinerGraph)(target)); return; case 29: this._waveformYAxisGrid = ((System.Windows.Controls.Grid)(target)); return; case 30: this._waveformYAxis = ((Microsoft.Tts.UI.Controls.Trajectory.AxisRuler)(target)); return; case 31: this._durationGrid = ((System.Windows.Controls.Grid)(target)); return; case 32: this._durationGraph = ((Microsoft.Tts.UI.Controls.Trajectory.DurationGraph)(target)); return; case 33: this._controlPanel = ((Microsoft.Tts.UI.Controls.Trajectory.TrajectoryControlPanel)(target)); return; case 34: this._dataPopup = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 35: this._trajectoryInfoTable = ((Microsoft.Tts.UI.Controls.Trajectory.TrajectoryInfoUserControl)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this._linerGraph = ((Microsoft.Tts.UI.Controls.Trajectory.IntervalLinerGraph)(target)); return; } this._contentLoaded = true; }