[longomatch] Notify controller about step changes



commit d90c0bd54ebf51d583df549afa4bb7dc53b7fdcb
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Mar 23 12:49:25 2015 +0100

    Notify controller about step changes

 LongoMatch.GUI.Multimedia/Gui/PlayerView.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerView.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerView.cs
index 09b013b..f75333c 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerView.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerView.cs
@@ -243,6 +243,7 @@ namespace LongoMatch.Gui
                        timescale.ButtonReleaseEvent += OnTimescaleButtonRelease;
                        vscale1.FormatValue += OnVscale1FormatValue;
                        vscale1.ValueChanged += OnVscale1ValueChanged;
+                       jumpspinbutton.ValueChanged += HandleJumpValueChanged;
 
                }
 
@@ -528,6 +529,11 @@ namespace LongoMatch.Gui
                        Config.EventsBroker.EmitDrawFrame (null, -1, CamerasVisible [0], true);
                }
 
+               void HandleJumpValueChanged (object sender, EventArgs e)
+               {
+                       Player.Step = new Time (jumpspinbutton.ValueAsInt * 1000);
+               }
+
                void HandleReady (object sender, EventArgs e)
                {
                        IntPtr handle = WindowHandle.GetWindowHandle (videowindow.Window.GdkWindow);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]