[longomatch] Add more configurable properties



commit b3e56df63cef3c6da1145cb1147958020fcb581b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Jun 26 20:06:34 2013 +0200

    Add more configurable properties

 LongoMatch.Core/Config.cs                          |   49 +++++
 .../Gui/Component/ProjectDetailsWidget.cs          |    4 +-
 .../Gui/Component/VideoPreferencesPanel.cs         |   38 ++++
 .../Gui/Dialog/VideoEditionProperties.cs           |    5 +-
 .../LongoMatch.Gui.Component.ButtonsWidget.cs      |    1 -
 ...oMatch.Gui.Component.GeneralPreferencesPanel.cs |    1 -
 .../LongoMatch.Gui.Component.PlayerProperties.cs   |    1 -
 ...ongoMatch.Gui.Component.ProjectDetailsWidget.cs |    1 -
 .../LongoMatch.Gui.Component.TaggerWidget.cs       |    1 -
 ...ngoMatch.Gui.Component.VideoPreferencesPanel.cs |  216 ++++++++++++-------
 .../gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs   |    1 -
 .../LongoMatch.Gui.Dialog.ProjectsManager.cs       |    1 +
 .../LongoMatch.Gui.Dialog.PropertiesEditor.cs      |    1 +
 .../LongoMatch.Gui.Dialog.SnapshotsDialog.cs       |    1 -
 .../LongoMatch.Gui.Dialog.SubCategoryTagsEditor.cs |    1 -
 .../LongoMatch.Gui.Dialog.TemplatesManager.cs      |    1 +
 .../gtk-gui/LongoMatch.Gui.MainWindow.cs           |    3 +-
 LongoMatch.GUI/gtk-gui/gui.stetic                  |   95 ++++++++-
 18 files changed, 322 insertions(+), 99 deletions(-)
---
diff --git a/LongoMatch.Core/Config.cs b/LongoMatch.Core/Config.cs
index 653def7..85ede9f 100644
--- a/LongoMatch.Core/Config.cs
+++ b/LongoMatch.Core/Config.cs
@@ -252,6 +252,47 @@ namespace LongoMatch
                                Save ();
                        }
                }
+               
+               public static bool OverlayTitle {
+                       get {
+                               return state.overlayTitle;
+                       }
+                       set {
+                               state.overlayTitle = value;
+                               Save ();
+                       }
+               }
+               
+               public static bool EnableAudio {
+                       get {
+                               return state.enableAudio;
+                       }
+                       set {
+                               state.enableAudio = value;
+                               Save ();
+                       }
+               }
+               
+               public static uint FPS_N {
+                       get {
+                               return state.fps_n;
+                       }
+                       set {
+                               state.fps_n = value;
+                               Save ();
+                       }
+               }
+               
+               public static uint FPS_D {
+                       get {
+                               return state.fps_d;
+                       }
+                       set {
+                               state.fps_d = value;
+                               Save ();
+                       }
+               }
+               
                #endregion
 
        }
@@ -262,12 +303,16 @@ namespace LongoMatch
                public bool autoSave;
                public string currentDatabase;
                public string lang;
+               public uint fps_n;
+               public uint fps_d;
                public VideoStandard captureVideoStandard;
                public VideoStandard renderVideoStandard;
                public EncodingProfile captureEncodingProfile;
                public EncodingProfile renderEncodingProfile;
                public EncodingQuality captureEncodingQuality;
                public EncodingQuality renderEncodingQuality;
+               public bool overlayTitle;
+               public bool enableAudio;
                
                public ConfigState () {
                        /* Set default values */
@@ -281,6 +326,10 @@ namespace LongoMatch
                        renderVideoStandard = VideoStandards.P720_16_9;
                        renderEncodingProfile = EncodingProfiles.MP4;
                        renderEncodingQuality = EncodingQualities.High;
+                       overlayTitle = true;
+                       enableAudio = false;
+                       fps_n = 25;
+                       fps_d = 1;
                }
        }
 }
diff --git a/LongoMatch.GUI/Gui/Component/ProjectDetailsWidget.cs 
b/LongoMatch.GUI/Gui/Component/ProjectDetailsWidget.cs
index 56884c6..2016255 100644
--- a/LongoMatch.GUI/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/ProjectDetailsWidget.cs
@@ -263,8 +263,8 @@ namespace LongoMatch.Gui.Component
                                encSettings.EncodingProfile = (EncodingProfile) encProfileList.GetValue(iter, 
1);
                                
                                /* FIXME: Configure with the UI */
-                               encSettings.Framerate_n = 25;
-                               encSettings.Framerate_d = 1;
+                               encSettings.Framerate_n = Config.FPS_N;
+                               encSettings.Framerate_d = Config.FPS_D;
                                
                                s.EncodingSettings = encSettings;
                                return s;
diff --git a/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs 
b/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
index eaf8f64..3149fe7 100644
--- a/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
+++ b/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
@@ -25,9 +25,18 @@ namespace LongoMatch.Gui.Component
        [System.ComponentModel.ToolboxItem(true)]
        public partial class VideoPreferencesPanel : Gtk.Bin
        {
+               CheckButton overlayTitle, enableSound;
+               
                public VideoPreferencesPanel ()
                {
                        this.Build ();
+                       
+                       if (Config.FPS_N == 30000) {
+                               fpscombobox.Active = 1;
+                       } else {
+                               fpscombobox.Active = 0;
+                       }
+                       fpscombobox.Changed += HandleFPSChanged;
                        Misc.FillImageFormat (renderimagecombo, Config.RenderVideoStandard);
                        Misc.FillEncodingFormat (renderenccombo, Config.RenderEncodingProfile);
                        Misc.FillQuality (renderqualcombo, Config.RenderEncodingQuality);
@@ -44,6 +53,35 @@ namespace LongoMatch.Gui.Component
                        
                        renderqualcombo.Changed += HandleQualityChanged;
                        captureimagecombo.Changed += HandleImageChanged;
+                       
+                       enableSound  = new CheckButton();
+                       rendertable.Attach (enableSound, 1, 2, 3, 4,
+                                      AttachOptions.Fill,
+                                      AttachOptions.Fill, 0, 0);
+                       enableSound.CanFocus = false;
+                       enableSound.Show();
+                       enableSound.Active = Config.EnableAudio;
+                       enableSound.Toggled += (sender, e) => {Config.EnableAudio = enableSound.Active;};
+
+                       overlayTitle  = new CheckButton();
+                       rendertable.Attach (overlayTitle, 1, 2, 4, 5,
+                                      AttachOptions.Fill,
+                                      AttachOptions.Fill, 0, 0);
+                       overlayTitle.CanFocus = false;
+                       overlayTitle.Show();
+                       overlayTitle.Active = Config.OverlayTitle;
+                       overlayTitle.Toggled += (sender, e) => {Config.OverlayTitle = overlayTitle.Active;};
+               }
+
+               void HandleFPSChanged (object sender, EventArgs e)
+               {
+                       if (fpscombobox.ActiveText == "25 fps") {
+                               Config.FPS_N = 25;
+                               Config.FPS_D = 1;
+                       } else {
+                               Config.FPS_N = 30000;
+                               Config.FPS_D = 1001;
+                       }
                }
 
                void HandleQualityChanged (object sender, EventArgs e)
diff --git a/LongoMatch.GUI/Gui/Dialog/VideoEditionProperties.cs 
b/LongoMatch.GUI/Gui/Dialog/VideoEditionProperties.cs
index 3bee21b..b5e4cee 100644
--- a/LongoMatch.GUI/Gui/Dialog/VideoEditionProperties.cs
+++ b/LongoMatch.GUI/Gui/Dialog/VideoEditionProperties.cs
@@ -109,9 +109,8 @@ namespace LongoMatch.Gui.Dialog
                        
                        encSettings.OutputFile = filelabel.Text;
                        
-                       /* FIXME: Configure with the UI */
-                       encSettings.Framerate_n = 25;
-                       encSettings.Framerate_d = 1;
+                       encSettings.Framerate_n = Config.FPS_N;
+                       encSettings.Framerate_d = Config.FPS_D;
                        
                        encSettings.TitleSize = 20; 
                        
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs
index f95b46f..ad83ff9 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs
@@ -41,7 +41,6 @@ namespace LongoMatch.Gui.Component
                        w2.Fill = false;
                        // Container child vbox1.Gtk.Box+BoxChild
                        this.table1 = new global::Gtk.Table (((uint)(5)), ((uint)(4)), false);
-                       this.table1.Name = "table1";
                        this.table1.RowSpacing = ((uint)(1));
                        this.table1.ColumnSpacing = ((uint)(1));
                        this.vbox1.Add (this.table1);
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.GeneralPreferencesPanel.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.GeneralPreferencesPanel.cs
index 8ccf727..69066f7 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.GeneralPreferencesPanel.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.GeneralPreferencesPanel.cs
@@ -17,7 +17,6 @@ namespace LongoMatch.Gui.Component
                        this.Name = "LongoMatch.Gui.Component.GeneralPreferencesPanel";
                        // Container child 
LongoMatch.Gui.Component.GeneralPreferencesPanel.Gtk.Container+ContainerChild
                        this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
-                       this.table1.Name = "table1";
                        this.table1.RowSpacing = ((uint)(6));
                        this.table1.ColumnSpacing = ((uint)(6));
                        // Container child table1.Gtk.Table+TableChild
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs
index 0b19161..c4dff74 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.PlayerProperties.cs
@@ -36,7 +36,6 @@ namespace LongoMatch.Gui.Component
                        this.Name = "LongoMatch.Gui.Component.PlayerProperties";
                        // Container child 
LongoMatch.Gui.Component.PlayerProperties.Gtk.Container+ContainerChild
                        this.table1 = new global::Gtk.Table (((uint)(9)), ((uint)(2)), false);
-                       this.table1.Name = "table1";
                        this.table1.RowSpacing = ((uint)(6));
                        this.table1.ColumnSpacing = ((uint)(6));
                        // Container child table1.Gtk.Table+TableChild
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs
index 13d2ffd..7a6d12b 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs
@@ -63,7 +63,6 @@ namespace LongoMatch.Gui.Component
                        this.vbox2.Spacing = 6;
                        // Container child vbox2.Gtk.Box+BoxChild
                        this.table1 = new global::Gtk.Table (((uint)(9)), ((uint)(2)), false);
-                       this.table1.Name = "table1";
                        this.table1.RowSpacing = ((uint)(6));
                        this.table1.ColumnSpacing = ((uint)(6));
                        // Container child table1.Gtk.Table+TableChild
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TaggerWidget.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TaggerWidget.cs
index 38ecb8b..41ae35e 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TaggerWidget.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.TaggerWidget.cs
@@ -74,7 +74,6 @@ namespace LongoMatch.Gui.Component
                        w5.Fill = false;
                        // Container child vbox3.Gtk.Box+BoxChild
                        this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(3)), false);
-                       this.table1.Name = "table1";
                        this.table1.RowSpacing = ((uint)(6));
                        this.table1.ColumnSpacing = ((uint)(6));
                        this.vbox3.Add (this.table1);
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoPreferencesPanel.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoPreferencesPanel.cs
index 45a8520..99edea7 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoPreferencesPanel.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoPreferencesPanel.cs
@@ -5,12 +5,17 @@ namespace LongoMatch.Gui.Component
        public partial class VideoPreferencesPanel
        {
                private global::Gtk.VBox vbox2;
+               private global::Gtk.HBox hbox1;
+               private global::Gtk.Label label7;
+               private global::Gtk.ComboBox fpscombobox;
                private global::Gtk.Frame frame1;
                private global::Gtk.Alignment GtkAlignment;
-               private global::Gtk.Table table1;
+               private global::Gtk.Table rendertable;
                private global::Gtk.Label label1;
                private global::Gtk.Label label2;
                private global::Gtk.Label label3;
+               private global::Gtk.Label label8;
+               private global::Gtk.Label label9;
                private global::Gtk.ComboBox renderenccombo;
                private global::Gtk.ComboBox renderimagecombo;
                private global::Gtk.ComboBox renderqualcombo;
@@ -37,6 +42,35 @@ namespace LongoMatch.Gui.Component
                        this.vbox2.Name = "vbox2";
                        this.vbox2.Spacing = 6;
                        // Container child vbox2.Gtk.Box+BoxChild
+                       this.hbox1 = new global::Gtk.HBox ();
+                       this.hbox1.Name = "hbox1";
+                       this.hbox1.Spacing = 6;
+                       // Container child hbox1.Gtk.Box+BoxChild
+                       this.label7 = new global::Gtk.Label ();
+                       this.label7.Name = "label7";
+                       this.label7.Xalign = 0F;
+                       this.label7.LabelProp = global::Mono.Unix.Catalog.GetString ("  <b>Framerate</b>");
+                       this.label7.UseMarkup = true;
+                       this.hbox1.Add (this.label7);
+                       global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label7]));
+                       w1.Position = 0;
+                       // Container child hbox1.Gtk.Box+BoxChild
+                       this.fpscombobox = global::Gtk.ComboBox.NewText ();
+                       this.fpscombobox.AppendText (global::Mono.Unix.Catalog.GetString ("25 fps"));
+                       this.fpscombobox.AppendText (global::Mono.Unix.Catalog.GetString ("30 fps"));
+                       this.fpscombobox.Name = "fpscombobox";
+                       this.fpscombobox.Active = 0;
+                       this.hbox1.Add (this.fpscombobox);
+                       global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 
[this.fpscombobox]));
+                       w2.Position = 1;
+                       w2.Expand = false;
+                       w2.Fill = false;
+                       this.vbox2.Add (this.hbox1);
+                       global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
+                       w3.Position = 0;
+                       w3.Expand = false;
+                       w3.Fill = false;
+                       // Container child vbox2.Gtk.Box+BoxChild
                        this.frame1 = new global::Gtk.Frame ();
                        this.frame1.Name = "frame1";
                        this.frame1.ShadowType = ((global::Gtk.ShadowType)(0));
@@ -45,69 +79,91 @@ namespace LongoMatch.Gui.Component
                        this.GtkAlignment.Name = "GtkAlignment";
                        this.GtkAlignment.LeftPadding = ((uint)(12));
                        // Container child GtkAlignment.Gtk.Container+ContainerChild
-                       this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
-                       this.table1.Name = "table1";
-                       this.table1.RowSpacing = ((uint)(6));
-                       this.table1.ColumnSpacing = ((uint)(6));
-                       // Container child table1.Gtk.Table+TableChild
+                       this.rendertable = new global::Gtk.Table (((uint)(5)), ((uint)(2)), false);
+                       this.rendertable.Name = "rendertable";
+                       this.rendertable.RowSpacing = ((uint)(6));
+                       this.rendertable.ColumnSpacing = ((uint)(6));
+                       // Container child rendertable.Gtk.Table+TableChild
                        this.label1 = new global::Gtk.Label ();
                        this.label1.Name = "label1";
                        this.label1.Xalign = 0F;
                        this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("Image format");
-                       this.table1.Add (this.label1);
-                       global::Gtk.Table.TableChild w1 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label1]));
-                       w1.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w1.YOptions = ((global::Gtk.AttachOptions)(4));
-                       // Container child table1.Gtk.Table+TableChild
+                       this.rendertable.Add (this.label1);
+                       global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.rendertable 
[this.label1]));
+                       w4.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w4.YOptions = ((global::Gtk.AttachOptions)(4));
+                       // Container child rendertable.Gtk.Table+TableChild
                        this.label2 = new global::Gtk.Label ();
                        this.label2.Name = "label2";
                        this.label2.Xalign = 0F;
                        this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("Encoding format");
-                       this.table1.Add (this.label2);
-                       global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label2]));
-                       w2.TopAttach = ((uint)(1));
-                       w2.BottomAttach = ((uint)(2));
-                       w2.YOptions = ((global::Gtk.AttachOptions)(4));
-                       // Container child table1.Gtk.Table+TableChild
+                       this.rendertable.Add (this.label2);
+                       global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.rendertable 
[this.label2]));
+                       w5.TopAttach = ((uint)(1));
+                       w5.BottomAttach = ((uint)(2));
+                       w5.YOptions = ((global::Gtk.AttachOptions)(4));
+                       // Container child rendertable.Gtk.Table+TableChild
                        this.label3 = new global::Gtk.Label ();
                        this.label3.Name = "label3";
                        this.label3.Xalign = 0F;
                        this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("Quality");
-                       this.table1.Add (this.label3);
-                       global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1 
[this.label3]));
-                       w3.TopAttach = ((uint)(2));
-                       w3.BottomAttach = ((uint)(3));
-                       w3.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w3.YOptions = ((global::Gtk.AttachOptions)(4));
-                       // Container child table1.Gtk.Table+TableChild
+                       this.rendertable.Add (this.label3);
+                       global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.rendertable 
[this.label3]));
+                       w6.TopAttach = ((uint)(2));
+                       w6.BottomAttach = ((uint)(3));
+                       w6.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w6.YOptions = ((global::Gtk.AttachOptions)(4));
+                       // Container child rendertable.Gtk.Table+TableChild
+                       this.label8 = new global::Gtk.Label ();
+                       this.label8.Name = "label8";
+                       this.label8.Xalign = 0F;
+                       this.label8.LabelProp = global::Mono.Unix.Catalog.GetString ("Enable sound 
(experimental)");
+                       this.rendertable.Add (this.label8);
+                       global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.rendertable 
[this.label8]));
+                       w7.TopAttach = ((uint)(3));
+                       w7.BottomAttach = ((uint)(4));
+                       w7.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w7.YOptions = ((global::Gtk.AttachOptions)(4));
+                       // Container child rendertable.Gtk.Table+TableChild
+                       this.label9 = new global::Gtk.Label ();
+                       this.label9.Name = "label9";
+                       this.label9.Xalign = 0F;
+                       this.label9.LabelProp = global::Mono.Unix.Catalog.GetString ("Overlay title");
+                       this.rendertable.Add (this.label9);
+                       global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.rendertable 
[this.label9]));
+                       w8.TopAttach = ((uint)(4));
+                       w8.BottomAttach = ((uint)(5));
+                       w8.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w8.YOptions = ((global::Gtk.AttachOptions)(4));
+                       // Container child rendertable.Gtk.Table+TableChild
                        this.renderenccombo = global::Gtk.ComboBox.NewText ();
                        this.renderenccombo.Name = "renderenccombo";
-                       this.table1.Add (this.renderenccombo);
-                       global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 
[this.renderenccombo]));
-                       w4.TopAttach = ((uint)(1));
-                       w4.BottomAttach = ((uint)(2));
-                       w4.LeftAttach = ((uint)(1));
-                       w4.RightAttach = ((uint)(2));
-                       w4.YOptions = ((global::Gtk.AttachOptions)(4));
-                       // Container child table1.Gtk.Table+TableChild
+                       this.rendertable.Add (this.renderenccombo);
+                       global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.rendertable 
[this.renderenccombo]));
+                       w9.TopAttach = ((uint)(1));
+                       w9.BottomAttach = ((uint)(2));
+                       w9.LeftAttach = ((uint)(1));
+                       w9.RightAttach = ((uint)(2));
+                       w9.YOptions = ((global::Gtk.AttachOptions)(4));
+                       // Container child rendertable.Gtk.Table+TableChild
                        this.renderimagecombo = global::Gtk.ComboBox.NewText ();
                        this.renderimagecombo.Name = "renderimagecombo";
-                       this.table1.Add (this.renderimagecombo);
-                       global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1 
[this.renderimagecombo]));
-                       w5.LeftAttach = ((uint)(1));
-                       w5.RightAttach = ((uint)(2));
-                       w5.YOptions = ((global::Gtk.AttachOptions)(4));
-                       // Container child table1.Gtk.Table+TableChild
+                       this.rendertable.Add (this.renderimagecombo);
+                       global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.rendertable 
[this.renderimagecombo]));
+                       w10.LeftAttach = ((uint)(1));
+                       w10.RightAttach = ((uint)(2));
+                       w10.YOptions = ((global::Gtk.AttachOptions)(4));
+                       // Container child rendertable.Gtk.Table+TableChild
                        this.renderqualcombo = global::Gtk.ComboBox.NewText ();
                        this.renderqualcombo.Name = "renderqualcombo";
-                       this.table1.Add (this.renderqualcombo);
-                       global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 
[this.renderqualcombo]));
-                       w6.TopAttach = ((uint)(2));
-                       w6.BottomAttach = ((uint)(3));
-                       w6.LeftAttach = ((uint)(1));
-                       w6.RightAttach = ((uint)(2));
-                       w6.YOptions = ((global::Gtk.AttachOptions)(4));
-                       this.GtkAlignment.Add (this.table1);
+                       this.rendertable.Add (this.renderqualcombo);
+                       global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.rendertable 
[this.renderqualcombo]));
+                       w11.TopAttach = ((uint)(2));
+                       w11.BottomAttach = ((uint)(3));
+                       w11.LeftAttach = ((uint)(1));
+                       w11.RightAttach = ((uint)(2));
+                       w11.YOptions = ((global::Gtk.AttachOptions)(4));
+                       this.GtkAlignment.Add (this.rendertable);
                        this.frame1.Add (this.GtkAlignment);
                        this.GtkLabel = new global::Gtk.Label ();
                        this.GtkLabel.Name = "GtkLabel";
@@ -115,9 +171,9 @@ namespace LongoMatch.Gui.Component
                        this.GtkLabel.UseMarkup = true;
                        this.frame1.LabelWidget = this.GtkLabel;
                        this.vbox2.Add (this.frame1);
-                       global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.frame1]));
-                       w9.Position = 0;
-                       w9.Expand = false;
+                       global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.frame1]));
+                       w14.Position = 1;
+                       w14.Expand = false;
                        // Container child vbox2.Gtk.Box+BoxChild
                        this.frame2 = new global::Gtk.Frame ();
                        this.frame2.Name = "frame2";
@@ -135,60 +191,60 @@ namespace LongoMatch.Gui.Component
                        this.captureenccombo = global::Gtk.ComboBox.NewText ();
                        this.captureenccombo.Name = "captureenccombo";
                        this.table2.Add (this.captureenccombo);
-                       global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table2 
[this.captureenccombo]));
-                       w10.TopAttach = ((uint)(1));
-                       w10.BottomAttach = ((uint)(2));
-                       w10.LeftAttach = ((uint)(1));
-                       w10.RightAttach = ((uint)(2));
-                       w10.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table2 
[this.captureenccombo]));
+                       w15.TopAttach = ((uint)(1));
+                       w15.BottomAttach = ((uint)(2));
+                       w15.LeftAttach = ((uint)(1));
+                       w15.RightAttach = ((uint)(2));
+                       w15.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table2.Gtk.Table+TableChild
                        this.captureimagecombo = global::Gtk.ComboBox.NewText ();
                        this.captureimagecombo.Name = "captureimagecombo";
                        this.table2.Add (this.captureimagecombo);
-                       global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table2 
[this.captureimagecombo]));
-                       w11.LeftAttach = ((uint)(1));
-                       w11.RightAttach = ((uint)(2));
-                       w11.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table2 
[this.captureimagecombo]));
+                       w16.LeftAttach = ((uint)(1));
+                       w16.RightAttach = ((uint)(2));
+                       w16.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table2.Gtk.Table+TableChild
                        this.capturequalcombo = global::Gtk.ComboBox.NewText ();
                        this.capturequalcombo.Name = "capturequalcombo";
                        this.table2.Add (this.capturequalcombo);
-                       global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table2 
[this.capturequalcombo]));
-                       w12.TopAttach = ((uint)(2));
-                       w12.BottomAttach = ((uint)(3));
-                       w12.LeftAttach = ((uint)(1));
-                       w12.RightAttach = ((uint)(2));
-                       w12.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table2 
[this.capturequalcombo]));
+                       w17.TopAttach = ((uint)(2));
+                       w17.BottomAttach = ((uint)(3));
+                       w17.LeftAttach = ((uint)(1));
+                       w17.RightAttach = ((uint)(2));
+                       w17.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table2.Gtk.Table+TableChild
                        this.label4 = new global::Gtk.Label ();
                        this.label4.Name = "label4";
                        this.label4.Xalign = 0F;
                        this.label4.LabelProp = global::Mono.Unix.Catalog.GetString ("Quality");
                        this.table2.Add (this.label4);
-                       global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table2 
[this.label4]));
-                       w13.TopAttach = ((uint)(2));
-                       w13.BottomAttach = ((uint)(3));
-                       w13.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w13.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.table2 
[this.label4]));
+                       w18.TopAttach = ((uint)(2));
+                       w18.BottomAttach = ((uint)(3));
+                       w18.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w18.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table2.Gtk.Table+TableChild
                        this.label5 = new global::Gtk.Label ();
                        this.label5.Name = "label5";
                        this.label5.Xalign = 0F;
                        this.label5.LabelProp = global::Mono.Unix.Catalog.GetString ("Encoding format");
                        this.table2.Add (this.label5);
-                       global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table2 
[this.label5]));
-                       w14.TopAttach = ((uint)(1));
-                       w14.BottomAttach = ((uint)(2));
-                       w14.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table2 
[this.label5]));
+                       w19.TopAttach = ((uint)(1));
+                       w19.BottomAttach = ((uint)(2));
+                       w19.YOptions = ((global::Gtk.AttachOptions)(4));
                        // Container child table2.Gtk.Table+TableChild
                        this.label6 = new global::Gtk.Label ();
                        this.label6.Name = "label6";
                        this.label6.Xalign = 0F;
                        this.label6.LabelProp = global::Mono.Unix.Catalog.GetString ("Image format");
                        this.table2.Add (this.label6);
-                       global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table2 
[this.label6]));
-                       w15.XOptions = ((global::Gtk.AttachOptions)(4));
-                       w15.YOptions = ((global::Gtk.AttachOptions)(4));
+                       global::Gtk.Table.TableChild w20 = ((global::Gtk.Table.TableChild)(this.table2 
[this.label6]));
+                       w20.XOptions = ((global::Gtk.AttachOptions)(4));
+                       w20.YOptions = ((global::Gtk.AttachOptions)(4));
                        this.GtkAlignment1.Add (this.table2);
                        this.frame2.Add (this.GtkAlignment1);
                        this.GtkLabel1 = new global::Gtk.Label ();
@@ -197,9 +253,9 @@ namespace LongoMatch.Gui.Component
                        this.GtkLabel1.UseMarkup = true;
                        this.frame2.LabelWidget = this.GtkLabel1;
                        this.vbox2.Add (this.frame2);
-                       global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.frame2]));
-                       w18.Position = 1;
-                       w18.Expand = false;
+                       global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.frame2]));
+                       w23.Position = 2;
+                       w23.Expand = false;
                        this.Add (this.vbox2);
                        if ((this.Child != null)) {
                                this.Child.ShowAll ();
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs
index 468d2ab..c58f354 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs
@@ -33,7 +33,6 @@ namespace LongoMatch.Gui.Dialog
                        w1.BorderWidth = ((uint)(2));
                        // Container child dialog1_VBox.Gtk.Box+BoxChild
                        this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
-                       this.table1.Name = "table1";
                        this.table1.RowSpacing = ((uint)(6));
                        this.table1.ColumnSpacing = ((uint)(6));
                        // Container child table1.Gtk.Table+TableChild
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.ProjectsManager.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.ProjectsManager.cs
index 7d50edb..2997e9e 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.ProjectsManager.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.ProjectsManager.cs
@@ -47,6 +47,7 @@ namespace LongoMatch.Gui.Dialog
                        // Container child hbox2.Gtk.Box+BoxChild
                        this.hpaned1 = new global::Gtk.HPaned ();
                        this.hpaned1.CanFocus = true;
+                       this.hpaned1.Name = "hpaned1";
                        this.hpaned1.Position = 349;
                        // Container child hpaned1.Gtk.Paned+PanedChild
                        this.projectlistwidget1 = new global::LongoMatch.Gui.Component.ProjectListWidget ();
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.PropertiesEditor.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.PropertiesEditor.cs
index f731046..28271ee 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.PropertiesEditor.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.PropertiesEditor.cs
@@ -25,6 +25,7 @@ namespace LongoMatch.Gui.Dialog
                        // Container child dialog1_VBox.Gtk.Box+BoxChild
                        this.hpaned1 = new global::Gtk.HPaned ();
                        this.hpaned1.CanFocus = true;
+                       this.hpaned1.Name = "hpaned1";
                        this.hpaned1.Position = 164;
                        // Container child hpaned1.Gtk.Paned+PanedChild
                        this.scrolledwindow1 = new global::Gtk.ScrolledWindow ();
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.SnapshotsDialog.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.SnapshotsDialog.cs
index 2a01d9b..f05bbd6 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.SnapshotsDialog.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.SnapshotsDialog.cs
@@ -29,7 +29,6 @@ namespace LongoMatch.Gui.Dialog
                        w1.BorderWidth = ((uint)(2));
                        // Container child dialog1_VBox.Gtk.Box+BoxChild
                        this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
-                       this.table1.Name = "table1";
                        this.table1.RowSpacing = ((uint)(6));
                        this.table1.ColumnSpacing = ((uint)(6));
                        // Container child table1.Gtk.Table+TableChild
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.SubCategoryTagsEditor.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.SubCategoryTagsEditor.cs
index ca70d6f..8118738 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.SubCategoryTagsEditor.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.SubCategoryTagsEditor.cs
@@ -43,7 +43,6 @@ namespace LongoMatch.Gui.Dialog
                        this.vbox2.Spacing = 6;
                        // Container child vbox2.Gtk.Box+BoxChild
                        this.table1 = new global::Gtk.Table (((uint)(2)), ((uint)(2)), false);
-                       this.table1.Name = "table1";
                        this.table1.RowSpacing = ((uint)(6));
                        this.table1.ColumnSpacing = ((uint)(6));
                        // Container child table1.Gtk.Table+TableChild
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TemplatesManager.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TemplatesManager.cs
index 3613835..a228497 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TemplatesManager.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TemplatesManager.cs
@@ -33,6 +33,7 @@ namespace LongoMatch.Gui.Dialog
                        // Container child dialog1_VBox.Gtk.Box+BoxChild
                        this.hpaned1 = new global::Gtk.HPaned ();
                        this.hpaned1.CanFocus = true;
+                       this.hpaned1.Name = "hpaned1";
                        this.hpaned1.Position = 144;
                        // Container child hpaned1.Gtk.Paned+PanedChild
                        this.vbox2 = new global::Gtk.VBox ();
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.MainWindow.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.MainWindow.cs
index 967a737..f4e4cb6 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.MainWindow.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.MainWindow.cs
@@ -140,7 +140,7 @@ namespace LongoMatch.Gui
                        this.ImportProjectAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Import 
Project");
                        w1.Add (this.ImportProjectAction, "<Control>i");
                        this.ManualTaggingViewAction = new global::Gtk.RadioAction 
("ManualTaggingViewAction", global::Mono.Unix.Catalog.GetString ("Manual tagging view"), null, null, 0);
-                       this.ManualTaggingViewAction.Group = this.TaggingViewAction.Group;
+                       this.ManualTaggingViewAction.Group = this.TimelineViewAction.Group;
                        this.ManualTaggingViewAction.Sensitive = false;
                        this.ManualTaggingViewAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Free 
Capture Mode");
                        w1.Add (this.ManualTaggingViewAction, "<Control>f");
@@ -231,6 +231,7 @@ namespace LongoMatch.Gui
                        // Container child hpaned.Gtk.Paned+PanedChild
                        this.hpaned1 = new global::Gtk.HPaned ();
                        this.hpaned1.CanFocus = true;
+                       this.hpaned1.Name = "hpaned1";
                        this.hpaned1.Position = 952;
                        // Container child hpaned1.Gtk.Paned+PanedChild
                        this.downbox = new global::Gtk.VBox ();
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index 079557a..a7c7a26 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -8033,7 +8033,7 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
       </widget>
     </child>
   </widget>
-  <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.VideoPreferencesPanel" design-size="611 293">
+  <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.VideoPreferencesPanel" design-size="535 337">
     <property name="MemberName" />
     <property name="Visible">False</property>
     <child>
@@ -8041,6 +8041,45 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
         <property name="MemberName" />
         <property name="Spacing">6</property>
         <child>
+          <widget class="Gtk.HBox" id="hbox1">
+            <property name="MemberName" />
+            <property name="Spacing">6</property>
+            <child>
+              <widget class="Gtk.Label" id="label7">
+                <property name="MemberName" />
+                <property name="Xalign">0</property>
+                <property name="LabelProp" translatable="yes">  &lt;b&gt;Framerate&lt;/b&gt;</property>
+                <property name="UseMarkup">True</property>
+              </widget>
+              <packing>
+                <property name="Position">0</property>
+                <property name="AutoSize">False</property>
+              </packing>
+            </child>
+            <child>
+              <widget class="Gtk.ComboBox" id="fpscombobox">
+                <property name="MemberName" />
+                <property name="IsTextCombo">True</property>
+                <property name="Items">25 fps
+30 fps</property>
+                <property name="Active">0</property>
+              </widget>
+              <packing>
+                <property name="Position">1</property>
+                <property name="AutoSize">False</property>
+                <property name="Expand">False</property>
+                <property name="Fill">False</property>
+              </packing>
+            </child>
+          </widget>
+          <packing>
+            <property name="Position">0</property>
+            <property name="AutoSize">True</property>
+            <property name="Expand">False</property>
+            <property name="Fill">False</property>
+          </packing>
+        </child>
+        <child>
           <widget class="Gtk.Frame" id="frame1">
             <property name="MemberName" />
             <property name="ShadowType">None</property>
@@ -8051,13 +8090,19 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
                 <property name="Yalign">0</property>
                 <property name="LeftPadding">12</property>
                 <child>
-                  <widget class="Gtk.Table" id="table1">
+                  <widget class="Gtk.Table" id="rendertable">
                     <property name="MemberName" />
-                    <property name="NRows">3</property>
+                    <property name="NRows">5</property>
                     <property name="NColumns">2</property>
                     <property name="RowSpacing">6</property>
                     <property name="ColumnSpacing">6</property>
                     <child>
+                      <placeholder />
+                    </child>
+                    <child>
+                      <placeholder />
+                    </child>
+                    <child>
                       <widget class="Gtk.Label" id="label1">
                         <property name="MemberName" />
                         <property name="Xalign">0</property>
@@ -8115,6 +8160,46 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
                       </packing>
                     </child>
                     <child>
+                      <widget class="Gtk.Label" id="label8">
+                        <property name="MemberName" />
+                        <property name="Xalign">0</property>
+                        <property name="LabelProp" translatable="yes">Enable sound (experimental)</property>
+                      </widget>
+                      <packing>
+                        <property name="TopAttach">3</property>
+                        <property name="BottomAttach">4</property>
+                        <property name="AutoSize">True</property>
+                        <property name="XOptions">Fill</property>
+                        <property name="YOptions">Fill</property>
+                        <property name="XExpand">False</property>
+                        <property name="XFill">True</property>
+                        <property name="XShrink">False</property>
+                        <property name="YExpand">False</property>
+                        <property name="YFill">True</property>
+                        <property name="YShrink">False</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <widget class="Gtk.Label" id="label9">
+                        <property name="MemberName" />
+                        <property name="Xalign">0</property>
+                        <property name="LabelProp" translatable="yes">Overlay title</property>
+                      </widget>
+                      <packing>
+                        <property name="TopAttach">4</property>
+                        <property name="BottomAttach">5</property>
+                        <property name="AutoSize">True</property>
+                        <property name="XOptions">Fill</property>
+                        <property name="YOptions">Fill</property>
+                        <property name="XExpand">False</property>
+                        <property name="XFill">True</property>
+                        <property name="XShrink">False</property>
+                        <property name="YExpand">False</property>
+                        <property name="YFill">True</property>
+                        <property name="YShrink">False</property>
+                      </packing>
+                    </child>
+                    <child>
                       <widget class="Gtk.ComboBox" id="renderenccombo">
                         <property name="MemberName" />
                         <property name="IsTextCombo">True</property>
@@ -8191,7 +8276,7 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
             </child>
           </widget>
           <packing>
-            <property name="Position">0</property>
+            <property name="Position">1</property>
             <property name="AutoSize">False</property>
             <property name="Expand">False</property>
           </packing>
@@ -8347,7 +8432,7 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
             </child>
           </widget>
           <packing>
-            <property name="Position">1</property>
+            <property name="Position">2</property>
             <property name="AutoSize">False</property>
             <property name="Expand">False</property>
           </packing>



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