[longomatch] Make the edit button work en edition+manual mode



commit 00bd43c2f0e84e911c580bdd8f28e5f90b45172b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Oct 9 18:33:33 2014 +0200

    Make the edit button work en edition+manual mode

 LongoMatch.Drawing/CanvasObjects/CategoryObject.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Drawing/CanvasObjects/CategoryObject.cs 
b/LongoMatch.Drawing/CanvasObjects/CategoryObject.cs
index 8c2a520..ca8e318 100644
--- a/LongoMatch.Drawing/CanvasObjects/CategoryObject.cs
+++ b/LongoMatch.Drawing/CanvasObjects/CategoryObject.cs
@@ -121,7 +121,7 @@ namespace LongoMatch.Drawing.CanvasObjects
                                SelectedTags.Remove (tag);
                        } else {
                                SelectedTags.Add (tag);
-                               if (Button.TagMode == TagMode.Predefined) {
+                               if (Button.TagMode == TagMode.Predefined || Mode == TagMode.Edit) {
                                        catSelected = true;
                                        tagSelected = true;
                                }
@@ -299,8 +299,11 @@ namespace LongoMatch.Drawing.CanvasObjects
 
                        if (Button.TagMode == TagMode.Free) {
                                /* Draw Tagger */
+                               tk.StrokeColor = Button.DarkColor;
+                               tk.LineWidth = 1;
                                tk.DrawLine (new Point (pos.X, pos.Y + yptr),
                                             new Point (pos.X + catWidth, pos.Y + yptr));
+                               tk.StrokeColor = Button.TextColor;
                                tk.DrawText (new Point (pos.X, pos.Y + yptr), catWidth, heightPerRow, 
"Record");
                        }
                        DrawSelectionArea (tk);


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