[longomatch/livecapture2: 11/31] Add support for live projects in the projects details widget



commit bf2b1391131f594d040c34ced22a124e0c886ba2
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Mar 31 08:58:20 2010 +0200

    Add support for live projects in the projects details widget

 LongoMatch/Gui/Component/ProjectDetailsWidget.cs   |   56 ++-
 ...ongoMatch.Gui.Component.ProjectDetailsWidget.cs |  546 +++++++++++---------
 ...LongoMatch.Gui.Dialog.ProjectSelectionDialog.cs |    1 +
 .../LongoMatch.Gui.Dialog.ProjectsManager.cs       |    4 +-
 LongoMatch/gtk-gui/gui.stetic                      |  282 ++++++++---
 LongoMatch/gtk-gui/objects.xml                     |   20 +-
 6 files changed, 565 insertions(+), 344 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index 338e1fe..7c364ad 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -66,29 +66,37 @@ namespace LongoMatch.Gui.Component
 			FillSections();
 			FillTeamsTemplate();
 
-			this.Use=ProjectType.FileProject;
+			Use=ProjectType.FileProject;
 		}
 
 		public ProjectType Use {
 			set {
-				if (value == ProjectType.FileProject  || value == ProjectType.EditProject
-				    || value == ProjectType.FakeCaptureProject) {
-					videobitratelabel.Visible = false;
-					bitratespinbutton.Visible = false;					
-				}
-				if (value == ProjectType.FakeCaptureProject) {
-					label6.Visible = false;
-					hbox4.Visible = false;
-				}
-				if (value == ProjectType.EditProject) {
-					tagscombobox.Visible = false;
-					localcombobox.Visible = false;
-					visitorcombobox.Visible = false;
-				}
+				bool visible1 = value == ProjectType.CaptureProject; 
+				bool visible2 = value != ProjectType.FakeCaptureProject;
+				bool visible3 = value == ProjectType.EditProject;
+				bool visible4 = visible1 && Environment.OSVersion.Platform == PlatformID.Win32NT;
+				
+				videobitratelabel1.Visible = visible1;
+				videobitratespinbutton.Visible = visible1;	
+				audiobitratelabel.Visible = visible1;
+				audiobitratespinbutton.Visible = visible1;
+								
+				filelabel.Visible = visible2;
+				filehbox.Visible = visible2;
+				
+				tagscombobox.Visible = visible3;
+				localcombobox.Visible = visible3;
+				visitorcombobox.Visible = visible3;
+				
+				videodevice.Visible = visible4;
+				videodevicecombobox.Visible = visible4;
+				audiodevicelabel.Visible = visible4;
+				audiodevicecombobox.Visible = visible4;
+				
 				useType = value;
 			}
 			get {
-				return this.useType;
+				return useType;
 			}
 		}
 
@@ -106,7 +114,7 @@ namespace LongoMatch.Gui.Component
 				return localTeamEntry.Text;
 			}
 			set {
-				this.localTeamEntry.Text = value;
+				localTeamEntry.Text = value;
 			}
 		}
 
@@ -115,7 +123,7 @@ namespace LongoMatch.Gui.Component
 				return visitorTeamEntry.Text;
 			}
 			set {
-				this.visitorTeamEntry.Text = value;
+				visitorTeamEntry.Text = value;
 			}
 		}
 
@@ -142,7 +150,7 @@ namespace LongoMatch.Gui.Component
 				return (int)localSpinButton.Value;
 			}
 			set {
-				this.localSpinButton.Value = value;
+				localSpinButton.Value = value;
 			}
 		}
 
@@ -176,7 +184,7 @@ namespace LongoMatch.Gui.Component
 
 		public Sections Sections {
 			get {
-				return this.actualSection;
+				return actualSection;
 			}
 			set {
 				actualSection = value;
@@ -310,7 +318,7 @@ namespace LongoMatch.Gui.Component
 			}
 			tagscombobox.Active = index;
 			SectionsReader reader = new SectionsReader(System.IO.Path.Combine(MainClass.TemplatesDir(),SectionsFile));
-			this.Sections= reader.GetSections();
+			Sections= reader.GetSections();
 		}
 
 		private void FillTeamsTemplate() {
@@ -343,8 +351,8 @@ namespace LongoMatch.Gui.Component
 		{
 			FileChooserDialog fChooser = null;
 
-			if (this.useType == ProjectType.CaptureProject) {
-				fChooser = new FileChooserDialog(Catalog.GetString("Save File as..."),
+			if (useType == ProjectType.CaptureProject) {
+				fChooser = new FileChooserDialog(Catalog.GetString("Output file"),
 				                                 (Gtk.Window)this.Toplevel,
 				                                 FileChooserAction.Save,
 				                                 "gtk-cancel",ResponseType.Cancel,
@@ -431,7 +439,7 @@ namespace LongoMatch.Gui.Component
 			ted.Project = project;
 			ted.CanExport = Use == ProjectType.EditProject;
 			if (ted.Run() == (int)ResponseType.Apply) {
-				this.Sections = ted.Sections;
+				Sections = ted.Sections;
 			}
 			ted.Destroy();
 			OnEdited(this,null);
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs
index 5bbb162..661b7df 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ProjectDetailsWidget.cs
@@ -17,12 +17,26 @@ namespace LongoMatch.Gui.Component {
         
         private Gtk.Table table1;
         
-        private Gtk.SpinButton bitratespinbutton;
+        private Gtk.Label audiobitratelabel;
+        
+        private Gtk.SpinButton audiobitratespinbutton;
+        
+        private Gtk.ComboBox audiodevicecombobox;
+        
+        private Gtk.Label audiodevicelabel;
         
         private Gtk.Entry competitionentry;
         
         private Gtk.Label Competitionlabel;
         
+        private Gtk.HBox filehbox;
+        
+        private Gtk.Entry fileEntry;
+        
+        private Gtk.Button openbutton;
+        
+        private Gtk.Label filelabel;
+        
         private Gtk.HBox hbox1;
         
         private Gtk.ComboBox localcombobox;
@@ -41,12 +55,6 @@ namespace LongoMatch.Gui.Component {
         
         private Gtk.Button editbutton;
         
-        private Gtk.HBox hbox4;
-        
-        private Gtk.Entry fileEntry;
-        
-        private Gtk.Button openbutton;
-        
         private Gtk.HBox hbox5;
         
         private Gtk.Entry dateEntry;
@@ -61,8 +69,6 @@ namespace LongoMatch.Gui.Component {
         
         private Gtk.Label label5;
         
-        private Gtk.Label label6;
-        
         private Gtk.Label label8;
         
         private Gtk.Label label9;
@@ -77,7 +83,13 @@ namespace LongoMatch.Gui.Component {
         
         private Gtk.Label seasonlabel;
         
-        private Gtk.Label videobitratelabel;
+        private Gtk.Label videobitratelabel1;
+        
+        private Gtk.SpinButton videobitratespinbutton;
+        
+        private Gtk.Label videodevice;
+        
+        private Gtk.ComboBox videodevicecombobox;
         
         private Gtk.SpinButton visitorSpinButton;
         
@@ -95,50 +107,123 @@ namespace LongoMatch.Gui.Component {
             this.vbox2.Name = "vbox2";
             this.vbox2.Spacing = 6;
             // Container child vbox2.Gtk.Box+BoxChild
-            this.table1 = new Gtk.Table(((uint)(12)), ((uint)(2)), false);
+            this.table1 = new Gtk.Table(((uint)(15)), ((uint)(2)), false);
             this.table1.Name = "table1";
             this.table1.RowSpacing = ((uint)(6));
             this.table1.ColumnSpacing = ((uint)(6));
             // Container child table1.Gtk.Table+TableChild
-            this.bitratespinbutton = new Gtk.SpinButton(1000, 8000, 1);
-            this.bitratespinbutton.CanFocus = true;
-            this.bitratespinbutton.Name = "bitratespinbutton";
-            this.bitratespinbutton.Adjustment.PageIncrement = 10;
-            this.bitratespinbutton.ClimbRate = 1;
-            this.bitratespinbutton.Numeric = true;
-            this.bitratespinbutton.Value = 4000;
-            this.table1.Add(this.bitratespinbutton);
-            Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.bitratespinbutton]));
-            w1.TopAttach = ((uint)(11));
-            w1.BottomAttach = ((uint)(12));
-            w1.LeftAttach = ((uint)(1));
-            w1.RightAttach = ((uint)(2));
-            w1.XOptions = ((Gtk.AttachOptions)(0));
+            this.audiobitratelabel = new Gtk.Label();
+            this.audiobitratelabel.Name = "audiobitratelabel";
+            this.audiobitratelabel.LabelProp = Mono.Unix.Catalog.GetString("Audio Bitrate (kbps):");
+            this.table1.Add(this.audiobitratelabel);
+            Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.audiobitratelabel]));
+            w1.TopAttach = ((uint)(14));
+            w1.BottomAttach = ((uint)(15));
+            w1.XOptions = ((Gtk.AttachOptions)(4));
             w1.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
+            this.audiobitratespinbutton = new Gtk.SpinButton(0, 360, 1);
+            this.audiobitratespinbutton.CanFocus = true;
+            this.audiobitratespinbutton.Name = "audiobitratespinbutton";
+            this.audiobitratespinbutton.Adjustment.PageIncrement = 10;
+            this.audiobitratespinbutton.ClimbRate = 1;
+            this.audiobitratespinbutton.Numeric = true;
+            this.audiobitratespinbutton.Value = 64;
+            this.table1.Add(this.audiobitratespinbutton);
+            Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.audiobitratespinbutton]));
+            w2.TopAttach = ((uint)(14));
+            w2.BottomAttach = ((uint)(15));
+            w2.LeftAttach = ((uint)(1));
+            w2.RightAttach = ((uint)(2));
+            w2.XOptions = ((Gtk.AttachOptions)(0));
+            w2.YOptions = ((Gtk.AttachOptions)(0));
+            // Container child table1.Gtk.Table+TableChild
+            this.audiodevicecombobox = Gtk.ComboBox.NewText();
+            this.audiodevicecombobox.Name = "audiodevicecombobox";
+            this.table1.Add(this.audiodevicecombobox);
+            Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.audiodevicecombobox]));
+            w3.TopAttach = ((uint)(12));
+            w3.BottomAttach = ((uint)(13));
+            w3.LeftAttach = ((uint)(1));
+            w3.RightAttach = ((uint)(2));
+            w3.XOptions = ((Gtk.AttachOptions)(4));
+            w3.YOptions = ((Gtk.AttachOptions)(0));
+            // Container child table1.Gtk.Table+TableChild
+            this.audiodevicelabel = new Gtk.Label();
+            this.audiodevicelabel.Name = "audiodevicelabel";
+            this.audiodevicelabel.LabelProp = Mono.Unix.Catalog.GetString("Audio Device:");
+            this.table1.Add(this.audiodevicelabel);
+            Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.audiodevicelabel]));
+            w4.TopAttach = ((uint)(12));
+            w4.BottomAttach = ((uint)(13));
+            w4.XOptions = ((Gtk.AttachOptions)(4));
+            w4.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
             this.competitionentry = new Gtk.Entry();
             this.competitionentry.CanFocus = true;
             this.competitionentry.Name = "competitionentry";
             this.competitionentry.IsEditable = true;
             this.competitionentry.InvisibleChar = 'â??';
             this.table1.Add(this.competitionentry);
-            Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.competitionentry]));
-            w2.TopAttach = ((uint)(5));
-            w2.BottomAttach = ((uint)(6));
-            w2.LeftAttach = ((uint)(1));
-            w2.RightAttach = ((uint)(2));
-            w2.XOptions = ((Gtk.AttachOptions)(4));
-            w2.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.competitionentry]));
+            w5.TopAttach = ((uint)(5));
+            w5.BottomAttach = ((uint)(6));
+            w5.LeftAttach = ((uint)(1));
+            w5.RightAttach = ((uint)(2));
+            w5.XOptions = ((Gtk.AttachOptions)(4));
+            w5.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.Competitionlabel = new Gtk.Label();
             this.Competitionlabel.Name = "Competitionlabel";
             this.Competitionlabel.LabelProp = Mono.Unix.Catalog.GetString("Competition:");
             this.table1.Add(this.Competitionlabel);
-            Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.Competitionlabel]));
-            w3.TopAttach = ((uint)(5));
-            w3.BottomAttach = ((uint)(6));
-            w3.XOptions = ((Gtk.AttachOptions)(4));
-            w3.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.Competitionlabel]));
+            w6.TopAttach = ((uint)(5));
+            w6.BottomAttach = ((uint)(6));
+            w6.XOptions = ((Gtk.AttachOptions)(4));
+            w6.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
+            this.filehbox = new Gtk.HBox();
+            this.filehbox.Name = "filehbox";
+            this.filehbox.Spacing = 6;
+            // Container child filehbox.Gtk.Box+BoxChild
+            this.fileEntry = new Gtk.Entry();
+            this.fileEntry.CanFocus = true;
+            this.fileEntry.Name = "fileEntry";
+            this.fileEntry.IsEditable = false;
+            this.fileEntry.InvisibleChar = 'â??';
+            this.filehbox.Add(this.fileEntry);
+            Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.filehbox[this.fileEntry]));
+            w7.Position = 0;
+            // Container child filehbox.Gtk.Box+BoxChild
+            this.openbutton = new Gtk.Button();
+            this.openbutton.CanFocus = true;
+            this.openbutton.Name = "openbutton";
+            this.openbutton.UseStock = true;
+            this.openbutton.UseUnderline = true;
+            this.openbutton.Label = "gtk-open";
+            this.filehbox.Add(this.openbutton);
+            Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.filehbox[this.openbutton]));
+            w8.Position = 1;
+            w8.Expand = false;
+            this.table1.Add(this.filehbox);
+            Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.filehbox]));
+            w9.TopAttach = ((uint)(10));
+            w9.BottomAttach = ((uint)(11));
+            w9.LeftAttach = ((uint)(1));
+            w9.RightAttach = ((uint)(2));
+            w9.XOptions = ((Gtk.AttachOptions)(4));
+            w9.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
+            this.filelabel = new Gtk.Label();
+            this.filelabel.Name = "filelabel";
+            this.filelabel.LabelProp = Mono.Unix.Catalog.GetString("File:");
+            this.table1.Add(this.filelabel);
+            Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.filelabel]));
+            w10.TopAttach = ((uint)(10));
+            w10.BottomAttach = ((uint)(11));
+            w10.XOptions = ((Gtk.AttachOptions)(4));
+            w10.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.hbox1 = new Gtk.HBox();
             this.hbox1.Name = "hbox1";
@@ -147,8 +232,8 @@ namespace LongoMatch.Gui.Component {
             this.localcombobox = Gtk.ComboBox.NewText();
             this.localcombobox.Name = "localcombobox";
             this.hbox1.Add(this.localcombobox);
-            Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.localcombobox]));
-            w4.Position = 0;
+            Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.localcombobox]));
+            w11.Position = 0;
             // Container child hbox1.Gtk.Box+BoxChild
             this.localtemplatebutton = new Gtk.Button();
             this.localtemplatebutton.CanFocus = true;
@@ -157,19 +242,19 @@ namespace LongoMatch.Gui.Component {
             this.localtemplatebutton.UseUnderline = true;
             this.localtemplatebutton.Label = "gtk-edit";
             this.hbox1.Add(this.localtemplatebutton);
-            Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.localtemplatebutton]));
-            w5.PackType = ((Gtk.PackType)(1));
-            w5.Position = 1;
-            w5.Expand = false;
-            w5.Fill = false;
+            Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.localtemplatebutton]));
+            w12.PackType = ((Gtk.PackType)(1));
+            w12.Position = 1;
+            w12.Expand = false;
+            w12.Fill = false;
             this.table1.Add(this.hbox1);
-            Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.hbox1]));
-            w6.TopAttach = ((uint)(7));
-            w6.BottomAttach = ((uint)(8));
-            w6.LeftAttach = ((uint)(1));
-            w6.RightAttach = ((uint)(2));
-            w6.XOptions = ((Gtk.AttachOptions)(4));
-            w6.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.hbox1]));
+            w13.TopAttach = ((uint)(7));
+            w13.BottomAttach = ((uint)(8));
+            w13.LeftAttach = ((uint)(1));
+            w13.RightAttach = ((uint)(2));
+            w13.XOptions = ((Gtk.AttachOptions)(4));
+            w13.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.hbox2 = new Gtk.HBox();
             this.hbox2.Name = "hbox2";
@@ -178,8 +263,8 @@ namespace LongoMatch.Gui.Component {
             this.visitorcombobox = Gtk.ComboBox.NewText();
             this.visitorcombobox.Name = "visitorcombobox";
             this.hbox2.Add(this.visitorcombobox);
-            Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.visitorcombobox]));
-            w7.Position = 0;
+            Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.visitorcombobox]));
+            w14.Position = 0;
             // Container child hbox2.Gtk.Box+BoxChild
             this.visitorbutton = new Gtk.Button();
             this.visitorbutton.CanFocus = true;
@@ -188,19 +273,19 @@ namespace LongoMatch.Gui.Component {
             this.visitorbutton.UseUnderline = true;
             this.visitorbutton.Label = "gtk-edit";
             this.hbox2.Add(this.visitorbutton);
-            Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox2[this.visitorbutton]));
-            w8.PackType = ((Gtk.PackType)(1));
-            w8.Position = 1;
-            w8.Expand = false;
-            w8.Fill = false;
+            Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.visitorbutton]));
+            w15.PackType = ((Gtk.PackType)(1));
+            w15.Position = 1;
+            w15.Expand = false;
+            w15.Fill = false;
             this.table1.Add(this.hbox2);
-            Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.hbox2]));
-            w9.TopAttach = ((uint)(8));
-            w9.BottomAttach = ((uint)(9));
-            w9.LeftAttach = ((uint)(1));
-            w9.RightAttach = ((uint)(2));
-            w9.XOptions = ((Gtk.AttachOptions)(4));
-            w9.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.hbox2]));
+            w16.TopAttach = ((uint)(8));
+            w16.BottomAttach = ((uint)(9));
+            w16.LeftAttach = ((uint)(1));
+            w16.RightAttach = ((uint)(2));
+            w16.XOptions = ((Gtk.AttachOptions)(4));
+            w16.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.hbox3 = new Gtk.HBox();
             this.hbox3.Name = "hbox3";
@@ -209,8 +294,8 @@ namespace LongoMatch.Gui.Component {
             this.tagscombobox = Gtk.ComboBox.NewText();
             this.tagscombobox.Name = "tagscombobox";
             this.hbox3.Add(this.tagscombobox);
-            Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.tagscombobox]));
-            w10.Position = 0;
+            Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.tagscombobox]));
+            w17.Position = 0;
             // Container child hbox3.Gtk.Box+BoxChild
             this.editbutton = new Gtk.Button();
             this.editbutton.CanFocus = true;
@@ -219,51 +304,19 @@ namespace LongoMatch.Gui.Component {
             this.editbutton.UseUnderline = true;
             this.editbutton.Label = "gtk-edit";
             this.hbox3.Add(this.editbutton);
-            Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox3[this.editbutton]));
-            w11.PackType = ((Gtk.PackType)(1));
-            w11.Position = 1;
-            w11.Expand = false;
-            w11.Fill = false;
+            Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.editbutton]));
+            w18.PackType = ((Gtk.PackType)(1));
+            w18.Position = 1;
+            w18.Expand = false;
+            w18.Fill = false;
             this.table1.Add(this.hbox3);
-            Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.hbox3]));
-            w12.TopAttach = ((uint)(6));
-            w12.BottomAttach = ((uint)(7));
-            w12.LeftAttach = ((uint)(1));
-            w12.RightAttach = ((uint)(2));
-            w12.XOptions = ((Gtk.AttachOptions)(4));
-            w12.YOptions = ((Gtk.AttachOptions)(4));
-            // Container child table1.Gtk.Table+TableChild
-            this.hbox4 = new Gtk.HBox();
-            this.hbox4.Name = "hbox4";
-            this.hbox4.Spacing = 6;
-            // Container child hbox4.Gtk.Box+BoxChild
-            this.fileEntry = new Gtk.Entry();
-            this.fileEntry.CanFocus = true;
-            this.fileEntry.Name = "fileEntry";
-            this.fileEntry.IsEditable = false;
-            this.fileEntry.InvisibleChar = 'â??';
-            this.hbox4.Add(this.fileEntry);
-            Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox4[this.fileEntry]));
-            w13.Position = 0;
-            // Container child hbox4.Gtk.Box+BoxChild
-            this.openbutton = new Gtk.Button();
-            this.openbutton.CanFocus = true;
-            this.openbutton.Name = "openbutton";
-            this.openbutton.UseStock = true;
-            this.openbutton.UseUnderline = true;
-            this.openbutton.Label = "gtk-open";
-            this.hbox4.Add(this.openbutton);
-            Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox4[this.openbutton]));
-            w14.Position = 1;
-            w14.Expand = false;
-            this.table1.Add(this.hbox4);
-            Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.hbox4]));
-            w15.TopAttach = ((uint)(10));
-            w15.BottomAttach = ((uint)(11));
-            w15.LeftAttach = ((uint)(1));
-            w15.RightAttach = ((uint)(2));
-            w15.XOptions = ((Gtk.AttachOptions)(4));
-            w15.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.hbox3]));
+            w19.TopAttach = ((uint)(6));
+            w19.BottomAttach = ((uint)(7));
+            w19.LeftAttach = ((uint)(1));
+            w19.RightAttach = ((uint)(2));
+            w19.XOptions = ((Gtk.AttachOptions)(4));
+            w19.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.hbox5 = new Gtk.HBox();
             this.hbox5.Name = "hbox5";
@@ -274,109 +327,99 @@ namespace LongoMatch.Gui.Component {
             this.dateEntry.IsEditable = false;
             this.dateEntry.InvisibleChar = 'â??';
             this.hbox5.Add(this.dateEntry);
-            Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox5[this.dateEntry]));
-            w16.Position = 0;
+            Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox5[this.dateEntry]));
+            w20.Position = 0;
             // Container child hbox5.Gtk.Box+BoxChild
             this.calendarbutton = new Gtk.Button();
             this.calendarbutton.CanFocus = true;
             this.calendarbutton.Name = "calendarbutton";
             this.calendarbutton.UseUnderline = true;
             // Container child calendarbutton.Gtk.Container+ContainerChild
-            Gtk.Alignment w17 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
+            Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
             // Container child GtkAlignment.Gtk.Container+ContainerChild
-            Gtk.HBox w18 = new Gtk.HBox();
-            w18.Spacing = 2;
+            Gtk.HBox w22 = new Gtk.HBox();
+            w22.Spacing = 2;
             // Container child GtkHBox.Gtk.Container+ContainerChild
-            Gtk.Image w19 = new Gtk.Image();
-            w19.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_calendar", Gtk.IconSize.Button, 20);
-            w18.Add(w19);
+            Gtk.Image w23 = new Gtk.Image();
+            w23.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_calendar", Gtk.IconSize.Button, 20);
+            w22.Add(w23);
             // Container child GtkHBox.Gtk.Container+ContainerChild
-            Gtk.Label w21 = new Gtk.Label();
-            w21.LabelProp = Mono.Unix.Catalog.GetString("_Calendar");
-            w21.UseUnderline = true;
-            w18.Add(w21);
-            w17.Add(w18);
-            this.calendarbutton.Add(w17);
+            Gtk.Label w25 = new Gtk.Label();
+            w25.LabelProp = Mono.Unix.Catalog.GetString("_Calendar");
+            w25.UseUnderline = true;
+            w22.Add(w25);
+            w21.Add(w22);
+            this.calendarbutton.Add(w21);
             this.hbox5.Add(this.calendarbutton);
-            Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.hbox5[this.calendarbutton]));
-            w25.Position = 1;
-            w25.Expand = false;
-            w25.Fill = false;
+            Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox5[this.calendarbutton]));
+            w29.Position = 1;
+            w29.Expand = false;
+            w29.Fill = false;
             this.table1.Add(this.hbox5);
-            Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.hbox5]));
-            w26.TopAttach = ((uint)(9));
-            w26.BottomAttach = ((uint)(10));
-            w26.LeftAttach = ((uint)(1));
-            w26.RightAttach = ((uint)(2));
-            w26.YOptions = ((Gtk.AttachOptions)(1));
+            Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table1[this.hbox5]));
+            w30.TopAttach = ((uint)(9));
+            w30.BottomAttach = ((uint)(10));
+            w30.LeftAttach = ((uint)(1));
+            w30.RightAttach = ((uint)(2));
+            w30.YOptions = ((Gtk.AttachOptions)(1));
             // Container child table1.Gtk.Table+TableChild
             this.label10 = new Gtk.Label();
             this.label10.Name = "label10";
             this.label10.LabelProp = Mono.Unix.Catalog.GetString("Visitor Team:");
             this.table1.Add(this.label10);
-            Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table1[this.label10]));
-            w27.TopAttach = ((uint)(1));
-            w27.BottomAttach = ((uint)(2));
-            w27.XOptions = ((Gtk.AttachOptions)(4));
-            w27.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table1[this.label10]));
+            w31.TopAttach = ((uint)(1));
+            w31.BottomAttach = ((uint)(2));
+            w31.XOptions = ((Gtk.AttachOptions)(4));
+            w31.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.label11 = new Gtk.Label();
             this.label11.Name = "label11";
             this.label11.LabelProp = Mono.Unix.Catalog.GetString("Local Goals:");
             this.table1.Add(this.label11);
-            Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table1[this.label11]));
-            w28.TopAttach = ((uint)(2));
-            w28.BottomAttach = ((uint)(3));
-            w28.XOptions = ((Gtk.AttachOptions)(4));
-            w28.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table1[this.label11]));
+            w32.TopAttach = ((uint)(2));
+            w32.BottomAttach = ((uint)(3));
+            w32.XOptions = ((Gtk.AttachOptions)(4));
+            w32.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.label12 = new Gtk.Label();
             this.label12.Name = "label12";
             this.label12.LabelProp = Mono.Unix.Catalog.GetString("Visitor Goals:");
             this.table1.Add(this.label12);
-            Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table1[this.label12]));
-            w29.TopAttach = ((uint)(3));
-            w29.BottomAttach = ((uint)(4));
-            w29.XOptions = ((Gtk.AttachOptions)(4));
-            w29.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(this.table1[this.label12]));
+            w33.TopAttach = ((uint)(3));
+            w33.BottomAttach = ((uint)(4));
+            w33.XOptions = ((Gtk.AttachOptions)(4));
+            w33.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.label5 = new Gtk.Label();
             this.label5.Name = "label5";
             this.label5.LabelProp = Mono.Unix.Catalog.GetString("Date:");
             this.table1.Add(this.label5);
-            Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
-            w30.TopAttach = ((uint)(9));
-            w30.BottomAttach = ((uint)(10));
-            w30.XOptions = ((Gtk.AttachOptions)(4));
-            w30.YOptions = ((Gtk.AttachOptions)(4));
-            // Container child table1.Gtk.Table+TableChild
-            this.label6 = new Gtk.Label();
-            this.label6.Name = "label6";
-            this.label6.LabelProp = Mono.Unix.Catalog.GetString("File:");
-            this.table1.Add(this.label6);
-            Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table1[this.label6]));
-            w31.TopAttach = ((uint)(10));
-            w31.BottomAttach = ((uint)(11));
-            w31.XOptions = ((Gtk.AttachOptions)(4));
-            w31.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
+            w34.TopAttach = ((uint)(9));
+            w34.BottomAttach = ((uint)(10));
+            w34.XOptions = ((Gtk.AttachOptions)(4));
+            w34.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.label8 = new Gtk.Label();
             this.label8.Name = "label8";
             this.label8.LabelProp = Mono.Unix.Catalog.GetString("Local Team:");
             this.table1.Add(this.label8);
-            Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table1[this.label8]));
-            w32.XOptions = ((Gtk.AttachOptions)(4));
-            w32.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table1[this.label8]));
+            w35.XOptions = ((Gtk.AttachOptions)(4));
+            w35.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.label9 = new Gtk.Label();
             this.label9.Name = "label9";
             this.label9.LabelProp = Mono.Unix.Catalog.GetString("Categories Template:");
             this.table1.Add(this.label9);
-            Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(this.table1[this.label9]));
-            w33.TopAttach = ((uint)(6));
-            w33.BottomAttach = ((uint)(7));
-            w33.XOptions = ((Gtk.AttachOptions)(4));
-            w33.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w36 = ((Gtk.Table.TableChild)(this.table1[this.label9]));
+            w36.TopAttach = ((uint)(6));
+            w36.BottomAttach = ((uint)(7));
+            w36.XOptions = ((Gtk.AttachOptions)(4));
+            w36.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.localSpinButton = new Gtk.SpinButton(0, 1000, 1);
             this.localSpinButton.CanFocus = true;
@@ -385,13 +428,13 @@ namespace LongoMatch.Gui.Component {
             this.localSpinButton.ClimbRate = 1;
             this.localSpinButton.Numeric = true;
             this.table1.Add(this.localSpinButton);
-            Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table1[this.localSpinButton]));
-            w34.TopAttach = ((uint)(2));
-            w34.BottomAttach = ((uint)(3));
-            w34.LeftAttach = ((uint)(1));
-            w34.RightAttach = ((uint)(2));
-            w34.XOptions = ((Gtk.AttachOptions)(1));
-            w34.YOptions = ((Gtk.AttachOptions)(1));
+            Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(this.table1[this.localSpinButton]));
+            w37.TopAttach = ((uint)(2));
+            w37.BottomAttach = ((uint)(3));
+            w37.LeftAttach = ((uint)(1));
+            w37.RightAttach = ((uint)(2));
+            w37.XOptions = ((Gtk.AttachOptions)(1));
+            w37.YOptions = ((Gtk.AttachOptions)(1));
             // Container child table1.Gtk.Table+TableChild
             this.localTeamEntry = new Gtk.Entry();
             this.localTeamEntry.CanFocus = true;
@@ -399,19 +442,19 @@ namespace LongoMatch.Gui.Component {
             this.localTeamEntry.IsEditable = true;
             this.localTeamEntry.InvisibleChar = 'â??';
             this.table1.Add(this.localTeamEntry);
-            Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table1[this.localTeamEntry]));
-            w35.LeftAttach = ((uint)(1));
-            w35.RightAttach = ((uint)(2));
+            Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table1[this.localTeamEntry]));
+            w38.LeftAttach = ((uint)(1));
+            w38.RightAttach = ((uint)(2));
             // Container child table1.Gtk.Table+TableChild
             this.localteamtemplatelabel = new Gtk.Label();
             this.localteamtemplatelabel.Name = "localteamtemplatelabel";
             this.localteamtemplatelabel.LabelProp = Mono.Unix.Catalog.GetString("Visitor Team Template");
             this.table1.Add(this.localteamtemplatelabel);
-            Gtk.Table.TableChild w36 = ((Gtk.Table.TableChild)(this.table1[this.localteamtemplatelabel]));
-            w36.TopAttach = ((uint)(8));
-            w36.BottomAttach = ((uint)(9));
-            w36.XOptions = ((Gtk.AttachOptions)(4));
-            w36.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(this.table1[this.localteamtemplatelabel]));
+            w39.TopAttach = ((uint)(8));
+            w39.BottomAttach = ((uint)(9));
+            w39.XOptions = ((Gtk.AttachOptions)(4));
+            w39.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.seasonentry = new Gtk.Entry();
             this.seasonentry.CanFocus = true;
@@ -419,33 +462,70 @@ namespace LongoMatch.Gui.Component {
             this.seasonentry.IsEditable = true;
             this.seasonentry.InvisibleChar = 'â??';
             this.table1.Add(this.seasonentry);
-            Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(this.table1[this.seasonentry]));
-            w37.TopAttach = ((uint)(4));
-            w37.BottomAttach = ((uint)(5));
-            w37.LeftAttach = ((uint)(1));
-            w37.RightAttach = ((uint)(2));
-            w37.XOptions = ((Gtk.AttachOptions)(4));
-            w37.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w40 = ((Gtk.Table.TableChild)(this.table1[this.seasonentry]));
+            w40.TopAttach = ((uint)(4));
+            w40.BottomAttach = ((uint)(5));
+            w40.LeftAttach = ((uint)(1));
+            w40.RightAttach = ((uint)(2));
+            w40.XOptions = ((Gtk.AttachOptions)(4));
+            w40.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.seasonlabel = new Gtk.Label();
             this.seasonlabel.Name = "seasonlabel";
             this.seasonlabel.LabelProp = Mono.Unix.Catalog.GetString("Season:");
             this.table1.Add(this.seasonlabel);
-            Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table1[this.seasonlabel]));
-            w38.TopAttach = ((uint)(4));
-            w38.BottomAttach = ((uint)(5));
-            w38.XOptions = ((Gtk.AttachOptions)(4));
-            w38.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table1[this.seasonlabel]));
+            w41.TopAttach = ((uint)(4));
+            w41.BottomAttach = ((uint)(5));
+            w41.XOptions = ((Gtk.AttachOptions)(4));
+            w41.YOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
-            this.videobitratelabel = new Gtk.Label();
-            this.videobitratelabel.Name = "videobitratelabel";
-            this.videobitratelabel.LabelProp = Mono.Unix.Catalog.GetString("Video Bitrate:");
-            this.table1.Add(this.videobitratelabel);
-            Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(this.table1[this.videobitratelabel]));
-            w39.TopAttach = ((uint)(11));
-            w39.BottomAttach = ((uint)(12));
-            w39.XOptions = ((Gtk.AttachOptions)(4));
-            w39.YOptions = ((Gtk.AttachOptions)(4));
+            this.videobitratelabel1 = new Gtk.Label();
+            this.videobitratelabel1.Name = "videobitratelabel1";
+            this.videobitratelabel1.LabelProp = Mono.Unix.Catalog.GetString("Video Bitrate (kbps):");
+            this.table1.Add(this.videobitratelabel1);
+            Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table1[this.videobitratelabel1]));
+            w42.TopAttach = ((uint)(13));
+            w42.BottomAttach = ((uint)(14));
+            w42.XOptions = ((Gtk.AttachOptions)(4));
+            w42.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
+            this.videobitratespinbutton = new Gtk.SpinButton(1000, 8000, 1);
+            this.videobitratespinbutton.CanFocus = true;
+            this.videobitratespinbutton.Name = "videobitratespinbutton";
+            this.videobitratespinbutton.Adjustment.PageIncrement = 10;
+            this.videobitratespinbutton.ClimbRate = 1;
+            this.videobitratespinbutton.Numeric = true;
+            this.videobitratespinbutton.Value = 4000;
+            this.table1.Add(this.videobitratespinbutton);
+            Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table1[this.videobitratespinbutton]));
+            w43.TopAttach = ((uint)(13));
+            w43.BottomAttach = ((uint)(14));
+            w43.LeftAttach = ((uint)(1));
+            w43.RightAttach = ((uint)(2));
+            w43.XOptions = ((Gtk.AttachOptions)(0));
+            w43.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
+            this.videodevice = new Gtk.Label();
+            this.videodevice.Name = "videodevice";
+            this.videodevice.LabelProp = Mono.Unix.Catalog.GetString("Video Device:");
+            this.table1.Add(this.videodevice);
+            Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table1[this.videodevice]));
+            w44.TopAttach = ((uint)(11));
+            w44.BottomAttach = ((uint)(12));
+            w44.XOptions = ((Gtk.AttachOptions)(4));
+            w44.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
+            this.videodevicecombobox = Gtk.ComboBox.NewText();
+            this.videodevicecombobox.Name = "videodevicecombobox";
+            this.table1.Add(this.videodevicecombobox);
+            Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(this.table1[this.videodevicecombobox]));
+            w45.TopAttach = ((uint)(11));
+            w45.BottomAttach = ((uint)(12));
+            w45.LeftAttach = ((uint)(1));
+            w45.RightAttach = ((uint)(2));
+            w45.XOptions = ((Gtk.AttachOptions)(4));
+            w45.YOptions = ((Gtk.AttachOptions)(0));
             // Container child table1.Gtk.Table+TableChild
             this.visitorSpinButton = new Gtk.SpinButton(0, 1000, 1);
             this.visitorSpinButton.CanFocus = true;
@@ -454,13 +534,13 @@ namespace LongoMatch.Gui.Component {
             this.visitorSpinButton.ClimbRate = 1;
             this.visitorSpinButton.Numeric = true;
             this.table1.Add(this.visitorSpinButton);
-            Gtk.Table.TableChild w40 = ((Gtk.Table.TableChild)(this.table1[this.visitorSpinButton]));
-            w40.TopAttach = ((uint)(3));
-            w40.BottomAttach = ((uint)(4));
-            w40.LeftAttach = ((uint)(1));
-            w40.RightAttach = ((uint)(2));
-            w40.XOptions = ((Gtk.AttachOptions)(1));
-            w40.YOptions = ((Gtk.AttachOptions)(1));
+            Gtk.Table.TableChild w46 = ((Gtk.Table.TableChild)(this.table1[this.visitorSpinButton]));
+            w46.TopAttach = ((uint)(3));
+            w46.BottomAttach = ((uint)(4));
+            w46.LeftAttach = ((uint)(1));
+            w46.RightAttach = ((uint)(2));
+            w46.XOptions = ((Gtk.AttachOptions)(1));
+            w46.YOptions = ((Gtk.AttachOptions)(1));
             // Container child table1.Gtk.Table+TableChild
             this.visitorTeamEntry = new Gtk.Entry();
             this.visitorTeamEntry.CanFocus = true;
@@ -468,31 +548,33 @@ namespace LongoMatch.Gui.Component {
             this.visitorTeamEntry.IsEditable = true;
             this.visitorTeamEntry.InvisibleChar = 'â??';
             this.table1.Add(this.visitorTeamEntry);
-            Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table1[this.visitorTeamEntry]));
-            w41.TopAttach = ((uint)(1));
-            w41.BottomAttach = ((uint)(2));
-            w41.LeftAttach = ((uint)(1));
-            w41.RightAttach = ((uint)(2));
-            w41.XOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(this.table1[this.visitorTeamEntry]));
+            w47.TopAttach = ((uint)(1));
+            w47.BottomAttach = ((uint)(2));
+            w47.LeftAttach = ((uint)(1));
+            w47.RightAttach = ((uint)(2));
+            w47.XOptions = ((Gtk.AttachOptions)(4));
             // Container child table1.Gtk.Table+TableChild
             this.visitorteamtemplatelabel = new Gtk.Label();
             this.visitorteamtemplatelabel.Name = "visitorteamtemplatelabel";
             this.visitorteamtemplatelabel.LabelProp = Mono.Unix.Catalog.GetString("Local Team Template");
             this.table1.Add(this.visitorteamtemplatelabel);
-            Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table1[this.visitorteamtemplatelabel]));
-            w42.TopAttach = ((uint)(7));
-            w42.BottomAttach = ((uint)(8));
-            w42.XOptions = ((Gtk.AttachOptions)(4));
-            w42.YOptions = ((Gtk.AttachOptions)(4));
+            Gtk.Table.TableChild w48 = ((Gtk.Table.TableChild)(this.table1[this.visitorteamtemplatelabel]));
+            w48.TopAttach = ((uint)(7));
+            w48.BottomAttach = ((uint)(8));
+            w48.XOptions = ((Gtk.AttachOptions)(4));
+            w48.YOptions = ((Gtk.AttachOptions)(4));
             this.vbox2.Add(this.table1);
-            Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1]));
-            w43.Position = 0;
+            Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1]));
+            w49.Position = 0;
             this.Add(this.vbox2);
             if ((this.Child != null)) {
                 this.Child.ShowAll();
             }
+            this.audiodevicelabel.Hide();
             this.editbutton.Hide();
-            this.videobitratelabel.Hide();
+            this.videobitratelabel1.Hide();
+            this.videodevice.Hide();
             this.Show();
             this.visitorTeamEntry.Changed += new System.EventHandler(this.OnEdited);
             this.visitorSpinButton.ValueChanged += new System.EventHandler(this.OnEdited);
@@ -501,14 +583,14 @@ namespace LongoMatch.Gui.Component {
             this.localSpinButton.ValueChanged += new System.EventHandler(this.OnEdited);
             this.dateEntry.Changed += new System.EventHandler(this.OnEdited);
             this.calendarbutton.Clicked += new System.EventHandler(this.OnCalendarbuttonClicked);
-            this.fileEntry.Changed += new System.EventHandler(this.OnEdited);
-            this.openbutton.Clicked += new System.EventHandler(this.OnOpenbuttonClicked);
             this.tagscombobox.Changed += new System.EventHandler(this.OnCombobox1Changed);
             this.editbutton.Clicked += new System.EventHandler(this.OnEditbuttonClicked);
             this.visitorcombobox.Changed += new System.EventHandler(this.OnVisitorcomboboxChanged);
             this.visitorbutton.Clicked += new System.EventHandler(this.OnVisitorbuttonClicked);
             this.localcombobox.Changed += new System.EventHandler(this.OnLocalcomboboxChanged);
             this.localtemplatebutton.Clicked += new System.EventHandler(this.OnLocaltemplatebuttonClicked);
+            this.fileEntry.Changed += new System.EventHandler(this.OnEdited);
+            this.openbutton.Clicked += new System.EventHandler(this.OnOpenbuttonClicked);
             this.competitionentry.Changed += new System.EventHandler(this.OnEdited);
         }
     }
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.ProjectSelectionDialog.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.ProjectSelectionDialog.cs
index b09c91e..6b09156 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.ProjectSelectionDialog.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.ProjectSelectionDialog.cs
@@ -65,6 +65,7 @@ namespace LongoMatch.Gui.Dialog {
             this.fromfileradiobutton = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("New project usng a video file"));
             this.fromfileradiobutton.CanFocus = true;
             this.fromfileradiobutton.Name = "fromfileradiobutton";
+            this.fromfileradiobutton.Active = true;
             this.fromfileradiobutton.DrawIndicator = true;
             this.fromfileradiobutton.UseUnderline = true;
             this.fromfileradiobutton.FocusOnClick = false;
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.ProjectsManager.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.ProjectsManager.cs
index 5f8133a..61b748c 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.ProjectsManager.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.ProjectsManager.cs
@@ -145,11 +145,11 @@ namespace LongoMatch.Gui.Dialog {
             // Container child GtkAlignment8.Gtk.Container+ContainerChild
             Gtk.HBox w9 = new Gtk.HBox();
             w9.Spacing = 2;
-            // Container child GtkHBox10.Gtk.Container+ContainerChild
+            // Container child GtkHBox12.Gtk.Container+ContainerChild
             Gtk.Image w10 = new Gtk.Image();
             w10.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_export", Gtk.IconSize.Menu, 16);
             w9.Add(w10);
-            // Container child GtkHBox10.Gtk.Container+ContainerChild
+            // Container child GtkHBox12.Gtk.Container+ContainerChild
             Gtk.Label w12 = new Gtk.Label();
             w12.LabelProp = Mono.Unix.Catalog.GetString("_Export");
             w12.UseUnderline = true;
diff --git a/LongoMatch/gtk-gui/gui.stetic b/LongoMatch/gtk-gui/gui.stetic
index b1f2a59..35ed291 100644
--- a/LongoMatch/gtk-gui/gui.stetic
+++ b/LongoMatch/gtk-gui/gui.stetic
@@ -15,7 +15,7 @@
       </source>
     </icon-set>
   </icon-factory>
-  <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.ProjectDetailsWidget" design-size="400 433">
+  <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.ProjectDetailsWidget" design-size="400 462">
     <property name="MemberName" />
     <child>
       <widget class="Gtk.VBox" id="vbox2">
@@ -24,34 +24,94 @@
         <child>
           <widget class="Gtk.Table" id="table1">
             <property name="MemberName" />
-            <property name="NRows">12</property>
+            <property name="NRows">15</property>
             <property name="NColumns">2</property>
             <property name="RowSpacing">6</property>
             <property name="ColumnSpacing">6</property>
             <child>
-              <widget class="Gtk.SpinButton" id="bitratespinbutton">
+              <widget class="Gtk.Label" id="audiobitratelabel">
+                <property name="MemberName" />
+                <property name="LabelProp" translatable="yes">Audio Bitrate (kbps):</property>
+              </widget>
+              <packing>
+                <property name="TopAttach">14</property>
+                <property name="BottomAttach">15</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.SpinButton" id="audiobitratespinbutton">
                 <property name="MemberName" />
                 <property name="CanFocus">True</property>
-                <property name="Lower">1000</property>
-                <property name="Upper">8000</property>
+                <property name="Upper">360</property>
                 <property name="PageIncrement">10</property>
                 <property name="StepIncrement">1</property>
                 <property name="ClimbRate">1</property>
                 <property name="Numeric">True</property>
-                <property name="Value">4000</property>
+                <property name="Value">64</property>
               </widget>
               <packing>
-                <property name="TopAttach">11</property>
-                <property name="BottomAttach">12</property>
+                <property name="TopAttach">14</property>
+                <property name="BottomAttach">15</property>
                 <property name="LeftAttach">1</property>
                 <property name="RightAttach">2</property>
                 <property name="AutoSize">False</property>
                 <property name="XOptions">0</property>
-                <property name="YOptions">Fill</property>
+                <property name="YOptions">0</property>
                 <property name="XExpand">False</property>
                 <property name="XFill">False</property>
                 <property name="XShrink">False</property>
                 <property name="YExpand">False</property>
+                <property name="YFill">False</property>
+                <property name="YShrink">False</property>
+              </packing>
+            </child>
+            <child>
+              <widget class="Gtk.ComboBox" id="audiodevicecombobox">
+                <property name="MemberName" />
+                <property name="IsTextCombo">True</property>
+                <property name="Items" translatable="yes" />
+              </widget>
+              <packing>
+                <property name="TopAttach">12</property>
+                <property name="BottomAttach">13</property>
+                <property name="LeftAttach">1</property>
+                <property name="RightAttach">2</property>
+                <property name="AutoSize">False</property>
+                <property name="XOptions">Fill</property>
+                <property name="YOptions">0</property>
+                <property name="XExpand">False</property>
+                <property name="XFill">True</property>
+                <property name="XShrink">False</property>
+                <property name="YExpand">False</property>
+                <property name="YFill">False</property>
+                <property name="YShrink">False</property>
+              </packing>
+            </child>
+            <child>
+              <widget class="Gtk.Label" id="audiodevicelabel">
+                <property name="MemberName" />
+                <property name="Visible">False</property>
+                <property name="LabelProp" translatable="yes">Audio Device:</property>
+              </widget>
+              <packing>
+                <property name="TopAttach">12</property>
+                <property name="BottomAttach">13</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>
@@ -100,43 +160,42 @@
               </packing>
             </child>
             <child>
-              <widget class="Gtk.HBox" id="hbox1">
+              <widget class="Gtk.HBox" id="filehbox">
                 <property name="MemberName" />
                 <property name="Spacing">6</property>
                 <child>
-                  <widget class="Gtk.ComboBox" id="localcombobox">
+                  <widget class="Gtk.Entry" id="fileEntry">
                     <property name="MemberName" />
-                    <property name="IsTextCombo">True</property>
-                    <property name="Items" translatable="yes" />
-                    <signal name="Changed" handler="OnLocalcomboboxChanged" />
+                    <property name="CanFocus">True</property>
+                    <property name="IsEditable">False</property>
+                    <property name="InvisibleChar">â??</property>
+                    <signal name="Changed" handler="OnEdited" />
                   </widget>
                   <packing>
                     <property name="Position">0</property>
-                    <property name="AutoSize">False</property>
+                    <property name="AutoSize">True</property>
                   </packing>
                 </child>
                 <child>
-                  <widget class="Gtk.Button" id="localtemplatebutton">
+                  <widget class="Gtk.Button" id="openbutton">
                     <property name="MemberName" />
                     <property name="CanFocus">True</property>
                     <property name="UseStock">True</property>
                     <property name="Type">StockItem</property>
-                    <property name="StockId">gtk-edit</property>
-                    <signal name="Clicked" handler="OnLocaltemplatebuttonClicked" />
-                    <property name="label">gtk-edit</property>
+                    <property name="StockId">gtk-open</property>
+                    <signal name="Clicked" handler="OnOpenbuttonClicked" />
+                    <property name="label">gtk-open</property>
                   </widget>
                   <packing>
-                    <property name="PackType">End</property>
                     <property name="Position">1</property>
-                    <property name="AutoSize">True</property>
+                    <property name="AutoSize">False</property>
                     <property name="Expand">False</property>
-                    <property name="Fill">False</property>
                   </packing>
                 </child>
               </widget>
               <packing>
-                <property name="TopAttach">7</property>
-                <property name="BottomAttach">8</property>
+                <property name="TopAttach">10</property>
+                <property name="BottomAttach">11</property>
                 <property name="LeftAttach">1</property>
                 <property name="RightAttach">2</property>
                 <property name="AutoSize">False</property>
@@ -151,15 +210,34 @@
               </packing>
             </child>
             <child>
-              <widget class="Gtk.HBox" id="hbox2">
+              <widget class="Gtk.Label" id="filelabel">
+                <property name="MemberName" />
+                <property name="LabelProp" translatable="yes">File:</property>
+              </widget>
+              <packing>
+                <property name="TopAttach">10</property>
+                <property name="BottomAttach">11</property>
+                <property name="AutoSize">False</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.HBox" id="hbox1">
                 <property name="MemberName" />
                 <property name="Spacing">6</property>
                 <child>
-                  <widget class="Gtk.ComboBox" id="visitorcombobox">
+                  <widget class="Gtk.ComboBox" id="localcombobox">
                     <property name="MemberName" />
                     <property name="IsTextCombo">True</property>
                     <property name="Items" translatable="yes" />
-                    <signal name="Changed" handler="OnVisitorcomboboxChanged" />
+                    <signal name="Changed" handler="OnLocalcomboboxChanged" />
                   </widget>
                   <packing>
                     <property name="Position">0</property>
@@ -167,13 +245,13 @@
                   </packing>
                 </child>
                 <child>
-                  <widget class="Gtk.Button" id="visitorbutton">
+                  <widget class="Gtk.Button" id="localtemplatebutton">
                     <property name="MemberName" />
                     <property name="CanFocus">True</property>
                     <property name="UseStock">True</property>
                     <property name="Type">StockItem</property>
                     <property name="StockId">gtk-edit</property>
-                    <signal name="Clicked" handler="OnVisitorbuttonClicked" />
+                    <signal name="Clicked" handler="OnLocaltemplatebuttonClicked" />
                     <property name="label">gtk-edit</property>
                   </widget>
                   <packing>
@@ -186,8 +264,8 @@
                 </child>
               </widget>
               <packing>
-                <property name="TopAttach">8</property>
-                <property name="BottomAttach">9</property>
+                <property name="TopAttach">7</property>
+                <property name="BottomAttach">8</property>
                 <property name="LeftAttach">1</property>
                 <property name="RightAttach">2</property>
                 <property name="AutoSize">False</property>
@@ -202,15 +280,15 @@
               </packing>
             </child>
             <child>
-              <widget class="Gtk.HBox" id="hbox3">
+              <widget class="Gtk.HBox" id="hbox2">
                 <property name="MemberName" />
                 <property name="Spacing">6</property>
                 <child>
-                  <widget class="Gtk.ComboBox" id="tagscombobox">
+                  <widget class="Gtk.ComboBox" id="visitorcombobox">
                     <property name="MemberName" />
                     <property name="IsTextCombo">True</property>
                     <property name="Items" translatable="yes" />
-                    <signal name="Changed" handler="OnCombobox1Changed" />
+                    <signal name="Changed" handler="OnVisitorcomboboxChanged" />
                   </widget>
                   <packing>
                     <property name="Position">0</property>
@@ -218,14 +296,13 @@
                   </packing>
                 </child>
                 <child>
-                  <widget class="Gtk.Button" id="editbutton">
+                  <widget class="Gtk.Button" id="visitorbutton">
                     <property name="MemberName" />
-                    <property name="Visible">False</property>
                     <property name="CanFocus">True</property>
                     <property name="UseStock">True</property>
                     <property name="Type">StockItem</property>
                     <property name="StockId">gtk-edit</property>
-                    <signal name="Clicked" handler="OnEditbuttonClicked" />
+                    <signal name="Clicked" handler="OnVisitorbuttonClicked" />
                     <property name="label">gtk-edit</property>
                   </widget>
                   <packing>
@@ -238,11 +315,11 @@
                 </child>
               </widget>
               <packing>
-                <property name="TopAttach">6</property>
-                <property name="BottomAttach">7</property>
+                <property name="TopAttach">8</property>
+                <property name="BottomAttach">9</property>
                 <property name="LeftAttach">1</property>
                 <property name="RightAttach">2</property>
-                <property name="AutoSize">True</property>
+                <property name="AutoSize">False</property>
                 <property name="XOptions">Fill</property>
                 <property name="YOptions">Fill</property>
                 <property name="XExpand">False</property>
@@ -254,45 +331,47 @@
               </packing>
             </child>
             <child>
-              <widget class="Gtk.HBox" id="hbox4">
+              <widget class="Gtk.HBox" id="hbox3">
                 <property name="MemberName" />
                 <property name="Spacing">6</property>
                 <child>
-                  <widget class="Gtk.Entry" id="fileEntry">
+                  <widget class="Gtk.ComboBox" id="tagscombobox">
                     <property name="MemberName" />
-                    <property name="CanFocus">True</property>
-                    <property name="IsEditable">False</property>
-                    <property name="InvisibleChar">â??</property>
-                    <signal name="Changed" handler="OnEdited" />
+                    <property name="IsTextCombo">True</property>
+                    <property name="Items" translatable="yes" />
+                    <signal name="Changed" handler="OnCombobox1Changed" />
                   </widget>
                   <packing>
                     <property name="Position">0</property>
-                    <property name="AutoSize">True</property>
+                    <property name="AutoSize">False</property>
                   </packing>
                 </child>
                 <child>
-                  <widget class="Gtk.Button" id="openbutton">
+                  <widget class="Gtk.Button" id="editbutton">
                     <property name="MemberName" />
+                    <property name="Visible">False</property>
                     <property name="CanFocus">True</property>
                     <property name="UseStock">True</property>
                     <property name="Type">StockItem</property>
-                    <property name="StockId">gtk-open</property>
-                    <signal name="Clicked" handler="OnOpenbuttonClicked" />
-                    <property name="label">gtk-open</property>
+                    <property name="StockId">gtk-edit</property>
+                    <signal name="Clicked" handler="OnEditbuttonClicked" />
+                    <property name="label">gtk-edit</property>
                   </widget>
                   <packing>
+                    <property name="PackType">End</property>
                     <property name="Position">1</property>
-                    <property name="AutoSize">False</property>
+                    <property name="AutoSize">True</property>
                     <property name="Expand">False</property>
+                    <property name="Fill">False</property>
                   </packing>
                 </child>
               </widget>
               <packing>
-                <property name="TopAttach">10</property>
-                <property name="BottomAttach">11</property>
+                <property name="TopAttach">6</property>
+                <property name="BottomAttach">7</property>
                 <property name="LeftAttach">1</property>
                 <property name="RightAttach">2</property>
-                <property name="AutoSize">False</property>
+                <property name="AutoSize">True</property>
                 <property name="XOptions">Fill</property>
                 <property name="YOptions">Fill</property>
                 <property name="XExpand">False</property>
@@ -429,25 +508,6 @@
               </packing>
             </child>
             <child>
-              <widget class="Gtk.Label" id="label6">
-                <property name="MemberName" />
-                <property name="LabelProp" translatable="yes">File:</property>
-              </widget>
-              <packing>
-                <property name="TopAttach">10</property>
-                <property name="BottomAttach">11</property>
-                <property name="AutoSize">False</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="label8">
                 <property name="MemberName" />
                 <property name="LabelProp" translatable="yes">Local Team:</property>
@@ -593,10 +653,58 @@
               </packing>
             </child>
             <child>
-              <widget class="Gtk.Label" id="videobitratelabel">
+              <widget class="Gtk.Label" id="videobitratelabel1">
                 <property name="MemberName" />
                 <property name="Visible">False</property>
-                <property name="LabelProp" translatable="yes">Video Bitrate:</property>
+                <property name="LabelProp" translatable="yes">Video Bitrate (kbps):</property>
+              </widget>
+              <packing>
+                <property name="TopAttach">13</property>
+                <property name="BottomAttach">14</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.SpinButton" id="videobitratespinbutton">
+                <property name="MemberName" />
+                <property name="CanFocus">True</property>
+                <property name="Lower">1000</property>
+                <property name="Upper">8000</property>
+                <property name="PageIncrement">10</property>
+                <property name="StepIncrement">1</property>
+                <property name="ClimbRate">1</property>
+                <property name="Numeric">True</property>
+                <property name="Value">4000</property>
+              </widget>
+              <packing>
+                <property name="TopAttach">13</property>
+                <property name="BottomAttach">14</property>
+                <property name="LeftAttach">1</property>
+                <property name="RightAttach">2</property>
+                <property name="AutoSize">False</property>
+                <property name="XOptions">0</property>
+                <property name="YOptions">Fill</property>
+                <property name="XExpand">False</property>
+                <property name="XFill">False</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="videodevice">
+                <property name="MemberName" />
+                <property name="Visible">False</property>
+                <property name="LabelProp" translatable="yes">Video Device:</property>
               </widget>
               <packing>
                 <property name="TopAttach">11</property>
@@ -613,6 +721,28 @@
               </packing>
             </child>
             <child>
+              <widget class="Gtk.ComboBox" id="videodevicecombobox">
+                <property name="MemberName" />
+                <property name="IsTextCombo">True</property>
+                <property name="Items" translatable="yes" />
+              </widget>
+              <packing>
+                <property name="TopAttach">11</property>
+                <property name="BottomAttach">12</property>
+                <property name="LeftAttach">1</property>
+                <property name="RightAttach">2</property>
+                <property name="AutoSize">False</property>
+                <property name="XOptions">Fill</property>
+                <property name="YOptions">0</property>
+                <property name="XExpand">False</property>
+                <property name="XFill">True</property>
+                <property name="XShrink">False</property>
+                <property name="YExpand">False</property>
+                <property name="YFill">False</property>
+                <property name="YShrink">False</property>
+              </packing>
+            </child>
+            <child>
               <widget class="Gtk.SpinButton" id="visitorSpinButton">
                 <property name="MemberName">visitorSpinButton</property>
                 <property name="CanFocus">True</property>
diff --git a/LongoMatch/gtk-gui/objects.xml b/LongoMatch/gtk-gui/objects.xml
index ab15f4d..57bff05 100644
--- a/LongoMatch/gtk-gui/objects.xml
+++ b/LongoMatch/gtk-gui/objects.xml
@@ -244,6 +244,16 @@
       </itemgroup>
     </signals>
   </object>
+  <object type="LongoMatch.Gui.Component.ButtonsWidget" palette-category="LongoMatch" allow-children="false" base-type="Gtk.Bin">
+    <itemgroups />
+    <signals>
+      <itemgroup label="ButtonsWidget Signals">
+        <signal name="NewMarkEvent" />
+        <signal name="NewMarkStartEvent" />
+        <signal name="NewMarkStopEvent" />
+      </itemgroup>
+    </signals>
+  </object>
   <object type="LongoMatch.Gui.Component.ProjectDetailsWidget" palette-category="LongoMatch" allow-children="false" base-type="Gtk.Bin">
     <itemgroups>
       <itemgroup label="ProjectDetailsWidget Properties">
@@ -263,14 +273,4 @@
       </itemgroup>
     </signals>
   </object>
-  <object type="LongoMatch.Gui.Component.ButtonsWidget" palette-category="LongoMatch" allow-children="false" base-type="Gtk.Bin">
-    <itemgroups />
-    <signals>
-      <itemgroup label="ButtonsWidget Signals">
-        <signal name="NewMarkEvent" />
-        <signal name="NewMarkStartEvent" />
-        <signal name="NewMarkStopEvent" />
-      </itemgroup>
-    </signals>
-  </object>
 </objects>
\ No newline at end of file



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