[longomatch] Code formatting.



commit a2a41c15a4be1632f6f31657e8f8a7faf0b246a7
Author: Julien Moutte <julien fluendo com>
Date:   Wed Mar 18 19:12:58 2015 +0100

    Code formatting.

 LongoMatch.GUI/Gui/Component/MediaFileChooser.cs |   10 +++---
 LongoMatch.GUI/Gui/Dialog/DrawingTool.cs         |   42 ++++++++++++----------
 LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs |   11 +++---
 3 files changed, 34 insertions(+), 29 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs 
b/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
index 2a0bf52..6466ca2 100644
--- a/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
+++ b/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
@@ -23,7 +23,7 @@ using LongoMatch.Core.Common;
 
 namespace LongoMatch.Gui.Component
 {
-       [System.ComponentModel.ToolboxItem(true)]
+       [System.ComponentModel.ToolboxItem (true)]
        public partial class MediaFileChooser : Gtk.Bin
        {
                public event EventHandler ChangedEvent;
@@ -173,15 +173,15 @@ namespace LongoMatch.Gui.Component
                                MediaFile = file;
                        } else if (FileChooserMode == FileChooserMode.File) {
                                CurrentPath = FileChooserHelper.SaveFile (this, Catalog.GetString ("Output 
file"),
-                                                                         ProposedFileName, 
Config.LastRenderDir,
-                                                                         FilterName, FilterExtensions);
+                                       ProposedFileName, Config.LastRenderDir,
+                                       FilterName, FilterExtensions);
                                if (CurrentPath != null) {
                                        Config.LastRenderDir = System.IO.Path.GetDirectoryName (CurrentPath);
                                }
                        } else if (FileChooserMode == FileChooserMode.Directory) {
                                CurrentPath = FileChooserHelper.SelectFolder (this, Catalog.GetString 
("Output folder"),
-                                                                             ProposedDirectoryName, 
Config.LastRenderDir,
-                                                                             null, null);
+                                       ProposedDirectoryName, Config.LastRenderDir,
+                                       null, null);
                        }
                        if (ChangedEvent != null) {
                                ChangedEvent (this, null);
diff --git a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
index 047a2d5..2bcb1c0 100644
--- a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
+++ b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
@@ -111,18 +111,20 @@ namespace LongoMatch.Gui.Dialog
                        textcolorbutton.ColorSet += HandleTextColorSet;
                        textcolorbutton.Color = Misc.ToGdkColor (Color.White); 
                        backgroundcolorbutton.UseAlpha = true;
-                       backgroundcolorbutton.Alpha = (ushort) (ushort.MaxValue * 0.8);
+                       backgroundcolorbutton.Alpha = (ushort)(ushort.MaxValue * 0.8);
                        backgroundcolorbutton.ColorSet += HandleBackgroundColorSet;
                        backgroundcolorbutton.Color = Misc.ToGdkColor (Color.Green1); 
                        blackboard.Color = Color.Red1;
                        blackboard.TextColor = Color.Grey2;
                        blackboard.TextBackgroundColor = new Color (Color.Green1.R, Color.Green1.G,
-                                                                   Color.Green1.B, 0);
+                               Color.Green1.B, 0);
                        textspinbutton.Value = 12;
                        textspinbutton.ValueChanged += (sender, e) => {
-                               UpdateTextSize ();};
+                               UpdateTextSize ();
+                       };
                        linesizespinbutton.ValueChanged += (sender, e) => {
-                               UpdateLineWidth ();};
+                               UpdateLineWidth ();
+                       };
                        linesizespinbutton.Value = 4;
                        
                        clearbutton.Clicked += HandleClearClicked;
@@ -174,9 +176,9 @@ namespace LongoMatch.Gui.Dialog
                        
                        formatStore = new ListStore (typeof(Gdk.Pixbuf), typeof(LineStyle));
                        formatStore.AppendValues (Gdk.Pixbuf.LoadFromResource (Constants.LINE_NORMAL),
-                                                 LineStyle.Normal);
+                               LineStyle.Normal);
                        formatStore.AppendValues (Gdk.Pixbuf.LoadFromResource (Constants.LINE_DASHED),
-                                                 LineStyle.Dashed);
+                               LineStyle.Dashed);
                        stylecombobox.Clear ();
                        stylecombobox.PackStart (renderer, true);
                        stylecombobox.AddAttribute (renderer, "pixbuf", 0);
@@ -192,15 +194,15 @@ namespace LongoMatch.Gui.Dialog
                        
                        formatStore = new ListStore (typeof(Gdk.Pixbuf), typeof(LineStyle));
                        formatStore.AppendValues (Gdk.Pixbuf.LoadFromResource (Constants.LINE_NORMAL),
-                                                 LineType.Simple);
+                               LineType.Simple);
                        formatStore.AppendValues (Gdk.Pixbuf.LoadFromResource (Constants.LINE_ARROW),
-                                                 LineType.Arrow);
+                               LineType.Arrow);
                        formatStore.AppendValues (Gdk.Pixbuf.LoadFromResource (Constants.LINE_DOUBLE_ARROW),
-                                                 LineType.DoubleArrow);
+                               LineType.DoubleArrow);
                        formatStore.AppendValues (Gdk.Pixbuf.LoadFromResource (Constants.LINE_DOT),
-                                                 LineType.Dot);
+                               LineType.Dot);
                        formatStore.AppendValues (Gdk.Pixbuf.LoadFromResource (Constants.LINE_DOUBLE_DOT),
-                                                 LineType.DoubleDot);
+                               LineType.DoubleDot);
                        typecombobox.Clear ();
                        typecombobox.PackStart (renderer, true);
                        typecombobox.AddAttribute (renderer, "pixbuf", 0);
@@ -237,7 +239,7 @@ namespace LongoMatch.Gui.Dialog
                void EditText (Text text)
                {
                        text.Value = MessagesHelpers.QueryMessage (this, Catalog.GetString ("Text"),
-                                                                  null, text.Value);
+                               null, text.Value);
                        QueueDraw ();
                }
 
@@ -246,8 +248,8 @@ namespace LongoMatch.Gui.Dialog
                        playerText = text;
                        if (playerDialog == null) {
                                Gtk.Dialog d = new Gtk.Dialog (Catalog.GetString ("Select player"),
-                                                              this, DialogFlags.Modal | 
DialogFlags.DestroyWithParent,
-                                                              Gtk.Stock.Cancel, ResponseType.Cancel);
+                                                      this, DialogFlags.Modal | 
DialogFlags.DestroyWithParent,
+                                                      Gtk.Stock.Cancel, ResponseType.Cancel);
                                d.WidthRequest = 600;
                                d.HeightRequest = 400;
                                
@@ -255,7 +257,7 @@ namespace LongoMatch.Gui.Dialog
                                TeamTagger tagger = new TeamTagger (new WidgetWrapper (da));
                                tagger.ShowSubstitutionButtons = false;
                                tagger.LoadTeams (project.LocalTeamTemplate, project.VisitorTeamTemplate,
-                                                 project.Dashboard.FieldBackground);
+                                       project.Dashboard.FieldBackground);
                                tagger.PlayersSelectionChangedEvent += players => {
                                        if (players.Count == 1) {
                                                Player p = players [0];
@@ -317,7 +319,7 @@ namespace LongoMatch.Gui.Dialog
                        Color c;
                        
                        c = Misc.ToLgmColor (backgroundcolorbutton.Color,
-                                            backgroundcolorbutton.Alpha);
+                               backgroundcolorbutton.Alpha);
                        if (selectedDrawable is Text) {
                                Text t = (selectedDrawable as Text);
                                t.FillColor = t.StrokeColor = c;
@@ -416,7 +418,7 @@ namespace LongoMatch.Gui.Dialog
                        }
                        drawing.Miniature = blackboard.Save ();
                        drawing.Miniature.ScaleInplace (Constants.MAX_THUMBNAIL_SIZE,
-                                                       Constants.MAX_THUMBNAIL_SIZE);
+                               Constants.MAX_THUMBNAIL_SIZE);
                        play.UpdateMiniature ();
                        drawing = null;
                        Respond (ResponseType.Accept);
@@ -477,12 +479,14 @@ namespace LongoMatch.Gui.Dialog
                        Menu m = new Menu ();
                        MenuItem item = new MenuItem (Catalog.GetString ("Delete"));
                        item.Activated += (sender, e) => {
-                               blackboard.DeleteSelection ();};
+                               blackboard.DeleteSelection ();
+                       };
                        m.Add (item);
                        if (drawable is Text) {
                                MenuItem edit = new MenuItem (Catalog.GetString ("Edit"));
                                edit.Activated += (sender, e) => {
-                                       EditText (drawable as Text);};
+                                       EditText (drawable as Text);
+                               };
                                m.Add (edit);
                        }
                        m.ShowAll ();
diff --git a/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs 
b/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
index 0eee5b7..1cb6d10 100644
--- a/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
+++ b/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
@@ -88,7 +88,7 @@ namespace LongoMatch.Gui.Dialog
                                        if (std == selectedVideoStandard) {
                                                active = index; 
                                        }
-                                       index ++;
+                                       index++;
                                }
                                if (min_std == null || std.Height < min_std.Height) {
                                        min_std = std;
@@ -113,7 +113,8 @@ namespace LongoMatch.Gui.Dialog
                        bitratecombobox.Active = 1;
                }
 
-               void AppendFile (MediaFile file) {
+               void AppendFile (MediaFile file)
+               {
                        HBox box;
                        Button delButton;
                        Gtk.Image delImage;
@@ -122,7 +123,7 @@ namespace LongoMatch.Gui.Dialog
                        if (file == null)
                                return;
                        Files.Add (file);
-                       box = new HBox();
+                       box = new HBox ();
                        delButton = new Button ();
                        delButton.Relief = ReliefStyle.None;
                        delButton.CanFocus = false;
@@ -147,7 +148,7 @@ namespace LongoMatch.Gui.Dialog
 
                        var msg = Catalog.GetString ("Add file");
                        List<string> paths = FileChooserHelper.OpenFiles (this, msg, null,
-                                                                         Config.HomeDir, null, null);
+                                                    Config.HomeDir, null, null);
                        foreach (string path in paths) {
                                MediaFile mediaFile = Misc.DiscoverFile (path, this);
                                if (mediaFile != null) {
@@ -198,7 +199,7 @@ namespace LongoMatch.Gui.Dialog
                                fps_n = 30;
                        }
                        encSettings = new EncodingSettings (std, EncodingProfiles.MP4, qual, fps_n, fps_d,
-                                                           mediafilechooser1.CurrentPath, true, false, 0);
+                               mediafilechooser1.CurrentPath, true, false, 0);
                        
                        EncodingSettings = encSettings;
                        Respond (ResponseType.Ok);


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