[longomatch] Disable moving points in the stats fields



commit d40728a7f20961946f651c9d85718b7717592757
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Nov 14 16:37:06 2014 +0100

    Disable moving points in the stats fields

 LongoMatch.Drawing/Canvas.cs                       |   13 +++++++------
 .../Gui/Component/PlaysCoordinatesTagger.cs        |    3 +++
 2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch.Drawing/Canvas.cs b/LongoMatch.Drawing/Canvas.cs
index a492e48..0749469 100644
--- a/LongoMatch.Drawing/Canvas.cs
+++ b/LongoMatch.Drawing/Canvas.cs
@@ -53,7 +53,7 @@ namespace LongoMatch.Drawing
                                Dispose (true);
                        }
                }
-               
+
                public void Dispose ()
                {
                        Dispose (true);
@@ -85,7 +85,8 @@ namespace LongoMatch.Drawing
                        set;
                }
 
-               public void AddObject (ICanvasObject co) {
+               public void AddObject (ICanvasObject co)
+               {
                        Objects.Add (co);
                        co.RedrawEvent += HandleRedrawEvent;
                }
@@ -198,18 +199,18 @@ namespace LongoMatch.Drawing
                        get;
                        set;
                }
-               
-               protected bool MoveWithoutSelection {
+
+               public bool ObjectsCanMove {
                        get;
                        set;
                }
 
-               protected List<Selection> Selections {
+               protected bool MoveWithoutSelection {
                        get;
                        set;
                }
 
-               protected bool ObjectsCanMove {
+               protected List<Selection> Selections {
                        get;
                        set;
                }
diff --git a/LongoMatch.GUI/Gui/Component/PlaysCoordinatesTagger.cs 
b/LongoMatch.GUI/Gui/Component/PlaysCoordinatesTagger.cs
index d16c4eb..7e4a367 100644
--- a/LongoMatch.GUI/Gui/Component/PlaysCoordinatesTagger.cs
+++ b/LongoMatch.GUI/Gui/Component/PlaysCoordinatesTagger.cs
@@ -40,6 +40,9 @@ namespace LongoMatch.Gui.Component
                        field.Tagger.Accuracy = 20;
                        hfield.Tagger.Accuracy = 20;
                        goal.Tagger.Accuracy = 20;
+                       field.Tagger.ObjectsCanMove = false;
+                       hfield.Tagger.ObjectsCanMove = false;
+                       goal.Tagger.ObjectsCanMove = false;
                }
 
                public void LoadBackgrounds (Project project) {


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