[longomatch/newui: 38/104] Make it possible to hide the internal buttons and trigger adding cards/tags/score/etc.. from remote
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/newui: 38/104] Make it possible to hide the internal buttons and trigger adding cards/tags/score/etc.. from remote
- Date: Wed, 27 Aug 2014 08:52:12 +0000 (UTC)
commit a7c080692ebefb671c11f83316b3bad955e023d7
Author: Julien Moutte <julien fluendo com>
Date: Thu Aug 21 12:45:03 2014 +0200
Make it possible to hide the internal buttons and trigger adding cards/tags/score/etc.. from remote
buttons.
LongoMatch.GUI/Gui/Component/ButtonsWidget.cs | 70 ++-
.../LongoMatch.Gui.Component.ButtonsWidget.cs | 481 ++++++++++++--------
2 files changed, 332 insertions(+), 219 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs b/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs
index 81aad37..50ead98 100644
--- a/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/ButtonsWidget.cs
@@ -49,19 +49,19 @@ namespace LongoMatch.Gui.Component
public ButtonsWidget()
{
this.Build();
- tagger = new PlaysTagger (new WidgetWrapper (drawingarea1));
+ tagger = new PlaysTagger (new WidgetWrapper (drawingarea));
tagger.FitMode = FitMode.Original;
tagger.TaggersSelectedEvent += HandleTaggersSelectedEvent;
tagger.ShowMenuEvent += HandleShowMenuEvent;
tagger.NewTagEvent += HandleNewTagEvent;
tagger.AddNewTagEvent += HandleAddNewTagEvent;
- drawingarea1.CanFocus = true;
- drawingarea1.KeyPressEvent += HandleKeyPressEvent;
+ drawingarea.CanFocus = true;
+ drawingarea.KeyPressEvent += HandleKeyPressEvent;
Mode = TagMode.Predefined;
fieldeventbox.ButtonPressEvent += HandleFieldButtonPressEvent;
hfieldeventbox.ButtonPressEvent += HandleFieldButtonPressEvent;
goaleventbox.ButtonPressEvent += HandleFieldButtonPressEvent;
- categoryproperties1.EditedEvent += (sender, e) => {drawingarea1.QueueDraw();};
+ tagproperties.EditedEvent += (sender, e) => {drawingarea.QueueDraw();};
addcatbutton.Clicked += HandleAddClicked;
addtimerbutton.Clicked += HandleAddClicked;
addscorebutton.Clicked += HandleAddClicked;
@@ -80,7 +80,7 @@ namespace LongoMatch.Gui.Component
public bool Edited {
get {
- return edited || tagger.Edited || categoryproperties1.Edited;
+ return edited || tagger.Edited || tagproperties.Edited;
}
set {
edited = value;
@@ -102,13 +102,45 @@ namespace LongoMatch.Gui.Component
set {
tagMode = value;
tagger.TagMode = value;
- hbuttonbox2.Visible = rightbox.Visible = tagMode == TagMode.Edit;
+ // Properties only visible in edit mode
+ rightbox.Visible = tagMode == TagMode.Edit;
+ }
+ }
+
+ public bool ButtonsVisible {
+ set {
+ // Add buttons for cards/tags/etc.. can be handled remotely.
+ hbuttonbox2.Visible = value;
}
}
public void Refresh (TaggerButton b = null) {
tagger.Refresh (b);
}
+
+ public void AddButton (string buttontype) {
+ TaggerButton tagger = null;
+
+ if (buttontype == "Card") {
+ tagger = new PenaltyCard ("Red", Color.Red, CardShape.Rectangle);
+ } else if (buttontype == "Score") {
+ tagger = new Score ("Score", 1);
+ } else if (buttontype == "Timer") {
+ tagger = new Timer {Name = "Timer"};
+ } else if (buttontype == "Tag") {
+ tagger = new TagButton {Name = "Tag"};
+ } else if (buttontype == "Category") {
+ tagger = template.AddDefaultItem (template.List.Count);
+ } else {
+ return;
+ }
+
+ if (!(tagger is Category)) {
+ template.List.Add (tagger);
+ }
+ tagger.Position = new Point (template.CanvasWidth, 0);
+ Refresh (tagger);
+ }
void RemoveButton (TaggerButton button) {
string msg = Catalog.GetString ("Do you want to delete: ") +
@@ -123,11 +155,11 @@ namespace LongoMatch.Gui.Component
{
if (taggers.Count == 1) {
selected = taggers[0];
- categoryproperties1.Tagger = taggers[0];
- propsframe.Sensitive = true;
+ tagproperties.Tagger = taggers[0];
+ tagproperties.Sensitive = true;
} else {
selected = null;
- propsframe.Sensitive = false;
+ tagproperties.Sensitive = false;
}
}
@@ -159,7 +191,7 @@ namespace LongoMatch.Gui.Component
void HandleTick (Time currentTime)
{
tagger.CurrentTime = currentTime;
- drawingarea1.QueueDraw ();
+ drawingarea.QueueDraw ();
}
void HandleKeyPressEvent (object o, KeyPressEventArgs args)
@@ -196,27 +228,19 @@ namespace LongoMatch.Gui.Component
}
void HandleAddClicked (object sender, EventArgs e) {
- TaggerButton tagger = null;
-
if (sender == addcardbutton) {
- tagger = new PenaltyCard ("Red", Color.Red, CardShape.Rectangle);
+ AddButton ("Card");
} else if (sender == addscorebutton) {
- tagger = new Score ("Score", 1);
+ AddButton ("Score");
} else if (sender == addtimerbutton) {
- tagger = new Timer {Name = "Timer"};
+ AddButton ("Timer");
} else if (sender == addtagbutton) {
- tagger = new TagButton {Name = "Tag"};
+ AddButton ("Tag");
} else if (sender == addcatbutton) {
- tagger = template.AddDefaultItem (template.List.Count);
+ AddButton ("Category");
} else {
return;
}
-
- if (!(tagger is Category)) {
- template.List.Add (tagger);
- }
- tagger.Position = new Point (template.CanvasWidth, 0);
- Refresh (tagger);
}
void HandleNewTagEvent (TaggerButton button, List<Player> players,
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs
index 01c5ae4..721b25e 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ButtonsWidget.cs
@@ -13,35 +13,40 @@ namespace LongoMatch.Gui.Component
private global::Gtk.Button addcardbutton;
private global::Gtk.Button addtagbutton;
private global::Gtk.ScrolledWindow scrolledwindow4;
- private global::Gtk.DrawingArea drawingarea1;
+ private global::Gtk.DrawingArea drawingarea;
private global::Gtk.VBox rightbox;
+ private global::Gtk.Frame propertiesframe;
+ private global::Gtk.Alignment propertiesalignment;
+ private global::Gtk.VBox vbox10;
private global::Gtk.HBox positionsbox;
- private global::Gtk.Frame frame8;
- private global::Gtk.Alignment GtkAlignment13;
- private global::Gtk.HBox hbox6;
+ private global::Gtk.VBox fieldvbox;
+ private global::Gtk.Frame fieldframe;
+ private global::Gtk.Alignment fieldalignment;
private global::Gtk.EventBox fieldeventbox;
+ private global::Gtk.VBox vbox12;
private global::Gtk.Image fieldimage;
+ private global::Gtk.Label fieldlabel1;
+ private global::Gtk.Label fieldlabel2;
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.VBox vbox13;
+ private global::Gtk.Frame hfieldframe;
+ private global::Gtk.Alignment halffieldalignment;
private global::Gtk.EventBox hfieldeventbox;
+ private global::Gtk.VBox vbox14;
private global::Gtk.Image hfieldimage;
+ private global::Gtk.Label hfieldlabel1;
+ private global::Gtk.Label hfieldlabel2;
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.VBox goalvbox;
+ private global::Gtk.Frame goalframe;
+ private global::Gtk.Alignment goalalignment;
private global::Gtk.EventBox goaleventbox;
+ private global::Gtk.VBox vbox16;
private global::Gtk.Image goalimage;
- private global::Gtk.Button resetfgoalbutton;
- private global::Gtk.Label GtkLabel22;
- private global::Gtk.Frame propsframe;
- private global::Gtk.Alignment GtkAlignment7;
- private global::Gtk.ScrolledWindow scrolledwindow5;
- private global::LongoMatch.Gui.Component.CategoryProperties categoryproperties1;
- private global::Gtk.Label GtkLabel10;
+ private global::Gtk.Label goallabel1;
+ private global::Gtk.Label goallabel2;
+ private global::Gtk.Button resetgoalbutton;
+ private global::LongoMatch.Gui.Component.CategoryProperties tagproperties;
protected virtual void Build ()
{
@@ -52,7 +57,7 @@ namespace LongoMatch.Gui.Component
// Container child LongoMatch.Gui.Component.ButtonsWidget.Gtk.Container+ContainerChild
this.hbox2 = new global::Gtk.HBox ();
this.hbox2.Name = "hbox2";
- this.hbox2.Spacing = 6;
+ this.hbox2.Spacing = 12;
// Container child hbox2.Gtk.Box+BoxChild
this.vbox2 = new global::Gtk.VBox ();
this.vbox2.CanFocus = true;
@@ -204,10 +209,10 @@ namespace LongoMatch.Gui.Component
global::Gtk.Viewport w47 = new global::Gtk.Viewport ();
w47.ShadowType = ((global::Gtk.ShadowType)(0));
// Container child GtkViewport.Gtk.Container+ContainerChild
- this.drawingarea1 = new global::Gtk.DrawingArea ();
- this.drawingarea1.CanFocus = true;
- this.drawingarea1.Name = "drawingarea1";
- w47.Add (this.drawingarea1);
+ this.drawingarea = new global::Gtk.DrawingArea ();
+ this.drawingarea.CanFocus = true;
+ this.drawingarea.Name = "drawingarea";
+ w47.Add (this.drawingarea);
this.scrolledwindow4.Add (w47);
this.vbox2.Add (this.scrolledwindow4);
global::Gtk.Box.BoxChild w50 = ((global::Gtk.Box.BoxChild)(this.vbox2
[this.scrolledwindow4]));
@@ -220,225 +225,309 @@ namespace LongoMatch.Gui.Component
this.rightbox.Name = "rightbox";
this.rightbox.Spacing = 6;
// Container child rightbox.Gtk.Box+BoxChild
+ this.propertiesframe = new global::Gtk.Frame ();
+ this.propertiesframe.Name = "propertiesframe";
+ this.propertiesframe.ShadowType = ((global::Gtk.ShadowType)(1));
+ // Container child propertiesframe.Gtk.Container+ContainerChild
+ this.propertiesalignment = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
+ this.propertiesalignment.Name = "propertiesalignment";
+ this.propertiesalignment.LeftPadding = ((uint)(6));
+ this.propertiesalignment.TopPadding = ((uint)(6));
+ this.propertiesalignment.RightPadding = ((uint)(6));
+ // Container child propertiesalignment.Gtk.Container+ContainerChild
+ this.vbox10 = new global::Gtk.VBox ();
+ this.vbox10.Name = "vbox10";
+ this.vbox10.Spacing = 6;
+ // Container child vbox10.Gtk.Box+BoxChild
this.positionsbox = new global::Gtk.HBox ();
this.positionsbox.Name = "positionsbox";
this.positionsbox.Spacing = 6;
// Container child positionsbox.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.fieldvbox = new global::Gtk.VBox ();
+ this.fieldvbox.Name = "fieldvbox";
+ this.fieldvbox.Spacing = 6;
+ // Container child fieldvbox.Gtk.Box+BoxChild
+ this.fieldframe = new global::Gtk.Frame ();
+ this.fieldframe.Name = "fieldframe";
+ this.fieldframe.ShadowType = ((global::Gtk.ShadowType)(1));
+ // Container child fieldframe.Gtk.Container+ContainerChild
+ this.fieldalignment = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
+ this.fieldalignment.Name = "fieldalignment";
+ this.fieldalignment.LeftPadding = ((uint)(6));
+ this.fieldalignment.RightPadding = ((uint)(6));
+ // Container child fieldalignment.Gtk.Container+ContainerChild
this.fieldeventbox = new global::Gtk.EventBox ();
this.fieldeventbox.Name = "fieldeventbox";
// Container child fieldeventbox.Gtk.Container+ContainerChild
+ this.vbox12 = new global::Gtk.VBox ();
+ this.vbox12.Name = "vbox12";
+ this.vbox12.Spacing = 6;
+ // Container child vbox12.Gtk.Box+BoxChild
this.fieldimage = new global::Gtk.Image ();
+ this.fieldimage.WidthRequest = 71;
+ this.fieldimage.HeightRequest = 50;
this.fieldimage.Name = "fieldimage";
- this.fieldeventbox.Add (this.fieldimage);
- this.hbox6.Add (this.fieldeventbox);
- global::Gtk.Box.BoxChild w53 = ((global::Gtk.Box.BoxChild)(this.hbox6
[this.fieldeventbox]));
- w53.Position = 0;
- // Container child hbox6.Gtk.Box+BoxChild
+ this.vbox12.Add (this.fieldimage);
+ global::Gtk.Box.BoxChild w52 = ((global::Gtk.Box.BoxChild)(this.vbox12
[this.fieldimage]));
+ w52.Position = 0;
+ w52.Expand = false;
+ w52.Fill = false;
+ // Container child vbox12.Gtk.Box+BoxChild
+ this.fieldlabel1 = new global::Gtk.Label ();
+ this.fieldlabel1.Name = "fieldlabel1";
+ this.fieldlabel1.LabelProp = global::Mono.Unix.Catalog.GetString ("Field");
+ this.fieldlabel1.UseMarkup = true;
+ this.fieldlabel1.Wrap = true;
+ this.fieldlabel1.Justify = ((global::Gtk.Justification)(2));
+ this.vbox12.Add (this.fieldlabel1);
+ global::Gtk.Box.BoxChild w53 = ((global::Gtk.Box.BoxChild)(this.vbox12
[this.fieldlabel1]));
+ w53.Position = 1;
+ w53.Expand = false;
+ w53.Fill = false;
+ // Container child vbox12.Gtk.Box+BoxChild
+ this.fieldlabel2 = new global::Gtk.Label ();
+ this.fieldlabel2.Name = "fieldlabel2";
+ this.fieldlabel2.LabelProp = global::Mono.Unix.Catalog.GetString ("click to add...");
+ this.vbox12.Add (this.fieldlabel2);
+ global::Gtk.Box.BoxChild w54 = ((global::Gtk.Box.BoxChild)(this.vbox12
[this.fieldlabel2]));
+ w54.Position = 2;
+ w54.Expand = false;
+ w54.Fill = false;
+ this.fieldeventbox.Add (this.vbox12);
+ this.fieldalignment.Add (this.fieldeventbox);
+ this.fieldframe.Add (this.fieldalignment);
+ this.fieldvbox.Add (this.fieldframe);
+ global::Gtk.Box.BoxChild w58 = ((global::Gtk.Box.BoxChild)(this.fieldvbox
[this.fieldframe]));
+ w58.Position = 0;
+ w58.Expand = false;
+ w58.Fill = false;
+ // Container child fieldvbox.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 w54 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ global::Gtk.Alignment w59 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
// Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w55 = new global::Gtk.HBox ();
- w55.Spacing = 2;
+ global::Gtk.HBox w60 = new global::Gtk.HBox ();
+ w60.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w56 = new global::Gtk.Image ();
- w56.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-refresh",
global::Gtk.IconSize.Menu);
- w55.Add (w56);
+ global::Gtk.Image w61 = new global::Gtk.Image ();
+ w61.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-refresh",
global::Gtk.IconSize.Menu);
+ w60.Add (w61);
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w58 = new global::Gtk.Label ();
- w55.Add (w58);
- w54.Add (w55);
- this.resetfieldbutton.Add (w54);
- this.hbox6.Add (this.resetfieldbutton);
- global::Gtk.Box.BoxChild w62 = ((global::Gtk.Box.BoxChild)(this.hbox6
[this.resetfieldbutton]));
- w62.Position = 1;
- w62.Expand = false;
- w62.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.positionsbox.Add (this.frame8);
- global::Gtk.Box.BoxChild w65 = ((global::Gtk.Box.BoxChild)(this.positionsbox
[this.frame8]));
- w65.Position = 0;
+ global::Gtk.Label w63 = new global::Gtk.Label ();
+ w60.Add (w63);
+ w59.Add (w60);
+ this.resetfieldbutton.Add (w59);
+ this.fieldvbox.Add (this.resetfieldbutton);
+ global::Gtk.Box.BoxChild w67 = ((global::Gtk.Box.BoxChild)(this.fieldvbox
[this.resetfieldbutton]));
+ w67.Position = 1;
+ w67.Expand = false;
+ w67.Fill = false;
+ this.positionsbox.Add (this.fieldvbox);
+ global::Gtk.Box.BoxChild w68 = ((global::Gtk.Box.BoxChild)(this.positionsbox
[this.fieldvbox]));
+ w68.Position = 0;
+ w68.Expand = false;
+ w68.Fill = false;
// Container child positionsbox.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.vbox13 = new global::Gtk.VBox ();
+ this.vbox13.Name = "vbox13";
+ this.vbox13.Spacing = 6;
+ // Container child vbox13.Gtk.Box+BoxChild
+ this.hfieldframe = new global::Gtk.Frame ();
+ this.hfieldframe.Name = "hfieldframe";
+ this.hfieldframe.ShadowType = ((global::Gtk.ShadowType)(1));
+ // Container child hfieldframe.Gtk.Container+ContainerChild
+ this.halffieldalignment = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
+ this.halffieldalignment.Name = "halffieldalignment";
+ this.halffieldalignment.LeftPadding = ((uint)(6));
+ this.halffieldalignment.RightPadding = ((uint)(6));
+ // Container child halffieldalignment.Gtk.Container+ContainerChild
this.hfieldeventbox = new global::Gtk.EventBox ();
this.hfieldeventbox.Name = "hfieldeventbox";
// Container child hfieldeventbox.Gtk.Container+ContainerChild
+ this.vbox14 = new global::Gtk.VBox ();
+ this.vbox14.Name = "vbox14";
+ this.vbox14.Spacing = 6;
+ // Container child vbox14.Gtk.Box+BoxChild
this.hfieldimage = new global::Gtk.Image ();
+ this.hfieldimage.WidthRequest = 71;
+ this.hfieldimage.HeightRequest = 50;
this.hfieldimage.Name = "hfieldimage";
- this.hfieldeventbox.Add (this.hfieldimage);
- this.hbox7.Add (this.hfieldeventbox);
- global::Gtk.Box.BoxChild w67 = ((global::Gtk.Box.BoxChild)(this.hbox7
[this.hfieldeventbox]));
- w67.Position = 0;
- // Container child hbox7.Gtk.Box+BoxChild
+ this.vbox14.Add (this.hfieldimage);
+ global::Gtk.Box.BoxChild w69 = ((global::Gtk.Box.BoxChild)(this.vbox14
[this.hfieldimage]));
+ w69.Position = 0;
+ w69.Expand = false;
+ w69.Fill = false;
+ // Container child vbox14.Gtk.Box+BoxChild
+ this.hfieldlabel1 = new global::Gtk.Label ();
+ this.hfieldlabel1.Name = "hfieldlabel1";
+ this.hfieldlabel1.LabelProp = global::Mono.Unix.Catalog.GetString ("Half field");
+ this.vbox14.Add (this.hfieldlabel1);
+ global::Gtk.Box.BoxChild w70 = ((global::Gtk.Box.BoxChild)(this.vbox14
[this.hfieldlabel1]));
+ w70.Position = 1;
+ w70.Expand = false;
+ w70.Fill = false;
+ // Container child vbox14.Gtk.Box+BoxChild
+ this.hfieldlabel2 = new global::Gtk.Label ();
+ this.hfieldlabel2.Name = "hfieldlabel2";
+ this.hfieldlabel2.LabelProp = global::Mono.Unix.Catalog.GetString ("click to add...");
+ this.vbox14.Add (this.hfieldlabel2);
+ global::Gtk.Box.BoxChild w71 = ((global::Gtk.Box.BoxChild)(this.vbox14
[this.hfieldlabel2]));
+ w71.Position = 2;
+ w71.Expand = false;
+ w71.Fill = false;
+ this.hfieldeventbox.Add (this.vbox14);
+ this.halffieldalignment.Add (this.hfieldeventbox);
+ this.hfieldframe.Add (this.halffieldalignment);
+ this.vbox13.Add (this.hfieldframe);
+ global::Gtk.Box.BoxChild w75 = ((global::Gtk.Box.BoxChild)(this.vbox13
[this.hfieldframe]));
+ w75.Position = 0;
+ w75.Expand = false;
+ w75.Fill = false;
+ // Container child vbox13.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 w68 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ global::Gtk.Alignment w76 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
// Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w69 = new global::Gtk.HBox ();
- w69.Spacing = 2;
+ global::Gtk.HBox w77 = new global::Gtk.HBox ();
+ w77.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w70 = new global::Gtk.Image ();
- w70.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-refresh",
global::Gtk.IconSize.Menu);
- w69.Add (w70);
+ global::Gtk.Image w78 = new global::Gtk.Image ();
+ w78.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-refresh",
global::Gtk.IconSize.Menu);
+ w77.Add (w78);
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w72 = new global::Gtk.Label ();
- w69.Add (w72);
- w68.Add (w69);
- this.resethfieldbutton.Add (w68);
- this.hbox7.Add (this.resethfieldbutton);
- global::Gtk.Box.BoxChild w76 = ((global::Gtk.Box.BoxChild)(this.hbox7
[this.resethfieldbutton]));
- w76.Position = 1;
- w76.Expand = false;
- w76.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.positionsbox.Add (this.frame9);
- global::Gtk.Box.BoxChild w79 = ((global::Gtk.Box.BoxChild)(this.positionsbox
[this.frame9]));
- w79.Position = 1;
+ global::Gtk.Label w80 = new global::Gtk.Label ();
+ w77.Add (w80);
+ w76.Add (w77);
+ this.resethfieldbutton.Add (w76);
+ this.vbox13.Add (this.resethfieldbutton);
+ global::Gtk.Box.BoxChild w84 = ((global::Gtk.Box.BoxChild)(this.vbox13
[this.resethfieldbutton]));
+ w84.Position = 1;
+ w84.Expand = false;
+ w84.Fill = false;
+ this.positionsbox.Add (this.vbox13);
+ global::Gtk.Box.BoxChild w85 = ((global::Gtk.Box.BoxChild)(this.positionsbox
[this.vbox13]));
+ w85.Position = 1;
+ w85.Expand = false;
+ w85.Fill = false;
// Container child positionsbox.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.goalvbox = new global::Gtk.VBox ();
+ this.goalvbox.Name = "goalvbox";
+ this.goalvbox.Spacing = 6;
+ // Container child goalvbox.Gtk.Box+BoxChild
+ this.goalframe = new global::Gtk.Frame ();
+ this.goalframe.Name = "goalframe";
+ this.goalframe.ShadowType = ((global::Gtk.ShadowType)(1));
+ // Container child goalframe.Gtk.Container+ContainerChild
+ this.goalalignment = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
+ this.goalalignment.Name = "goalalignment";
+ this.goalalignment.LeftPadding = ((uint)(6));
+ this.goalalignment.RightPadding = ((uint)(6));
+ // Container child goalalignment.Gtk.Container+ContainerChild
this.goaleventbox = new global::Gtk.EventBox ();
this.goaleventbox.Name = "goaleventbox";
// Container child goaleventbox.Gtk.Container+ContainerChild
+ this.vbox16 = new global::Gtk.VBox ();
+ this.vbox16.Name = "vbox16";
+ this.vbox16.Spacing = 6;
+ // Container child vbox16.Gtk.Box+BoxChild
this.goalimage = new global::Gtk.Image ();
+ this.goalimage.WidthRequest = 71;
+ this.goalimage.HeightRequest = 50;
this.goalimage.Name = "goalimage";
- this.goaleventbox.Add (this.goalimage);
- this.hbox8.Add (this.goaleventbox);
- global::Gtk.Box.BoxChild w81 = ((global::Gtk.Box.BoxChild)(this.hbox8
[this.goaleventbox]));
- w81.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 w82 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
+ this.vbox16.Add (this.goalimage);
+ global::Gtk.Box.BoxChild w86 = ((global::Gtk.Box.BoxChild)(this.vbox16
[this.goalimage]));
+ w86.Position = 0;
+ w86.Expand = false;
+ w86.Fill = false;
+ // Container child vbox16.Gtk.Box+BoxChild
+ this.goallabel1 = new global::Gtk.Label ();
+ this.goallabel1.Name = "goallabel1";
+ this.goallabel1.LabelProp = global::Mono.Unix.Catalog.GetString ("Goal");
+ this.vbox16.Add (this.goallabel1);
+ global::Gtk.Box.BoxChild w87 = ((global::Gtk.Box.BoxChild)(this.vbox16
[this.goallabel1]));
+ w87.Position = 1;
+ w87.Expand = false;
+ w87.Fill = false;
+ // Container child vbox16.Gtk.Box+BoxChild
+ this.goallabel2 = new global::Gtk.Label ();
+ this.goallabel2.Name = "goallabel2";
+ this.goallabel2.LabelProp = global::Mono.Unix.Catalog.GetString ("click to add...");
+ this.vbox16.Add (this.goallabel2);
+ global::Gtk.Box.BoxChild w88 = ((global::Gtk.Box.BoxChild)(this.vbox16
[this.goallabel2]));
+ w88.Position = 2;
+ w88.Expand = false;
+ w88.Fill = false;
+ this.goaleventbox.Add (this.vbox16);
+ this.goalalignment.Add (this.goaleventbox);
+ this.goalframe.Add (this.goalalignment);
+ this.goalvbox.Add (this.goalframe);
+ global::Gtk.Box.BoxChild w92 = ((global::Gtk.Box.BoxChild)(this.goalvbox
[this.goalframe]));
+ w92.Position = 0;
+ w92.Expand = false;
+ w92.Fill = false;
+ // Container child goalvbox.Gtk.Box+BoxChild
+ this.resetgoalbutton = new global::Gtk.Button ();
+ this.resetgoalbutton.CanFocus = true;
+ this.resetgoalbutton.Name = "resetgoalbutton";
+ this.resetgoalbutton.UseUnderline = true;
+ // Container child resetgoalbutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w93 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
// Container child GtkAlignment.Gtk.Container+ContainerChild
- global::Gtk.HBox w83 = new global::Gtk.HBox ();
- w83.Spacing = 2;
+ global::Gtk.HBox w94 = new global::Gtk.HBox ();
+ w94.Spacing = 2;
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Image w84 = new global::Gtk.Image ();
- w84.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-refresh",
global::Gtk.IconSize.Menu);
- w83.Add (w84);
+ global::Gtk.Image w95 = new global::Gtk.Image ();
+ w95.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-refresh",
global::Gtk.IconSize.Menu);
+ w94.Add (w95);
// Container child GtkHBox.Gtk.Container+ContainerChild
- global::Gtk.Label w86 = new global::Gtk.Label ();
- w83.Add (w86);
- w82.Add (w83);
- this.resetfgoalbutton.Add (w82);
- this.hbox8.Add (this.resetfgoalbutton);
- global::Gtk.Box.BoxChild w90 = ((global::Gtk.Box.BoxChild)(this.hbox8
[this.resetfgoalbutton]));
- w90.Position = 1;
- w90.Expand = false;
- w90.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.positionsbox.Add (this.frame10);
- global::Gtk.Box.BoxChild w93 = ((global::Gtk.Box.BoxChild)(this.positionsbox
[this.frame10]));
- w93.Position = 2;
- this.rightbox.Add (this.positionsbox);
- global::Gtk.Box.BoxChild w94 = ((global::Gtk.Box.BoxChild)(this.rightbox
[this.positionsbox]));
- w94.Position = 0;
- w94.Expand = false;
- w94.Fill = false;
- // Container child rightbox.Gtk.Box+BoxChild
- this.propsframe = new global::Gtk.Frame ();
- this.propsframe.Sensitive = false;
- this.propsframe.Name = "propsframe";
- // Container child propsframe.Gtk.Container+ContainerChild
- this.GtkAlignment7 = new global::Gtk.Alignment (0F, 0F, 1F, 1F);
- this.GtkAlignment7.Name = "GtkAlignment7";
- this.GtkAlignment7.LeftPadding = ((uint)(12));
- // Container child GtkAlignment7.Gtk.Container+ContainerChild
- this.scrolledwindow5 = new global::Gtk.ScrolledWindow ();
- this.scrolledwindow5.CanFocus = true;
- this.scrolledwindow5.Name = "scrolledwindow5";
- this.scrolledwindow5.HscrollbarPolicy = ((global::Gtk.PolicyType)(2));
- // Container child scrolledwindow5.Gtk.Container+ContainerChild
- global::Gtk.Viewport w95 = new global::Gtk.Viewport ();
- w95.ShadowType = ((global::Gtk.ShadowType)(0));
- // Container child GtkViewport1.Gtk.Container+ContainerChild
- this.categoryproperties1 = new global::LongoMatch.Gui.Component.CategoryProperties ();
- this.categoryproperties1.Events = ((global::Gdk.EventMask)(256));
- this.categoryproperties1.Name = "categoryproperties1";
- this.categoryproperties1.Edited = false;
- w95.Add (this.categoryproperties1);
- this.scrolledwindow5.Add (w95);
- this.GtkAlignment7.Add (this.scrolledwindow5);
- this.propsframe.Add (this.GtkAlignment7);
- this.GtkLabel10 = new global::Gtk.Label ();
- this.GtkLabel10.Name = "GtkLabel10";
- this.GtkLabel10.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>Properties</b>");
- this.GtkLabel10.UseMarkup = true;
- this.propsframe.LabelWidget = this.GtkLabel10;
- this.rightbox.Add (this.propsframe);
- global::Gtk.Box.BoxChild w100 = ((global::Gtk.Box.BoxChild)(this.rightbox
[this.propsframe]));
- w100.Position = 1;
- this.hbox2.Add (this.rightbox);
- global::Gtk.Box.BoxChild w101 = ((global::Gtk.Box.BoxChild)(this.hbox2
[this.rightbox]));
+ global::Gtk.Label w97 = new global::Gtk.Label ();
+ w94.Add (w97);
+ w93.Add (w94);
+ this.resetgoalbutton.Add (w93);
+ this.goalvbox.Add (this.resetgoalbutton);
+ global::Gtk.Box.BoxChild w101 = ((global::Gtk.Box.BoxChild)(this.goalvbox
[this.resetgoalbutton]));
w101.Position = 1;
w101.Expand = false;
w101.Fill = false;
+ this.positionsbox.Add (this.goalvbox);
+ global::Gtk.Box.BoxChild w102 = ((global::Gtk.Box.BoxChild)(this.positionsbox
[this.goalvbox]));
+ w102.Position = 2;
+ w102.Expand = false;
+ w102.Fill = false;
+ this.vbox10.Add (this.positionsbox);
+ global::Gtk.Box.BoxChild w103 = ((global::Gtk.Box.BoxChild)(this.vbox10
[this.positionsbox]));
+ w103.Position = 0;
+ w103.Fill = false;
+ // Container child vbox10.Gtk.Box+BoxChild
+ this.tagproperties = new global::LongoMatch.Gui.Component.CategoryProperties ();
+ this.tagproperties.Events = ((global::Gdk.EventMask)(256));
+ this.tagproperties.Name = "tagproperties";
+ this.tagproperties.Edited = false;
+ this.vbox10.Add (this.tagproperties);
+ global::Gtk.Box.BoxChild w104 = ((global::Gtk.Box.BoxChild)(this.vbox10
[this.tagproperties]));
+ w104.Position = 1;
+ this.propertiesalignment.Add (this.vbox10);
+ this.propertiesframe.Add (this.propertiesalignment);
+ this.rightbox.Add (this.propertiesframe);
+ global::Gtk.Box.BoxChild w107 = ((global::Gtk.Box.BoxChild)(this.rightbox
[this.propertiesframe]));
+ w107.Position = 0;
+ w107.Expand = false;
+ w107.Fill = false;
+ this.hbox2.Add (this.rightbox);
+ global::Gtk.Box.BoxChild w108 = ((global::Gtk.Box.BoxChild)(this.hbox2
[this.rightbox]));
+ w108.Position = 1;
+ w108.Expand = false;
+ w108.Fill = false;
this.Add (this.hbox2);
if ((this.Child != null)) {
this.Child.ShowAll ();
}
- this.propsframe.Hide ();
this.Show ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]