[longomatch] Add back backgounds edition in the categories templates
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add back backgounds edition in the categories templates
- Date: Mon, 7 Jul 2014 11:34:01 +0000 (UTC)
commit 8a3145c7cd575cf67273c02e59b4c916d4fa07cd
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Jul 7 12:47:26 2014 +0200
Add back backgounds edition in the categories templates
.../Gui/Component/AnalysisTemplateEditor.cs | 31 ++
...goMatch.Gui.Component.AnalysisTemplateEditor.cs | 321 ++++++++++++++++----
.../LongoMatch.Gui.Component.CategoryProperties.cs | 2 -
LongoMatch.GUI/gtk-gui/gui.stetic | 245 ++++++++++++++-
LongoMatch.GUI/gtk-gui/objects.xml | 36 ++--
5 files changed, 543 insertions(+), 92 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/AnalysisTemplateEditor.cs
b/LongoMatch.GUI/Gui/Component/AnalysisTemplateEditor.cs
index 14660a4..6e372df 100644
--- a/LongoMatch.GUI/Gui/Component/AnalysisTemplateEditor.cs
+++ b/LongoMatch.GUI/Gui/Component/AnalysisTemplateEditor.cs
@@ -22,6 +22,7 @@ using LongoMatch.Gui.Helpers;
using LongoMatch.Store;
using Mono.Unix;
using System.Collections.Generic;
+using Gdk;
namespace LongoMatch.Gui.Component
{
@@ -43,6 +44,9 @@ namespace LongoMatch.Gui.Component
newbutton.Sensitive = false;
newbutton.Clicked += HandleNewClicked;
deletebutton.Clicked += HandleDeleteClicked;
+ fieldeventbox.ButtonPressEvent += HandleFieldButtonPressEvent;
+ hfieldeventbox.ButtonPressEvent += HandleFieldButtonPressEvent;
+ goaleventbox.ButtonPressEvent += HandleFieldButtonPressEvent;
}
public Categories Template {
@@ -51,6 +55,9 @@ namespace LongoMatch.Gui.Component
categoryproperties.Template = value;
newbutton.Sensitive = true;
buttonswidget.UpdateCategories (value);
+ fieldimage.Pixbuf = value.FieldBackground.Scale (50, 50).Value;
+ hfieldimage.Pixbuf = value.HalfFieldBackground.Scale (50, 50).Value;
+ goalimage.Pixbuf = value.GoalBackground.Scale (50, 50).Value;
Edited = false;
}
}
@@ -96,6 +103,30 @@ namespace LongoMatch.Gui.Component
Config.CategoriesTemplatesProvider.Update (template);
}
}
+
+ void HandleFieldButtonPressEvent (object o, Gtk.ButtonPressEventArgs args)
+ {
+ LongoMatch.Common.Image background;
+ Pixbuf pix = Helpers.Misc.OpenImage (this);
+
+ if (pix == null) {
+ return;
+ }
+
+ background = new LongoMatch.Common.Image (pix);
+ background.ScaleInplace (Constants.MAX_BACKGROUND_WIDTH,
+ Constants.MAX_BACKGROUND_HEIGHT);
+ if (o == fieldeventbox) {
+ template.FieldBackground = background;
+ fieldimage.Pixbuf = background.Scale (50, 50).Value;
+ } else if (o == hfieldeventbox) {
+ template.HalfFieldBackground = background;
+ hfieldimage.Pixbuf = background.Scale (50, 50).Value;
+ } else if (o == goaleventbox) {
+ template.GoalBackground = background;
+ goalimage.Pixbuf = background.Scale (50, 50).Value;
+ }
+ }
}
}
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.AnalysisTemplateEditor.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.AnalysisTemplateEditor.cs
index de90191..f120563 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.AnalysisTemplateEditor.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.AnalysisTemplateEditor.cs
@@ -7,6 +7,29 @@ namespace LongoMatch.Gui.Component
private global::Gtk.VBox vbox2;
private global::Gtk.HBox hbox1;
private global::LongoMatch.Gui.Component.ButtonsWidget buttonswidget;
+ private global::Gtk.VBox vbox3;
+ private global::Gtk.HBox hbox4;
+ private global::Gtk.Frame frame8;
+ private global::Gtk.Alignment GtkAlignment13;
+ private global::Gtk.HBox hbox6;
+ private global::Gtk.EventBox fieldeventbox;
+ private global::Gtk.Image fieldimage;
+ private global::Gtk.Button resetfieldbutton;
+ private global::Gtk.Label GtkLabel17;
+ private global::Gtk.Frame frame9;
+ private global::Gtk.Alignment GtkAlignment15;
+ private global::Gtk.HBox hbox7;
+ private global::Gtk.EventBox hfieldeventbox;
+ private global::Gtk.Image hfieldimage;
+ private global::Gtk.Button resethfieldbutton;
+ private global::Gtk.Label GtkLabel20;
+ private global::Gtk.Frame frame10;
+ private global::Gtk.Alignment GtkAlignment17;
+ private global::Gtk.HBox hbox8;
+ private global::Gtk.EventBox goaleventbox;
+ private global::Gtk.Image goalimage;
+ private global::Gtk.Button resetfgoalbutton;
+ private global::Gtk.Label GtkLabel22;
private global::LongoMatch.Gui.Component.CategoryProperties categoryproperties;
private global::Gtk.HButtonBox hbuttonbox2;
private global::Gtk.Button savebutton;
@@ -35,17 +58,201 @@ namespace LongoMatch.Gui.Component
global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1
[this.buttonswidget]));
w1.Position = 0;
// Container child hbox1.Gtk.Box+BoxChild
+ this.vbox3 = new global::Gtk.VBox ();
+ this.vbox3.Name = "vbox3";
+ this.vbox3.Spacing = 6;
+ // Container child vbox3.Gtk.Box+BoxChild
+ this.hbox4 = new global::Gtk.HBox ();
+ this.hbox4.Name = "hbox4";
+ this.hbox4.Spacing = 6;
+ // Container child hbox4.Gtk.Box+BoxChild
+ this.frame8 = new global::Gtk.Frame ();
+ this.frame8.Name = "frame8";
+ this.frame8.ShadowType = ((global::Gtk.ShadowType)(0));
+ // Container child frame8.Gtk.Container+ContainerChild
+ this.GtkAlignment13 = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
+ this.GtkAlignment13.Name = "GtkAlignment13";
+ this.GtkAlignment13.LeftPadding = ((uint)(12));
+ // Container child GtkAlignment13.Gtk.Container+ContainerChild
+ this.hbox6 = new global::Gtk.HBox ();
+ this.hbox6.Name = "hbox6";
+ this.hbox6.Spacing = 6;
+ // Container child hbox6.Gtk.Box+BoxChild
+ this.fieldeventbox = new global::Gtk.EventBox ();
+ this.fieldeventbox.Name = "fieldeventbox";
+ // Container child fieldeventbox.Gtk.Container+ContainerChild
+ this.fieldimage = new global::Gtk.Image ();
+ this.fieldimage.Name = "fieldimage";
+ this.fieldeventbox.Add (this.fieldimage);
+ this.hbox6.Add (this.fieldeventbox);
+ global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox6
[this.fieldeventbox]));
+ w3.Position = 0;
+ // Container child hbox6.Gtk.Box+BoxChild
+ this.resetfieldbutton = new global::Gtk.Button ();
+ this.resetfieldbutton.CanFocus = true;
+ this.resetfieldbutton.Name = "resetfieldbutton";
+ this.resetfieldbutton.UseUnderline = true;
+ // Container child resetfieldbutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w4 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w5 = new global::Gtk.HBox ();
+ w5.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w6 = new global::Gtk.Image ();
+ w6.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-refresh",
global::Gtk.IconSize.Menu);
+ w5.Add (w6);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w8 = new global::Gtk.Label ();
+ w5.Add (w8);
+ w4.Add (w5);
+ this.resetfieldbutton.Add (w4);
+ this.hbox6.Add (this.resetfieldbutton);
+ global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox6
[this.resetfieldbutton]));
+ w12.Position = 1;
+ w12.Expand = false;
+ w12.Fill = false;
+ this.GtkAlignment13.Add (this.hbox6);
+ this.frame8.Add (this.GtkAlignment13);
+ this.GtkLabel17 = new global::Gtk.Label ();
+ this.GtkLabel17.Name = "GtkLabel17";
+ this.GtkLabel17.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>Field</b>");
+ this.GtkLabel17.UseMarkup = true;
+ this.frame8.LabelWidget = this.GtkLabel17;
+ this.hbox4.Add (this.frame8);
+ global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.frame8]));
+ w15.Position = 0;
+ // Container child hbox4.Gtk.Box+BoxChild
+ this.frame9 = new global::Gtk.Frame ();
+ this.frame9.Name = "frame9";
+ this.frame9.ShadowType = ((global::Gtk.ShadowType)(0));
+ // Container child frame9.Gtk.Container+ContainerChild
+ this.GtkAlignment15 = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
+ this.GtkAlignment15.Name = "GtkAlignment15";
+ this.GtkAlignment15.LeftPadding = ((uint)(12));
+ // Container child GtkAlignment15.Gtk.Container+ContainerChild
+ this.hbox7 = new global::Gtk.HBox ();
+ this.hbox7.Name = "hbox7";
+ this.hbox7.Spacing = 6;
+ // Container child hbox7.Gtk.Box+BoxChild
+ this.hfieldeventbox = new global::Gtk.EventBox ();
+ this.hfieldeventbox.Name = "hfieldeventbox";
+ // Container child hfieldeventbox.Gtk.Container+ContainerChild
+ this.hfieldimage = new global::Gtk.Image ();
+ this.hfieldimage.Name = "hfieldimage";
+ this.hfieldeventbox.Add (this.hfieldimage);
+ this.hbox7.Add (this.hfieldeventbox);
+ global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox7
[this.hfieldeventbox]));
+ w17.Position = 0;
+ // Container child hbox7.Gtk.Box+BoxChild
+ this.resethfieldbutton = new global::Gtk.Button ();
+ this.resethfieldbutton.CanFocus = true;
+ this.resethfieldbutton.Name = "resethfieldbutton";
+ this.resethfieldbutton.UseUnderline = true;
+ // Container child resethfieldbutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w18 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w19 = new global::Gtk.HBox ();
+ w19.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w20 = new global::Gtk.Image ();
+ w20.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-refresh",
global::Gtk.IconSize.Menu);
+ w19.Add (w20);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w22 = new global::Gtk.Label ();
+ w19.Add (w22);
+ w18.Add (w19);
+ this.resethfieldbutton.Add (w18);
+ this.hbox7.Add (this.resethfieldbutton);
+ global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.hbox7
[this.resethfieldbutton]));
+ w26.Position = 1;
+ w26.Expand = false;
+ w26.Fill = false;
+ this.GtkAlignment15.Add (this.hbox7);
+ this.frame9.Add (this.GtkAlignment15);
+ this.GtkLabel20 = new global::Gtk.Label ();
+ this.GtkLabel20.Name = "GtkLabel20";
+ this.GtkLabel20.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>Half field</b>");
+ this.GtkLabel20.UseMarkup = true;
+ this.frame9.LabelWidget = this.GtkLabel20;
+ this.hbox4.Add (this.frame9);
+ global::Gtk.Box.BoxChild w29 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.frame9]));
+ w29.Position = 1;
+ // Container child hbox4.Gtk.Box+BoxChild
+ this.frame10 = new global::Gtk.Frame ();
+ this.frame10.Name = "frame10";
+ this.frame10.ShadowType = ((global::Gtk.ShadowType)(0));
+ // Container child frame10.Gtk.Container+ContainerChild
+ this.GtkAlignment17 = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
+ this.GtkAlignment17.Name = "GtkAlignment17";
+ this.GtkAlignment17.LeftPadding = ((uint)(12));
+ // Container child GtkAlignment17.Gtk.Container+ContainerChild
+ this.hbox8 = new global::Gtk.HBox ();
+ this.hbox8.Name = "hbox8";
+ this.hbox8.Spacing = 6;
+ // Container child hbox8.Gtk.Box+BoxChild
+ this.goaleventbox = new global::Gtk.EventBox ();
+ this.goaleventbox.Name = "goaleventbox";
+ // Container child goaleventbox.Gtk.Container+ContainerChild
+ this.goalimage = new global::Gtk.Image ();
+ this.goalimage.Name = "goalimage";
+ this.goaleventbox.Add (this.goalimage);
+ this.hbox8.Add (this.goaleventbox);
+ global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.hbox8
[this.goaleventbox]));
+ w31.Position = 0;
+ // Container child hbox8.Gtk.Box+BoxChild
+ this.resetfgoalbutton = new global::Gtk.Button ();
+ this.resetfgoalbutton.CanFocus = true;
+ this.resetfgoalbutton.Name = "resetfgoalbutton";
+ this.resetfgoalbutton.UseUnderline = true;
+ // Container child resetfgoalbutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w32 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w33 = new global::Gtk.HBox ();
+ w33.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w34 = new global::Gtk.Image ();
+ w34.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-refresh",
global::Gtk.IconSize.Menu);
+ w33.Add (w34);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w36 = new global::Gtk.Label ();
+ w33.Add (w36);
+ w32.Add (w33);
+ this.resetfgoalbutton.Add (w32);
+ this.hbox8.Add (this.resetfgoalbutton);
+ global::Gtk.Box.BoxChild w40 = ((global::Gtk.Box.BoxChild)(this.hbox8
[this.resetfgoalbutton]));
+ w40.Position = 1;
+ w40.Expand = false;
+ w40.Fill = false;
+ this.GtkAlignment17.Add (this.hbox8);
+ this.frame10.Add (this.GtkAlignment17);
+ this.GtkLabel22 = new global::Gtk.Label ();
+ this.GtkLabel22.Name = "GtkLabel22";
+ this.GtkLabel22.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>Goal</b>");
+ this.GtkLabel22.UseMarkup = true;
+ this.frame10.LabelWidget = this.GtkLabel22;
+ this.hbox4.Add (this.frame10);
+ global::Gtk.Box.BoxChild w43 = ((global::Gtk.Box.BoxChild)(this.hbox4
[this.frame10]));
+ w43.Position = 2;
+ this.vbox3.Add (this.hbox4);
+ global::Gtk.Box.BoxChild w44 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hbox4]));
+ w44.Position = 0;
+ w44.Expand = false;
+ w44.Fill = false;
+ // Container child vbox3.Gtk.Box+BoxChild
this.categoryproperties = new global::LongoMatch.Gui.Component.CategoryProperties ();
this.categoryproperties.Events = ((global::Gdk.EventMask)(256));
this.categoryproperties.Name = "categoryproperties";
- this.hbox1.Add (this.categoryproperties);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1
[this.categoryproperties]));
- w2.Position = 1;
- w2.Expand = false;
- w2.Fill = false;
+ this.vbox3.Add (this.categoryproperties);
+ global::Gtk.Box.BoxChild w45 = ((global::Gtk.Box.BoxChild)(this.vbox3
[this.categoryproperties]));
+ w45.Position = 1;
+ this.hbox1.Add (this.vbox3);
+ global::Gtk.Box.BoxChild w46 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox3]));
+ w46.Position = 1;
+ w46.Expand = false;
+ w46.Fill = false;
this.vbox2.Add (this.hbox1);
- global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
- w3.Position = 0;
+ global::Gtk.Box.BoxChild w47 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
+ w47.Position = 0;
// Container child vbox2.Gtk.Box+BoxChild
this.hbuttonbox2 = new global::Gtk.HButtonBox ();
this.hbuttonbox2.Name = "hbuttonbox2";
@@ -56,81 +263,81 @@ namespace LongoMatch.Gui.Component
this.savebutton.Name = "savebutton";
this.savebutton.UseUnderline = true;
// Container child savebutton.Gtk.Container+ContainerChild
- global::Gtk.Alignment w4 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ global::Gtk.Alignment w48 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
// Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w5 = new global::Gtk.HBox ();
- w5.Spacing = 2;
+ global::Gtk.HBox w49 = new global::Gtk.HBox ();
+ w49.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w6 = new global::Gtk.Image ();
- w6.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save",
global::Gtk.IconSize.Dialog);
- w5.Add (w6);
+ global::Gtk.Image w50 = new global::Gtk.Image ();
+ w50.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save",
global::Gtk.IconSize.Dialog);
+ w49.Add (w50);
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w8 = new global::Gtk.Label ();
- w8.LabelProp = global::Mono.Unix.Catalog.GetString ("Save template");
- w8.UseUnderline = true;
- w5.Add (w8);
- w4.Add (w5);
- this.savebutton.Add (w4);
+ global::Gtk.Label w52 = new global::Gtk.Label ();
+ w52.LabelProp = global::Mono.Unix.Catalog.GetString ("Save template");
+ w52.UseUnderline = true;
+ w49.Add (w52);
+ w48.Add (w49);
+ this.savebutton.Add (w48);
this.hbuttonbox2.Add (this.savebutton);
- global::Gtk.ButtonBox.ButtonBoxChild w12 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.savebutton]));
- w12.Expand = false;
- w12.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w56 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.savebutton]));
+ w56.Expand = false;
+ w56.Fill = false;
// Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
this.newbutton = new global::Gtk.Button ();
this.newbutton.CanFocus = true;
this.newbutton.Name = "newbutton";
this.newbutton.UseUnderline = true;
// Container child newbutton.Gtk.Container+ContainerChild
- global::Gtk.Alignment w13 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ global::Gtk.Alignment w57 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
// Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w14 = new global::Gtk.HBox ();
- w14.Spacing = 2;
+ global::Gtk.HBox w58 = new global::Gtk.HBox ();
+ w58.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w15 = new global::Gtk.Image ();
- w15.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-add",
global::Gtk.IconSize.Dialog);
- w14.Add (w15);
+ global::Gtk.Image w59 = new global::Gtk.Image ();
+ w59.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-add",
global::Gtk.IconSize.Dialog);
+ w58.Add (w59);
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w17 = new global::Gtk.Label ();
- w17.LabelProp = global::Mono.Unix.Catalog.GetString ("New category");
- w17.UseUnderline = true;
- w14.Add (w17);
- w13.Add (w14);
- this.newbutton.Add (w13);
+ global::Gtk.Label w61 = new global::Gtk.Label ();
+ w61.LabelProp = global::Mono.Unix.Catalog.GetString ("New category");
+ w61.UseUnderline = true;
+ w58.Add (w61);
+ w57.Add (w58);
+ this.newbutton.Add (w57);
this.hbuttonbox2.Add (this.newbutton);
- global::Gtk.ButtonBox.ButtonBoxChild w21 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.newbutton]));
- w21.Position = 1;
- w21.Expand = false;
- w21.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w65 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.newbutton]));
+ w65.Position = 1;
+ w65.Expand = false;
+ w65.Fill = false;
// Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
this.deletebutton = new global::Gtk.Button ();
this.deletebutton.CanFocus = true;
this.deletebutton.Name = "deletebutton";
this.deletebutton.UseUnderline = true;
// Container child deletebutton.Gtk.Container+ContainerChild
- global::Gtk.Alignment w22 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ global::Gtk.Alignment w66 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
// Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w23 = new global::Gtk.HBox ();
- w23.Spacing = 2;
+ global::Gtk.HBox w67 = new global::Gtk.HBox ();
+ w67.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w24 = new global::Gtk.Image ();
- w24.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-delete",
global::Gtk.IconSize.Dialog);
- w23.Add (w24);
+ global::Gtk.Image w68 = new global::Gtk.Image ();
+ w68.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-delete",
global::Gtk.IconSize.Dialog);
+ w67.Add (w68);
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w26 = new global::Gtk.Label ();
- w26.LabelProp = global::Mono.Unix.Catalog.GetString ("Delete category");
- w26.UseUnderline = true;
- w23.Add (w26);
- w22.Add (w23);
- this.deletebutton.Add (w22);
+ global::Gtk.Label w70 = new global::Gtk.Label ();
+ w70.LabelProp = global::Mono.Unix.Catalog.GetString ("Delete category");
+ w70.UseUnderline = true;
+ w67.Add (w70);
+ w66.Add (w67);
+ this.deletebutton.Add (w66);
this.hbuttonbox2.Add (this.deletebutton);
- global::Gtk.ButtonBox.ButtonBoxChild w30 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.deletebutton]));
- w30.Position = 2;
- w30.Expand = false;
- w30.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w74 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.deletebutton]));
+ w74.Position = 2;
+ w74.Expand = false;
+ w74.Fill = false;
this.vbox2.Add (this.hbuttonbox2);
- global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.vbox2
[this.hbuttonbox2]));
- w31.Position = 1;
- w31.Expand = false;
+ global::Gtk.Box.BoxChild w75 = ((global::Gtk.Box.BoxChild)(this.vbox2
[this.hbuttonbox2]));
+ w75.Position = 1;
+ w75.Expand = false;
this.Add (this.vbox2);
if ((this.Child != null)) {
this.Child.ShowAll ();
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.CategoryProperties.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.CategoryProperties.cs
index 8d168dc..502a10b 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.CategoryProperties.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.CategoryProperties.cs
@@ -291,7 +291,6 @@ namespace LongoMatch.Gui.Component
this.tagfieldcheckbutton.CanFocus = true;
this.tagfieldcheckbutton.Name = "tagfieldcheckbutton";
this.tagfieldcheckbutton.Label = global::Mono.Unix.Catalog.GetString ("Enable");
- this.tagfieldcheckbutton.Active = true;
this.tagfieldcheckbutton.DrawIndicator = true;
this.tagfieldcheckbutton.UseUnderline = true;
this.vbox4.Add (this.tagfieldcheckbutton);
@@ -380,7 +379,6 @@ namespace LongoMatch.Gui.Component
this.taggoalcheckbutton.CanFocus = true;
this.taggoalcheckbutton.Name = "taggoalcheckbutton";
this.taggoalcheckbutton.Label = global::Mono.Unix.Catalog.GetString ("Enable");
- this.taggoalcheckbutton.Active = true;
this.taggoalcheckbutton.DrawIndicator = true;
this.taggoalcheckbutton.UseUnderline = true;
this.GtkAlignment9.Add (this.taggoalcheckbutton);
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index fe04e85..ddb0405 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -2585,6 +2585,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
<property name="Tooltip" translatable="yes">Angle tool</property>
<property name="CanFocus">True</property>
<property name="Label" translatable="yes" />
+ <property name="Active">True</property>
<property name="DrawIndicator">False</property>
<property name="HasLabel">False</property>
<property name="UseUnderline">True</property>
@@ -8967,7 +8968,7 @@ Click 2 players to swap them</property>
</widget>
</child>
</widget>
- <widget class="Gtk.Bin" id="LongoMatch.Gui.Panel.SportsTemplatesPanel" design-size="1087 513">
+ <widget class="Gtk.Bin" id="LongoMatch.Gui.Panel.SportsTemplatesPanel" design-size="1087 586">
<property name="MemberName" />
<property name="Visible">False</property>
<child>
@@ -9142,7 +9143,7 @@ Click 2 players to swap them</property>
</widget>
</child>
</widget>
- <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.AnalysisTemplateEditor" design-size="1403 461">
+ <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.AnalysisTemplateEditor" design-size="1300 540">
<property name="MemberName" />
<property name="Visible">False</property>
<child>
@@ -9164,9 +9165,223 @@ Click 2 players to swap them</property>
</packing>
</child>
<child>
- <widget class="LongoMatch.Gui.Component.CategoryProperties" id="categoryproperties">
+ <widget class="Gtk.VBox" id="vbox3">
<property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
+ <property name="Spacing">6</property>
+ <child>
+ <widget class="Gtk.HBox" id="hbox4">
+ <property name="MemberName" />
+ <property name="Spacing">6</property>
+ <child>
+ <widget class="Gtk.Frame" id="frame8">
+ <property name="MemberName" />
+ <property name="ShadowType">None</property>
+ <child>
+ <widget class="Gtk.Alignment" id="GtkAlignment13">
+ <property name="MemberName" />
+ <property name="Xalign">0</property>
+ <property name="Yalign">0</property>
+ <property name="LeftPadding">12</property>
+ <child>
+ <widget class="Gtk.HBox" id="hbox6">
+ <property name="MemberName" />
+ <property name="Spacing">6</property>
+ <child>
+ <widget class="Gtk.EventBox" id="fieldeventbox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Image" id="fieldimage">
+ <property name="MemberName" />
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Button" id="resetfieldbutton">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="Type">TextAndIcon</property>
+ <property name="Icon">stock:gtk-refresh Menu</property>
+ <property name="Label" translatable="yes" />
+ <property name="UseUnderline">True</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="GtkLabel17">
+ <property name="MemberName" />
+ <property name="LabelProp" translatable="yes"><b>Field</b></property>
+ <property name="UseMarkup">True</property>
+ </widget>
+ <packing>
+ <property name="type">label_item</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Frame" id="frame9">
+ <property name="MemberName" />
+ <property name="ShadowType">None</property>
+ <child>
+ <widget class="Gtk.Alignment" id="GtkAlignment15">
+ <property name="MemberName" />
+ <property name="Xalign">0</property>
+ <property name="Yalign">0</property>
+ <property name="LeftPadding">12</property>
+ <child>
+ <widget class="Gtk.HBox" id="hbox7">
+ <property name="MemberName" />
+ <property name="Spacing">6</property>
+ <child>
+ <widget class="Gtk.EventBox" id="hfieldeventbox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Image" id="hfieldimage">
+ <property name="MemberName" />
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Button" id="resethfieldbutton">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="Type">TextAndIcon</property>
+ <property name="Icon">stock:gtk-refresh Menu</property>
+ <property name="Label" translatable="yes" />
+ <property name="UseUnderline">True</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="GtkLabel20">
+ <property name="MemberName" />
+ <property name="LabelProp" translatable="yes"><b>Half
field</b></property>
+ <property name="UseMarkup">True</property>
+ </widget>
+ <packing>
+ <property name="type">label_item</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Frame" id="frame10">
+ <property name="MemberName" />
+ <property name="ShadowType">None</property>
+ <child>
+ <widget class="Gtk.Alignment" id="GtkAlignment17">
+ <property name="MemberName" />
+ <property name="Xalign">0</property>
+ <property name="Yalign">0</property>
+ <property name="LeftPadding">12</property>
+ <child>
+ <widget class="Gtk.HBox" id="hbox8">
+ <property name="MemberName" />
+ <property name="Spacing">6</property>
+ <child>
+ <widget class="Gtk.EventBox" id="goaleventbox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Image" id="goalimage">
+ <property name="MemberName" />
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Button" id="resetfgoalbutton">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="Type">TextAndIcon</property>
+ <property name="Icon">stock:gtk-refresh Menu</property>
+ <property name="Label" translatable="yes" />
+ <property name="UseUnderline">True</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="GtkLabel22">
+ <property name="MemberName" />
+ <property name="LabelProp" translatable="yes"><b>Goal</b></property>
+ <property name="UseMarkup">True</property>
+ </widget>
+ <packing>
+ <property name="type">label_item</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">2</property>
+ <property name="AutoSize">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="LongoMatch.Gui.Component.CategoryProperties" id="categoryproperties">
+ <property name="MemberName" />
+ <property name="Events">ButtonPressMask</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="Position">1</property>
@@ -9441,6 +9656,17 @@ Click 2 players to swap them</property>
</child>
</widget>
<widget class="Gtk.Bin" id="LongoMatch.Gui.Component.CodingWidget" design-size="673 300">
+ <action-group name="Timeline">
+ <action id="positionMode">
+ <property name="Type">Radio</property>
+ <property name="Label" translatable="yes" />
+ <property name="StockId">gtk-justify-fill</property>
+ <property name="DrawAsRadio">False</property>
+ <property name="Active">False</property>
+ <property name="Value">0</property>
+ <property name="Group">codingmode</property>
+ </action>
+ </action-group>
<action-group name="Default">
<action id="timelineMode">
<property name="Type">Radio</property>
@@ -9477,17 +9703,6 @@ Click 2 players to swap them</property>
<property name="Group">codingmode</property>
</action>
</action-group>
- <action-group name="Timeline">
- <action id="positionMode">
- <property name="Type">Radio</property>
- <property name="Label" translatable="yes" />
- <property name="StockId">gtk-justify-fill</property>
- <property name="DrawAsRadio">False</property>
- <property name="Active">False</property>
- <property name="Value">0</property>
- <property name="Group">codingmode</property>
- </action>
- </action-group>
<property name="MemberName" />
<property name="Visible">False</property>
<child>
diff --git a/LongoMatch.GUI/gtk-gui/objects.xml b/LongoMatch.GUI/gtk-gui/objects.xml
index 2669357..087387a 100644
--- a/LongoMatch.GUI/gtk-gui/objects.xml
+++ b/LongoMatch.GUI/gtk-gui/objects.xml
@@ -22,15 +22,6 @@
<itemgroups />
<signals />
</object>
- <object type="LongoMatch.Gui.Component.PlayerPropertiesTreeView" palette-category="General"
allow-children="false" base-type="Gtk.TreeView">
- <itemgroups />
- <signals>
- <itemgroup label="PlayerPropertiesTreeView Signals">
- <signal name="PlayerClicked" />
- <signal name="PlayersSelected" />
- </itemgroup>
- </signals>
- </object>
<object type="LongoMatch.Gui.Component.PlayListTreeView" palette-category="General" allow-children="false"
base-type="Gtk.TreeView">
<itemgroups />
<signals />
@@ -68,15 +59,6 @@
</itemgroup>
</signals>
</object>
- <object type="LongoMatch.Gui.Component.CategoriesTreeView" palette-category="General"
allow-children="false" base-type="Gtk.TreeView">
- <itemgroups />
- <signals>
- <itemgroup label="CategoriesTreeView Signals">
- <signal name="CategoryClicked" />
- <signal name="CategoriesSelected" />
- </itemgroup>
- </signals>
- </object>
<object type="LongoMatch.Gui.Component.CategoryProperties" palette-category="General"
allow-children="false" base-type="Gtk.Bin">
<itemgroups />
<signals>
@@ -305,6 +287,24 @@
<itemgroups />
<signals />
</object>
+ <object type="LongoMatch.Gui.Component.PlayerPropertiesTreeView" palette-category="General"
allow-children="false" base-type="Gtk.TreeView">
+ <itemgroups />
+ <signals>
+ <itemgroup label="PlayerPropertiesTreeView Signals">
+ <signal name="PlayerClicked" />
+ <signal name="PlayersSelected" />
+ </itemgroup>
+ </signals>
+ </object>
+ <object type="LongoMatch.Gui.Component.CategoriesTreeView" palette-category="General"
allow-children="false" base-type="Gtk.TreeView">
+ <itemgroups />
+ <signals>
+ <itemgroup label="CategoriesTreeView Signals">
+ <signal name="CategoryClicked" />
+ <signal name="CategoriesSelected" />
+ </itemgroup>
+ </signals>
+ </object>
<object type="LongoMatch.Gui.CapturerBin" palette-category="General" allow-children="false"
base-type="Gtk.Bin">
<itemgroups>
<itemgroup label="CapturerBin Properties">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]