[longomatch/redesign: 75/82] Adapt to new changes in stetic
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign: 75/82] Adapt to new changes in stetic
- Date: Mon, 14 Mar 2011 00:23:07 +0000 (UTC)
commit 2d7068237e5c59c6e5b1420f1f6a5af6575fd242
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Feb 6 02:21:22 2011 +0100
Adapt to new changes in stetic
CesarPlayer/Gui/CapturerBin.cs | 4 +-
CesarPlayer/gtk-gui/LongoMatch.Gui.CapturerBin.cs | 326 +++++-----
CesarPlayer/gtk-gui/LongoMatch.Gui.PlayerBin.cs | 662 ++++++++++----------
CesarPlayer/gtk-gui/LongoMatch.Gui.VolumeWindow.cs | 158 +++---
CesarPlayer/gtk-gui/generated.cs | 227 ++++----
5 files changed, 677 insertions(+), 700 deletions(-)
---
diff --git a/CesarPlayer/Gui/CapturerBin.cs b/CesarPlayer/Gui/CapturerBin.cs
index 30d5466..304ea6f 100644
--- a/CesarPlayer/Gui/CapturerBin.cs
+++ b/CesarPlayer/Gui/CapturerBin.cs
@@ -301,7 +301,7 @@ namespace LongoMatch.Gui
MessageType.Question, ButtonsType.Ok,
Catalog.GetString("Device disconnected. " +
"The capture will be paused"));
- md.Icon=Stetic.IconLoader.LoadIcon(md, "longomatch", Gtk.IconSize.Dialog, 48);
+ md.Icon=Stetic.IconLoader.LoadIcon(md, "longomatch", Gtk.IconSize.Dialog);
md.Run();
md.Destroy();
} else {
@@ -310,7 +310,7 @@ namespace LongoMatch.Gui
MessageType.Question, ButtonsType.YesNo,
Catalog.GetString("Device reconnected." +
"Do you want to restart the capture?"));
- md.Icon=Stetic.IconLoader.LoadIcon(md, "longomatch", Gtk.IconSize.Dialog, 48);
+ md.Icon=Stetic.IconLoader.LoadIcon(md, "longomatch", Gtk.IconSize.Dialog);
if (md.Run() == (int)ResponseType.Yes){
Console.WriteLine ("Accepted to toggle pause");
TogglePause();
diff --git a/CesarPlayer/gtk-gui/LongoMatch.Gui.CapturerBin.cs b/CesarPlayer/gtk-gui/LongoMatch.Gui.CapturerBin.cs
index 9c4498a..8d70678 100644
--- a/CesarPlayer/gtk-gui/LongoMatch.Gui.CapturerBin.cs
+++ b/CesarPlayer/gtk-gui/LongoMatch.Gui.CapturerBin.cs
@@ -1,169 +1,161 @@
-// ------------------------------------------------------------------------------
-// <autogenerated>
-// This code was generated by a tool.
-//
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </autogenerated>
-// ------------------------------------------------------------------------------
-namespace LongoMatch.Gui {
-
-
- public partial class CapturerBin {
-
- private Gtk.VBox vbox1;
-
- private Gtk.HBox capturerhbox;
-
- private Gtk.DrawingArea logodrawingarea;
-
- private Gtk.HBox hbox2;
-
- private Gtk.HBox buttonsbox;
-
- private Gtk.Button recbutton;
-
- private Gtk.Button pausebutton;
-
- private Gtk.Button stopbutton;
-
- private Gtk.Label timelabel;
-
- protected virtual void Build() {
- Stetic.Gui.Initialize(this);
- // Widget LongoMatch.Gui.CapturerBin
- Stetic.BinContainer.Attach(this);
- this.Name = "LongoMatch.Gui.CapturerBin";
- // Container child LongoMatch.Gui.CapturerBin.Gtk.Container+ContainerChild
- this.vbox1 = new Gtk.VBox();
- this.vbox1.Name = "vbox1";
- this.vbox1.Spacing = 6;
- // Container child vbox1.Gtk.Box+BoxChild
- this.capturerhbox = new Gtk.HBox();
- this.capturerhbox.Name = "capturerhbox";
- this.capturerhbox.Spacing = 6;
- this.vbox1.Add(this.capturerhbox);
- Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.capturerhbox]));
- w1.Position = 0;
- // Container child vbox1.Gtk.Box+BoxChild
- this.logodrawingarea = new Gtk.DrawingArea();
- this.logodrawingarea.Name = "logodrawingarea";
- this.vbox1.Add(this.logodrawingarea);
- Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.logodrawingarea]));
- w2.Position = 1;
- // Container child vbox1.Gtk.Box+BoxChild
- this.hbox2 = new Gtk.HBox();
- this.hbox2.Name = "hbox2";
- this.hbox2.Spacing = 6;
- // Container child hbox2.Gtk.Box+BoxChild
- this.buttonsbox = new Gtk.HBox();
- this.buttonsbox.Name = "buttonsbox";
- this.buttonsbox.Spacing = 6;
- // Container child buttonsbox.Gtk.Box+BoxChild
- this.recbutton = new Gtk.Button();
- this.recbutton.TooltipMarkup = "Start or continue capture";
- this.recbutton.Name = "recbutton";
- this.recbutton.UseUnderline = true;
- // Container child recbutton.Gtk.Container+ContainerChild
- Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- Gtk.HBox w4 = new Gtk.HBox();
- w4.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Image w5 = new Gtk.Image();
- w5.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-record", Gtk.IconSize.Dialog, 48);
- w4.Add(w5);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Label w7 = new Gtk.Label();
- w4.Add(w7);
- w3.Add(w4);
- this.recbutton.Add(w3);
- this.buttonsbox.Add(this.recbutton);
- Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.buttonsbox[this.recbutton]));
- w11.Position = 0;
- w11.Expand = false;
- w11.Fill = false;
- // Container child buttonsbox.Gtk.Box+BoxChild
- this.pausebutton = new Gtk.Button();
- this.pausebutton.TooltipMarkup = "Pause capture";
- this.pausebutton.Name = "pausebutton";
- this.pausebutton.UseUnderline = true;
- // Container child pausebutton.Gtk.Container+ContainerChild
- Gtk.Alignment w12 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- Gtk.HBox w13 = new Gtk.HBox();
- w13.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Image w14 = new Gtk.Image();
- w14.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-pause", Gtk.IconSize.Dialog, 48);
- w13.Add(w14);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Label w16 = new Gtk.Label();
- w13.Add(w16);
- w12.Add(w13);
- this.pausebutton.Add(w12);
- this.buttonsbox.Add(this.pausebutton);
- Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.buttonsbox[this.pausebutton]));
- w20.Position = 1;
- w20.Expand = false;
- w20.Fill = false;
- // Container child buttonsbox.Gtk.Box+BoxChild
- this.stopbutton = new Gtk.Button();
- this.stopbutton.TooltipMarkup = "Stop and close capture";
- this.stopbutton.Name = "stopbutton";
- this.stopbutton.UseUnderline = true;
- // Container child stopbutton.Gtk.Container+ContainerChild
- Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- Gtk.HBox w22 = new Gtk.HBox();
- w22.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Image w23 = new Gtk.Image();
- w23.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-stop", Gtk.IconSize.Dialog, 48);
- w22.Add(w23);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Label w25 = new Gtk.Label();
- w22.Add(w25);
- w21.Add(w22);
- this.stopbutton.Add(w21);
- this.buttonsbox.Add(this.stopbutton);
- Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.buttonsbox[this.stopbutton]));
- w29.Position = 2;
- w29.Expand = false;
- w29.Fill = false;
- this.hbox2.Add(this.buttonsbox);
- Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox2[this.buttonsbox]));
- w30.Position = 0;
- w30.Expand = false;
- w30.Fill = false;
- // Container child hbox2.Gtk.Box+BoxChild
- this.timelabel = new Gtk.Label();
- this.timelabel.Name = "timelabel";
- this.timelabel.Xalign = 1F;
- this.timelabel.LabelProp = "Time: 0:00:00";
- this.hbox2.Add(this.timelabel);
- Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox2[this.timelabel]));
- w31.PackType = ((Gtk.PackType)(1));
- w31.Position = 1;
- w31.Expand = false;
- this.vbox1.Add(this.hbox2);
- Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
- w32.Position = 2;
- w32.Expand = false;
- w32.Fill = false;
- this.Add(this.vbox1);
- if ((this.Child != null)) {
- this.Child.ShowAll();
- }
- this.pausebutton.Hide();
- this.stopbutton.Hide();
- this.Show();
- this.logodrawingarea.ExposeEvent += new Gtk.ExposeEventHandler(this.OnLogodrawingareaExposeEvent);
- this.recbutton.Clicked += new System.EventHandler(this.OnRecbuttonClicked);
- this.pausebutton.Clicked += new System.EventHandler(this.OnPausebuttonClicked);
- this.stopbutton.Clicked += new System.EventHandler(this.OnStopbuttonClicked);
- }
- }
+// This file has been generated by the GUI designer. Do not modify.
+namespace LongoMatch.Gui
+{
+ public partial class CapturerBin
+ {
+ private global::Gtk.VBox vbox1;
+
+ private global::Gtk.HBox capturerhbox;
+
+ private global::Gtk.DrawingArea logodrawingarea;
+
+ private global::Gtk.HBox hbox2;
+
+ private global::Gtk.HBox buttonsbox;
+
+ private global::Gtk.Button recbutton;
+
+ private global::Gtk.Button pausebutton;
+
+ private global::Gtk.Button stopbutton;
+
+ private global::Gtk.Label timelabel;
+
+ protected virtual void Build ()
+ {
+ global::Stetic.Gui.Initialize (this);
+ // Widget LongoMatch.Gui.CapturerBin
+ global::Stetic.BinContainer.Attach (this);
+ this.Name = "LongoMatch.Gui.CapturerBin";
+ // Container child LongoMatch.Gui.CapturerBin.Gtk.Container+ContainerChild
+ this.vbox1 = new global::Gtk.VBox ();
+ this.vbox1.Name = "vbox1";
+ this.vbox1.Spacing = 6;
+ // Container child vbox1.Gtk.Box+BoxChild
+ this.capturerhbox = new global::Gtk.HBox ();
+ this.capturerhbox.Name = "capturerhbox";
+ this.capturerhbox.Spacing = 6;
+ this.vbox1.Add (this.capturerhbox);
+ global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.capturerhbox]));
+ w1.Position = 0;
+ // Container child vbox1.Gtk.Box+BoxChild
+ this.logodrawingarea = new global::Gtk.DrawingArea ();
+ this.logodrawingarea.Name = "logodrawingarea";
+ this.vbox1.Add (this.logodrawingarea);
+ global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.logodrawingarea]));
+ w2.Position = 1;
+ // Container child vbox1.Gtk.Box+BoxChild
+ this.hbox2 = new global::Gtk.HBox ();
+ this.hbox2.Name = "hbox2";
+ this.hbox2.Spacing = 6;
+ // Container child hbox2.Gtk.Box+BoxChild
+ this.buttonsbox = new global::Gtk.HBox ();
+ this.buttonsbox.Name = "buttonsbox";
+ this.buttonsbox.Spacing = 6;
+ // Container child buttonsbox.Gtk.Box+BoxChild
+ this.recbutton = new global::Gtk.Button ();
+ this.recbutton.TooltipMarkup = "Start or continue capture";
+ this.recbutton.Name = "recbutton";
+ this.recbutton.UseUnderline = true;
+ // Container child recbutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w3 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w4 = new global::Gtk.HBox ();
+ w4.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w5 = new global::Gtk.Image ();
+ w5.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-record", global::Gtk.IconSize.Dialog);
+ w4.Add (w5);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w7 = new global::Gtk.Label ();
+ w4.Add (w7);
+ w3.Add (w4);
+ this.recbutton.Add (w3);
+ this.buttonsbox.Add (this.recbutton);
+ global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.buttonsbox[this.recbutton]));
+ w11.Position = 0;
+ w11.Expand = false;
+ w11.Fill = false;
+ // Container child buttonsbox.Gtk.Box+BoxChild
+ this.pausebutton = new global::Gtk.Button ();
+ this.pausebutton.TooltipMarkup = "Pause capture";
+ this.pausebutton.Name = "pausebutton";
+ this.pausebutton.UseUnderline = true;
+ // Container child pausebutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w12 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w13 = new global::Gtk.HBox ();
+ w13.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w14 = new global::Gtk.Image ();
+ w14.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-pause", global::Gtk.IconSize.Dialog);
+ w13.Add (w14);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w16 = new global::Gtk.Label ();
+ w13.Add (w16);
+ w12.Add (w13);
+ this.pausebutton.Add (w12);
+ this.buttonsbox.Add (this.pausebutton);
+ global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.buttonsbox[this.pausebutton]));
+ w20.Position = 1;
+ w20.Expand = false;
+ w20.Fill = false;
+ // Container child buttonsbox.Gtk.Box+BoxChild
+ this.stopbutton = new global::Gtk.Button ();
+ this.stopbutton.TooltipMarkup = "Stop and close capture";
+ this.stopbutton.Name = "stopbutton";
+ this.stopbutton.UseUnderline = true;
+ // Container child stopbutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w21 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w22 = new global::Gtk.HBox ();
+ w22.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w23 = new global::Gtk.Image ();
+ w23.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-stop", global::Gtk.IconSize.Dialog);
+ w22.Add (w23);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w25 = new global::Gtk.Label ();
+ w22.Add (w25);
+ w21.Add (w22);
+ this.stopbutton.Add (w21);
+ this.buttonsbox.Add (this.stopbutton);
+ global::Gtk.Box.BoxChild w29 = ((global::Gtk.Box.BoxChild)(this.buttonsbox[this.stopbutton]));
+ w29.Position = 2;
+ w29.Expand = false;
+ w29.Fill = false;
+ this.hbox2.Add (this.buttonsbox);
+ global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.buttonsbox]));
+ w30.Position = 0;
+ w30.Expand = false;
+ w30.Fill = false;
+ // Container child hbox2.Gtk.Box+BoxChild
+ this.timelabel = new global::Gtk.Label ();
+ this.timelabel.Name = "timelabel";
+ this.timelabel.Xalign = 1f;
+ this.timelabel.LabelProp = "Time: 0:00:00";
+ this.hbox2.Add (this.timelabel);
+ global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.timelabel]));
+ w31.PackType = ((global::Gtk.PackType)(1));
+ w31.Position = 1;
+ w31.Expand = false;
+ this.vbox1.Add (this.hbox2);
+ global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
+ w32.Position = 2;
+ w32.Expand = false;
+ w32.Fill = false;
+ this.Add (this.vbox1);
+ if ((this.Child != null)) {
+ this.Child.ShowAll ();
+ }
+ this.pausebutton.Hide ();
+ this.stopbutton.Hide ();
+ this.Show ();
+ this.logodrawingarea.ExposeEvent += new global::Gtk.ExposeEventHandler (this.OnLogodrawingareaExposeEvent);
+ this.recbutton.Clicked += new global::System.EventHandler (this.OnRecbuttonClicked);
+ this.pausebutton.Clicked += new global::System.EventHandler (this.OnPausebuttonClicked);
+ this.stopbutton.Clicked += new global::System.EventHandler (this.OnStopbuttonClicked);
+ }
+ }
}
diff --git a/CesarPlayer/gtk-gui/LongoMatch.Gui.PlayerBin.cs b/CesarPlayer/gtk-gui/LongoMatch.Gui.PlayerBin.cs
index f44aeaf..cf1eaf0 100644
--- a/CesarPlayer/gtk-gui/LongoMatch.Gui.PlayerBin.cs
+++ b/CesarPlayer/gtk-gui/LongoMatch.Gui.PlayerBin.cs
@@ -1,337 +1,329 @@
-// ------------------------------------------------------------------------------
-// <autogenerated>
-// This code was generated by a tool.
-//
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </autogenerated>
-// ------------------------------------------------------------------------------
-namespace LongoMatch.Gui {
-
-
- public partial class PlayerBin {
-
- private Gtk.HBox mainbox;
-
- private Gtk.VBox vbox2;
-
- private Gtk.HBox videobox;
-
- private Gtk.HBox controlsbox;
-
- private Gtk.HBox buttonsbox;
-
- private Gtk.Button closebutton;
-
- private Gtk.Button drawbutton;
-
- private Gtk.Button playbutton;
-
- private Gtk.Button pausebutton;
-
- private Gtk.Button prevbutton;
-
- private Gtk.Button nextbutton;
-
- private Gtk.Label tlabel;
-
- private Gtk.HScale timescale;
-
- private Gtk.Label timelabel;
-
- private Gtk.Button volumebutton;
-
- private Gtk.VBox vbox3;
-
- private Gtk.VScale vscale1;
-
- protected virtual void Build() {
- Stetic.Gui.Initialize(this);
- // Widget LongoMatch.Gui.PlayerBin
- Stetic.BinContainer.Attach(this);
- this.Name = "LongoMatch.Gui.PlayerBin";
- // Container child LongoMatch.Gui.PlayerBin.Gtk.Container+ContainerChild
- this.mainbox = new Gtk.HBox();
- this.mainbox.Name = "mainbox";
- this.mainbox.Spacing = 6;
- // Container child mainbox.Gtk.Box+BoxChild
- this.vbox2 = new Gtk.VBox();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 6;
- // Container child vbox2.Gtk.Box+BoxChild
- this.videobox = new Gtk.HBox();
- this.videobox.Name = "videobox";
- this.videobox.Spacing = 6;
- this.vbox2.Add(this.videobox);
- Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.videobox]));
- w1.Position = 0;
- // Container child vbox2.Gtk.Box+BoxChild
- this.controlsbox = new Gtk.HBox();
- this.controlsbox.Name = "controlsbox";
- this.controlsbox.Spacing = 6;
- // Container child controlsbox.Gtk.Box+BoxChild
- this.buttonsbox = new Gtk.HBox();
- this.buttonsbox.Name = "buttonsbox";
- this.buttonsbox.Homogeneous = true;
- // Container child buttonsbox.Gtk.Box+BoxChild
- this.closebutton = new Gtk.Button();
- this.closebutton.Name = "closebutton";
- this.closebutton.UseUnderline = true;
- // Container child closebutton.Gtk.Container+ContainerChild
- Gtk.Alignment w2 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- Gtk.HBox w3 = new Gtk.HBox();
- w3.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Image w4 = new Gtk.Image();
- w4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-close", Gtk.IconSize.Dnd, 32);
- w3.Add(w4);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Label w6 = new Gtk.Label();
- w3.Add(w6);
- w2.Add(w3);
- this.closebutton.Add(w2);
- this.buttonsbox.Add(this.closebutton);
- Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.buttonsbox[this.closebutton]));
- w10.Position = 0;
- w10.Expand = false;
- w10.Fill = false;
- // Container child buttonsbox.Gtk.Box+BoxChild
- this.drawbutton = new Gtk.Button();
- this.drawbutton.Name = "drawbutton";
- this.drawbutton.UseUnderline = true;
- // Container child drawbutton.Gtk.Container+ContainerChild
- Gtk.Alignment w11 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- Gtk.HBox w12 = new Gtk.HBox();
- w12.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Image w13 = new Gtk.Image();
- w13.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-select-color", Gtk.IconSize.Menu, 16);
- w12.Add(w13);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Label w15 = new Gtk.Label();
- w12.Add(w15);
- w11.Add(w12);
- this.drawbutton.Add(w11);
- this.buttonsbox.Add(this.drawbutton);
- Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.buttonsbox[this.drawbutton]));
- w19.Position = 1;
- w19.Expand = false;
- w19.Fill = false;
- // Container child buttonsbox.Gtk.Box+BoxChild
- this.playbutton = new Gtk.Button();
- this.playbutton.Name = "playbutton";
- this.playbutton.UseUnderline = true;
- this.playbutton.Relief = ((Gtk.ReliefStyle)(2));
- // Container child playbutton.Gtk.Container+ContainerChild
- Gtk.Alignment w20 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- Gtk.HBox w21 = new Gtk.HBox();
- w21.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Image w22 = new Gtk.Image();
- w22.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-play", Gtk.IconSize.Button, 16);
- w21.Add(w22);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Label w24 = new Gtk.Label();
- w21.Add(w24);
- w20.Add(w21);
- this.playbutton.Add(w20);
- this.buttonsbox.Add(this.playbutton);
- Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.buttonsbox[this.playbutton]));
- w28.Position = 2;
- w28.Expand = false;
- w28.Fill = false;
- // Container child buttonsbox.Gtk.Box+BoxChild
- this.pausebutton = new Gtk.Button();
- this.pausebutton.Name = "pausebutton";
- this.pausebutton.UseUnderline = true;
- this.pausebutton.Relief = ((Gtk.ReliefStyle)(2));
- // Container child pausebutton.Gtk.Container+ContainerChild
- Gtk.Alignment w29 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- Gtk.HBox w30 = new Gtk.HBox();
- w30.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Image w31 = new Gtk.Image();
- w31.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-pause", Gtk.IconSize.Button, 16);
- w30.Add(w31);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Label w33 = new Gtk.Label();
- w30.Add(w33);
- w29.Add(w30);
- this.pausebutton.Add(w29);
- this.buttonsbox.Add(this.pausebutton);
- Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.buttonsbox[this.pausebutton]));
- w37.Position = 3;
- w37.Expand = false;
- w37.Fill = false;
- // Container child buttonsbox.Gtk.Box+BoxChild
- this.prevbutton = new Gtk.Button();
- this.prevbutton.Name = "prevbutton";
- this.prevbutton.UseUnderline = true;
- this.prevbutton.Relief = ((Gtk.ReliefStyle)(2));
- // Container child prevbutton.Gtk.Container+ContainerChild
- Gtk.Alignment w38 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- Gtk.HBox w39 = new Gtk.HBox();
- w39.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Image w40 = new Gtk.Image();
- w40.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-previous", Gtk.IconSize.Button, 16);
- w39.Add(w40);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Label w42 = new Gtk.Label();
- w39.Add(w42);
- w38.Add(w39);
- this.prevbutton.Add(w38);
- this.buttonsbox.Add(this.prevbutton);
- Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.buttonsbox[this.prevbutton]));
- w46.Position = 4;
- w46.Expand = false;
- w46.Fill = false;
- // Container child buttonsbox.Gtk.Box+BoxChild
- this.nextbutton = new Gtk.Button();
- this.nextbutton.Sensitive = false;
- this.nextbutton.Name = "nextbutton";
- this.nextbutton.UseUnderline = true;
- this.nextbutton.Relief = ((Gtk.ReliefStyle)(2));
- // Container child nextbutton.Gtk.Container+ContainerChild
- Gtk.Alignment w47 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- Gtk.HBox w48 = new Gtk.HBox();
- w48.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Image w49 = new Gtk.Image();
- w49.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-next", Gtk.IconSize.Button, 16);
- w48.Add(w49);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Label w51 = new Gtk.Label();
- w48.Add(w51);
- w47.Add(w48);
- this.nextbutton.Add(w47);
- this.buttonsbox.Add(this.nextbutton);
- Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(this.buttonsbox[this.nextbutton]));
- w55.Position = 5;
- w55.Expand = false;
- w55.Fill = false;
- this.controlsbox.Add(this.buttonsbox);
- Gtk.Box.BoxChild w56 = ((Gtk.Box.BoxChild)(this.controlsbox[this.buttonsbox]));
- w56.Position = 0;
- w56.Expand = false;
- w56.Fill = false;
- // Container child controlsbox.Gtk.Box+BoxChild
- this.tlabel = new Gtk.Label();
- this.tlabel.Name = "tlabel";
- this.tlabel.LabelProp = Mono.Unix.Catalog.GetString("Time:");
- this.controlsbox.Add(this.tlabel);
- Gtk.Box.BoxChild w57 = ((Gtk.Box.BoxChild)(this.controlsbox[this.tlabel]));
- w57.Position = 1;
- w57.Expand = false;
- w57.Fill = false;
- // Container child controlsbox.Gtk.Box+BoxChild
- this.timescale = new Gtk.HScale(null);
- this.timescale.Name = "timescale";
- this.timescale.UpdatePolicy = ((Gtk.UpdateType)(1));
- this.timescale.Adjustment.Upper = 1;
- this.timescale.Adjustment.PageIncrement = 1;
- this.timescale.Adjustment.StepIncrement = 1;
- this.timescale.Adjustment.Value = 1;
- this.timescale.DrawValue = false;
- this.timescale.Digits = 0;
- this.timescale.ValuePos = ((Gtk.PositionType)(2));
- this.controlsbox.Add(this.timescale);
- Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(this.controlsbox[this.timescale]));
- w58.Position = 2;
- // Container child controlsbox.Gtk.Box+BoxChild
- this.timelabel = new Gtk.Label();
- this.timelabel.Name = "timelabel";
- this.controlsbox.Add(this.timelabel);
- Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.controlsbox[this.timelabel]));
- w59.Position = 3;
- w59.Expand = false;
- // Container child controlsbox.Gtk.Box+BoxChild
- this.volumebutton = new Gtk.Button();
- this.volumebutton.Name = "volumebutton";
- this.volumebutton.UseUnderline = true;
- this.volumebutton.Relief = ((Gtk.ReliefStyle)(2));
- // Container child volumebutton.Gtk.Container+ContainerChild
- Gtk.Alignment w60 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
- // Container child GtkAlignment.Gtk.Container+ContainerChild
- Gtk.HBox w61 = new Gtk.HBox();
- w61.Spacing = 2;
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Image w62 = new Gtk.Image();
- w62.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_volume", Gtk.IconSize.Button, 16);
- w61.Add(w62);
- // Container child GtkHBox.Gtk.Container+ContainerChild
- Gtk.Label w64 = new Gtk.Label();
- w61.Add(w64);
- w60.Add(w61);
- this.volumebutton.Add(w60);
- this.controlsbox.Add(this.volumebutton);
- Gtk.Box.BoxChild w68 = ((Gtk.Box.BoxChild)(this.controlsbox[this.volumebutton]));
- w68.Position = 4;
- w68.Expand = false;
- w68.Fill = false;
- this.vbox2.Add(this.controlsbox);
- Gtk.Box.BoxChild w69 = ((Gtk.Box.BoxChild)(this.vbox2[this.controlsbox]));
- w69.Position = 1;
- w69.Expand = false;
- this.mainbox.Add(this.vbox2);
- Gtk.Box.BoxChild w70 = ((Gtk.Box.BoxChild)(this.mainbox[this.vbox2]));
- w70.Position = 0;
- // Container child mainbox.Gtk.Box+BoxChild
- this.vbox3 = new Gtk.VBox();
- this.vbox3.Name = "vbox3";
- this.vbox3.Spacing = 6;
- // Container child vbox3.Gtk.Box+BoxChild
- this.vscale1 = new Gtk.VScale(null);
- this.vscale1.WidthRequest = 45;
- this.vscale1.Sensitive = false;
- this.vscale1.Name = "vscale1";
- this.vscale1.UpdatePolicy = ((Gtk.UpdateType)(1));
- this.vscale1.Inverted = true;
- this.vscale1.Adjustment.Lower = 1;
- this.vscale1.Adjustment.Upper = 28;
- this.vscale1.Adjustment.PageIncrement = 3;
- this.vscale1.Adjustment.PageSize = 1;
- this.vscale1.Adjustment.StepIncrement = 1;
- this.vscale1.Adjustment.Value = 25;
- this.vscale1.DrawValue = true;
- this.vscale1.Digits = 0;
- this.vscale1.ValuePos = ((Gtk.PositionType)(3));
- this.vbox3.Add(this.vscale1);
- Gtk.Box.BoxChild w71 = ((Gtk.Box.BoxChild)(this.vbox3[this.vscale1]));
- w71.Position = 0;
- this.mainbox.Add(this.vbox3);
- Gtk.Box.BoxChild w72 = ((Gtk.Box.BoxChild)(this.mainbox[this.vbox3]));
- w72.Position = 1;
- w72.Expand = false;
- w72.Fill = false;
- this.Add(this.mainbox);
- if ((this.Child != null)) {
- this.Child.ShowAll();
- }
- this.closebutton.Hide();
- this.prevbutton.Hide();
- this.nextbutton.Hide();
- this.controlsbox.Hide();
- this.Show();
- this.closebutton.Clicked += new System.EventHandler(this.OnClosebuttonClicked);
- this.drawbutton.Clicked += new System.EventHandler(this.OnDrawButtonClicked);
- this.playbutton.Clicked += new System.EventHandler(this.OnPlaybuttonClicked);
- this.pausebutton.Clicked += new System.EventHandler(this.OnPausebuttonClicked);
- this.prevbutton.Clicked += new System.EventHandler(this.OnPrevbuttonClicked);
- this.nextbutton.Clicked += new System.EventHandler(this.OnNextbuttonClicked);
- this.timescale.ValueChanged += new System.EventHandler(this.OnTimescaleValueChanged);
- this.timescale.AdjustBounds += new Gtk.AdjustBoundsHandler(this.OnTimescaleAdjustBounds);
- this.volumebutton.Clicked += new System.EventHandler(this.OnVolumebuttonClicked);
- this.vscale1.FormatValue += new Gtk.FormatValueHandler(this.OnVscale1FormatValue);
- this.vscale1.ValueChanged += new System.EventHandler(this.OnVscale1ValueChanged);
- }
- }
+// This file has been generated by the GUI designer. Do not modify.
+namespace LongoMatch.Gui
+{
+ public partial class PlayerBin
+ {
+ private global::Gtk.HBox mainbox;
+
+ private global::Gtk.VBox vbox2;
+
+ private global::Gtk.HBox videobox;
+
+ private global::Gtk.HBox controlsbox;
+
+ private global::Gtk.HBox buttonsbox;
+
+ private global::Gtk.Button closebutton;
+
+ private global::Gtk.Button drawbutton;
+
+ private global::Gtk.Button playbutton;
+
+ private global::Gtk.Button pausebutton;
+
+ private global::Gtk.Button prevbutton;
+
+ private global::Gtk.Button nextbutton;
+
+ private global::Gtk.Label tlabel;
+
+ private global::Gtk.HScale timescale;
+
+ private global::Gtk.Label timelabel;
+
+ private global::Gtk.Button volumebutton;
+
+ private global::Gtk.VBox vbox3;
+
+ private global::Gtk.VScale vscale1;
+
+ protected virtual void Build ()
+ {
+ global::Stetic.Gui.Initialize (this);
+ // Widget LongoMatch.Gui.PlayerBin
+ global::Stetic.BinContainer.Attach (this);
+ this.Name = "LongoMatch.Gui.PlayerBin";
+ // Container child LongoMatch.Gui.PlayerBin.Gtk.Container+ContainerChild
+ this.mainbox = new global::Gtk.HBox ();
+ this.mainbox.Name = "mainbox";
+ this.mainbox.Spacing = 6;
+ // Container child mainbox.Gtk.Box+BoxChild
+ this.vbox2 = new global::Gtk.VBox ();
+ this.vbox2.Name = "vbox2";
+ this.vbox2.Spacing = 6;
+ // Container child vbox2.Gtk.Box+BoxChild
+ this.videobox = new global::Gtk.HBox ();
+ this.videobox.Name = "videobox";
+ this.videobox.Spacing = 6;
+ this.vbox2.Add (this.videobox);
+ global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.videobox]));
+ w1.Position = 0;
+ // Container child vbox2.Gtk.Box+BoxChild
+ this.controlsbox = new global::Gtk.HBox ();
+ this.controlsbox.Name = "controlsbox";
+ this.controlsbox.Spacing = 6;
+ // Container child controlsbox.Gtk.Box+BoxChild
+ this.buttonsbox = new global::Gtk.HBox ();
+ this.buttonsbox.Name = "buttonsbox";
+ this.buttonsbox.Homogeneous = true;
+ // Container child buttonsbox.Gtk.Box+BoxChild
+ this.closebutton = new global::Gtk.Button ();
+ this.closebutton.Name = "closebutton";
+ this.closebutton.UseUnderline = true;
+ // Container child closebutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w2 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w3 = new global::Gtk.HBox ();
+ w3.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w4 = new global::Gtk.Image ();
+ w4.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-close", global::Gtk.IconSize.Dnd);
+ w3.Add (w4);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w6 = new global::Gtk.Label ();
+ w3.Add (w6);
+ w2.Add (w3);
+ this.closebutton.Add (w2);
+ this.buttonsbox.Add (this.closebutton);
+ global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.buttonsbox[this.closebutton]));
+ w10.Position = 0;
+ w10.Expand = false;
+ w10.Fill = false;
+ // Container child buttonsbox.Gtk.Box+BoxChild
+ this.drawbutton = new global::Gtk.Button ();
+ this.drawbutton.Name = "drawbutton";
+ this.drawbutton.UseUnderline = true;
+ // Container child drawbutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w11 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w12 = new global::Gtk.HBox ();
+ w12.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w13 = new global::Gtk.Image ();
+ w13.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-select-color", global::Gtk.IconSize.Menu);
+ w12.Add (w13);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w15 = new global::Gtk.Label ();
+ w12.Add (w15);
+ w11.Add (w12);
+ this.drawbutton.Add (w11);
+ this.buttonsbox.Add (this.drawbutton);
+ global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.buttonsbox[this.drawbutton]));
+ w19.Position = 1;
+ w19.Expand = false;
+ w19.Fill = false;
+ // Container child buttonsbox.Gtk.Box+BoxChild
+ this.playbutton = new global::Gtk.Button ();
+ this.playbutton.Name = "playbutton";
+ this.playbutton.UseUnderline = true;
+ this.playbutton.Relief = ((global::Gtk.ReliefStyle)(2));
+ // Container child playbutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w20 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w21 = new global::Gtk.HBox ();
+ w21.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w22 = new global::Gtk.Image ();
+ w22.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-play", global::Gtk.IconSize.Button);
+ w21.Add (w22);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w24 = new global::Gtk.Label ();
+ w21.Add (w24);
+ w20.Add (w21);
+ this.playbutton.Add (w20);
+ this.buttonsbox.Add (this.playbutton);
+ global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.buttonsbox[this.playbutton]));
+ w28.Position = 2;
+ w28.Expand = false;
+ w28.Fill = false;
+ // Container child buttonsbox.Gtk.Box+BoxChild
+ this.pausebutton = new global::Gtk.Button ();
+ this.pausebutton.Name = "pausebutton";
+ this.pausebutton.UseUnderline = true;
+ this.pausebutton.Relief = ((global::Gtk.ReliefStyle)(2));
+ // Container child pausebutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w29 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w30 = new global::Gtk.HBox ();
+ w30.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w31 = new global::Gtk.Image ();
+ w31.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-pause", global::Gtk.IconSize.Button);
+ w30.Add (w31);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w33 = new global::Gtk.Label ();
+ w30.Add (w33);
+ w29.Add (w30);
+ this.pausebutton.Add (w29);
+ this.buttonsbox.Add (this.pausebutton);
+ global::Gtk.Box.BoxChild w37 = ((global::Gtk.Box.BoxChild)(this.buttonsbox[this.pausebutton]));
+ w37.Position = 3;
+ w37.Expand = false;
+ w37.Fill = false;
+ // Container child buttonsbox.Gtk.Box+BoxChild
+ this.prevbutton = new global::Gtk.Button ();
+ this.prevbutton.Name = "prevbutton";
+ this.prevbutton.UseUnderline = true;
+ this.prevbutton.Relief = ((global::Gtk.ReliefStyle)(2));
+ // Container child prevbutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w38 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w39 = new global::Gtk.HBox ();
+ w39.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w40 = new global::Gtk.Image ();
+ w40.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-previous", global::Gtk.IconSize.Button);
+ w39.Add (w40);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w42 = new global::Gtk.Label ();
+ w39.Add (w42);
+ w38.Add (w39);
+ this.prevbutton.Add (w38);
+ this.buttonsbox.Add (this.prevbutton);
+ global::Gtk.Box.BoxChild w46 = ((global::Gtk.Box.BoxChild)(this.buttonsbox[this.prevbutton]));
+ w46.Position = 4;
+ w46.Expand = false;
+ w46.Fill = false;
+ // Container child buttonsbox.Gtk.Box+BoxChild
+ this.nextbutton = new global::Gtk.Button ();
+ this.nextbutton.Sensitive = false;
+ this.nextbutton.Name = "nextbutton";
+ this.nextbutton.UseUnderline = true;
+ this.nextbutton.Relief = ((global::Gtk.ReliefStyle)(2));
+ // Container child nextbutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w47 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w48 = new global::Gtk.HBox ();
+ w48.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w49 = new global::Gtk.Image ();
+ w49.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-next", global::Gtk.IconSize.Button);
+ w48.Add (w49);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w51 = new global::Gtk.Label ();
+ w48.Add (w51);
+ w47.Add (w48);
+ this.nextbutton.Add (w47);
+ this.buttonsbox.Add (this.nextbutton);
+ global::Gtk.Box.BoxChild w55 = ((global::Gtk.Box.BoxChild)(this.buttonsbox[this.nextbutton]));
+ w55.Position = 5;
+ w55.Expand = false;
+ w55.Fill = false;
+ this.controlsbox.Add (this.buttonsbox);
+ global::Gtk.Box.BoxChild w56 = ((global::Gtk.Box.BoxChild)(this.controlsbox[this.buttonsbox]));
+ w56.Position = 0;
+ w56.Expand = false;
+ w56.Fill = false;
+ // Container child controlsbox.Gtk.Box+BoxChild
+ this.tlabel = new global::Gtk.Label ();
+ this.tlabel.Name = "tlabel";
+ this.tlabel.LabelProp = global::Mono.Unix.Catalog.GetString ("Time:");
+ this.controlsbox.Add (this.tlabel);
+ global::Gtk.Box.BoxChild w57 = ((global::Gtk.Box.BoxChild)(this.controlsbox[this.tlabel]));
+ w57.Position = 1;
+ w57.Expand = false;
+ w57.Fill = false;
+ // Container child controlsbox.Gtk.Box+BoxChild
+ this.timescale = new global::Gtk.HScale (null);
+ this.timescale.Name = "timescale";
+ this.timescale.UpdatePolicy = ((global::Gtk.UpdateType)(1));
+ this.timescale.Adjustment.Upper = 1;
+ this.timescale.Adjustment.PageIncrement = 1;
+ this.timescale.Adjustment.StepIncrement = 1;
+ this.timescale.Adjustment.Value = 1;
+ this.timescale.DrawValue = false;
+ this.timescale.Digits = 0;
+ this.timescale.ValuePos = ((global::Gtk.PositionType)(2));
+ this.controlsbox.Add (this.timescale);
+ global::Gtk.Box.BoxChild w58 = ((global::Gtk.Box.BoxChild)(this.controlsbox[this.timescale]));
+ w58.Position = 2;
+ // Container child controlsbox.Gtk.Box+BoxChild
+ this.timelabel = new global::Gtk.Label ();
+ this.timelabel.Name = "timelabel";
+ this.controlsbox.Add (this.timelabel);
+ global::Gtk.Box.BoxChild w59 = ((global::Gtk.Box.BoxChild)(this.controlsbox[this.timelabel]));
+ w59.Position = 3;
+ w59.Expand = false;
+ // Container child controlsbox.Gtk.Box+BoxChild
+ this.volumebutton = new global::Gtk.Button ();
+ this.volumebutton.Name = "volumebutton";
+ this.volumebutton.UseUnderline = true;
+ this.volumebutton.Relief = ((global::Gtk.ReliefStyle)(2));
+ // Container child volumebutton.Gtk.Container+ContainerChild
+ global::Gtk.Alignment w60 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f);
+ // Container child GtkAlignment.Gtk.Container+ContainerChild
+ global::Gtk.HBox w61 = new global::Gtk.HBox ();
+ w61.Spacing = 2;
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Image w62 = new global::Gtk.Image ();
+ w62.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "stock_volume", global::Gtk.IconSize.Button);
+ w61.Add (w62);
+ // Container child GtkHBox.Gtk.Container+ContainerChild
+ global::Gtk.Label w64 = new global::Gtk.Label ();
+ w61.Add (w64);
+ w60.Add (w61);
+ this.volumebutton.Add (w60);
+ this.controlsbox.Add (this.volumebutton);
+ global::Gtk.Box.BoxChild w68 = ((global::Gtk.Box.BoxChild)(this.controlsbox[this.volumebutton]));
+ w68.Position = 4;
+ w68.Expand = false;
+ w68.Fill = false;
+ this.vbox2.Add (this.controlsbox);
+ global::Gtk.Box.BoxChild w69 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.controlsbox]));
+ w69.Position = 1;
+ w69.Expand = false;
+ this.mainbox.Add (this.vbox2);
+ global::Gtk.Box.BoxChild w70 = ((global::Gtk.Box.BoxChild)(this.mainbox[this.vbox2]));
+ w70.Position = 0;
+ // Container child mainbox.Gtk.Box+BoxChild
+ this.vbox3 = new global::Gtk.VBox ();
+ this.vbox3.Name = "vbox3";
+ this.vbox3.Spacing = 6;
+ // Container child vbox3.Gtk.Box+BoxChild
+ this.vscale1 = new global::Gtk.VScale (null);
+ this.vscale1.WidthRequest = 45;
+ this.vscale1.Sensitive = false;
+ this.vscale1.Name = "vscale1";
+ this.vscale1.UpdatePolicy = ((global::Gtk.UpdateType)(1));
+ this.vscale1.Inverted = true;
+ this.vscale1.Adjustment.Lower = 1;
+ this.vscale1.Adjustment.Upper = 28;
+ this.vscale1.Adjustment.PageIncrement = 3;
+ this.vscale1.Adjustment.PageSize = 1;
+ this.vscale1.Adjustment.StepIncrement = 1;
+ this.vscale1.Adjustment.Value = 25;
+ this.vscale1.DrawValue = true;
+ this.vscale1.Digits = 0;
+ this.vscale1.ValuePos = ((global::Gtk.PositionType)(3));
+ this.vbox3.Add (this.vscale1);
+ global::Gtk.Box.BoxChild w71 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.vscale1]));
+ w71.Position = 0;
+ this.mainbox.Add (this.vbox3);
+ global::Gtk.Box.BoxChild w72 = ((global::Gtk.Box.BoxChild)(this.mainbox[this.vbox3]));
+ w72.Position = 1;
+ w72.Expand = false;
+ w72.Fill = false;
+ this.Add (this.mainbox);
+ if ((this.Child != null)) {
+ this.Child.ShowAll ();
+ }
+ this.closebutton.Hide ();
+ this.prevbutton.Hide ();
+ this.nextbutton.Hide ();
+ this.controlsbox.Hide ();
+ this.Show ();
+ this.closebutton.Clicked += new global::System.EventHandler (this.OnClosebuttonClicked);
+ this.drawbutton.Clicked += new global::System.EventHandler (this.OnDrawButtonClicked);
+ this.playbutton.Clicked += new global::System.EventHandler (this.OnPlaybuttonClicked);
+ this.pausebutton.Clicked += new global::System.EventHandler (this.OnPausebuttonClicked);
+ this.prevbutton.Clicked += new global::System.EventHandler (this.OnPrevbuttonClicked);
+ this.nextbutton.Clicked += new global::System.EventHandler (this.OnNextbuttonClicked);
+ this.timescale.ValueChanged += new global::System.EventHandler (this.OnTimescaleValueChanged);
+ this.timescale.AdjustBounds += new global::Gtk.AdjustBoundsHandler (this.OnTimescaleAdjustBounds);
+ this.volumebutton.Clicked += new global::System.EventHandler (this.OnVolumebuttonClicked);
+ this.vscale1.FormatValue += new global::Gtk.FormatValueHandler (this.OnVscale1FormatValue);
+ this.vscale1.ValueChanged += new global::System.EventHandler (this.OnVscale1ValueChanged);
+ }
+ }
}
diff --git a/CesarPlayer/gtk-gui/LongoMatch.Gui.VolumeWindow.cs b/CesarPlayer/gtk-gui/LongoMatch.Gui.VolumeWindow.cs
index ece41c9..8857840 100644
--- a/CesarPlayer/gtk-gui/LongoMatch.Gui.VolumeWindow.cs
+++ b/CesarPlayer/gtk-gui/LongoMatch.Gui.VolumeWindow.cs
@@ -1,85 +1,77 @@
-// ------------------------------------------------------------------------------
-// <autogenerated>
-// This code was generated by a tool.
-//
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </autogenerated>
-// ------------------------------------------------------------------------------
-namespace LongoMatch.Gui {
-
-
- public partial class VolumeWindow {
-
- private Gtk.VBox vbox2;
-
- private Gtk.Button morebutton;
-
- private Gtk.VScale volumescale;
-
- private Gtk.Button lessbutton;
-
- protected virtual void Build() {
- Stetic.Gui.Initialize(this);
- // Widget LongoMatch.Gui.VolumeWindow
- this.Name = "LongoMatch.Gui.VolumeWindow";
- this.Title = "";
- this.WindowPosition = ((Gtk.WindowPosition)(2));
- this.Decorated = false;
- this.DestroyWithParent = true;
- this.SkipPagerHint = true;
- this.SkipTaskbarHint = true;
- // Container child LongoMatch.Gui.VolumeWindow.Gtk.Container+ContainerChild
- this.vbox2 = new Gtk.VBox();
- this.vbox2.Name = "vbox2";
- // Container child vbox2.Gtk.Box+BoxChild
- this.morebutton = new Gtk.Button();
- this.morebutton.Name = "morebutton";
- this.morebutton.Relief = ((Gtk.ReliefStyle)(2));
- this.morebutton.Label = "+";
- this.vbox2.Add(this.morebutton);
- Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.morebutton]));
- w1.Position = 0;
- w1.Expand = false;
- w1.Fill = false;
- // Container child vbox2.Gtk.Box+BoxChild
- this.volumescale = new Gtk.VScale(null);
- this.volumescale.CanFocus = true;
- this.volumescale.Name = "volumescale";
- this.volumescale.Inverted = true;
- this.volumescale.Adjustment.Upper = 1;
- this.volumescale.Adjustment.PageIncrement = 1;
- this.volumescale.Adjustment.StepIncrement = 1;
- this.volumescale.Adjustment.Value = 1;
- this.volumescale.DrawValue = false;
- this.volumescale.Digits = 0;
- this.volumescale.ValuePos = ((Gtk.PositionType)(2));
- this.vbox2.Add(this.volumescale);
- Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.volumescale]));
- w2.Position = 1;
- // Container child vbox2.Gtk.Box+BoxChild
- this.lessbutton = new Gtk.Button();
- this.lessbutton.Name = "lessbutton";
- this.lessbutton.Relief = ((Gtk.ReliefStyle)(2));
- this.lessbutton.Label = "-";
- this.vbox2.Add(this.lessbutton);
- Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.lessbutton]));
- w3.Position = 2;
- w3.Expand = false;
- w3.Fill = false;
- this.Add(this.vbox2);
- if ((this.Child != null)) {
- this.Child.ShowAll();
- }
- this.DefaultWidth = 31;
- this.DefaultHeight = 204;
- this.Hide();
- this.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnFocusOutEvent);
- this.morebutton.Clicked += new System.EventHandler(this.OnMorebuttonClicked);
- this.volumescale.ValueChanged += new System.EventHandler(this.OnVolumescaleValueChanged);
- this.lessbutton.Clicked += new System.EventHandler(this.OnLessbuttonClicked);
- }
- }
+// This file has been generated by the GUI designer. Do not modify.
+namespace LongoMatch.Gui
+{
+ public partial class VolumeWindow
+ {
+ private global::Gtk.VBox vbox2;
+
+ private global::Gtk.Button morebutton;
+
+ private global::Gtk.VScale volumescale;
+
+ private global::Gtk.Button lessbutton;
+
+ protected virtual void Build ()
+ {
+ global::Stetic.Gui.Initialize (this);
+ // Widget LongoMatch.Gui.VolumeWindow
+ this.Name = "LongoMatch.Gui.VolumeWindow";
+ this.Title = "";
+ this.WindowPosition = ((global::Gtk.WindowPosition)(2));
+ this.Decorated = false;
+ this.DestroyWithParent = true;
+ this.SkipPagerHint = true;
+ this.SkipTaskbarHint = true;
+ // Container child LongoMatch.Gui.VolumeWindow.Gtk.Container+ContainerChild
+ this.vbox2 = new global::Gtk.VBox ();
+ this.vbox2.Name = "vbox2";
+ // Container child vbox2.Gtk.Box+BoxChild
+ this.morebutton = new global::Gtk.Button ();
+ this.morebutton.Name = "morebutton";
+ this.morebutton.Relief = ((global::Gtk.ReliefStyle)(2));
+ this.morebutton.Label = "+";
+ this.vbox2.Add (this.morebutton);
+ global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.morebutton]));
+ w1.Position = 0;
+ w1.Expand = false;
+ w1.Fill = false;
+ // Container child vbox2.Gtk.Box+BoxChild
+ this.volumescale = new global::Gtk.VScale (null);
+ this.volumescale.CanFocus = true;
+ this.volumescale.Name = "volumescale";
+ this.volumescale.Inverted = true;
+ this.volumescale.Adjustment.Upper = 1;
+ this.volumescale.Adjustment.PageIncrement = 1;
+ this.volumescale.Adjustment.StepIncrement = 1;
+ this.volumescale.Adjustment.Value = 1;
+ this.volumescale.DrawValue = false;
+ this.volumescale.Digits = 0;
+ this.volumescale.ValuePos = ((global::Gtk.PositionType)(2));
+ this.vbox2.Add (this.volumescale);
+ global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.volumescale]));
+ w2.Position = 1;
+ // Container child vbox2.Gtk.Box+BoxChild
+ this.lessbutton = new global::Gtk.Button ();
+ this.lessbutton.Name = "lessbutton";
+ this.lessbutton.Relief = ((global::Gtk.ReliefStyle)(2));
+ this.lessbutton.Label = "-";
+ this.vbox2.Add (this.lessbutton);
+ global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.lessbutton]));
+ w3.Position = 2;
+ w3.Expand = false;
+ w3.Fill = false;
+ this.Add (this.vbox2);
+ if ((this.Child != null)) {
+ this.Child.ShowAll ();
+ }
+ this.DefaultWidth = 31;
+ this.DefaultHeight = 204;
+ this.Hide ();
+ this.FocusOutEvent += new global::Gtk.FocusOutEventHandler (this.OnFocusOutEvent);
+ this.morebutton.Clicked += new global::System.EventHandler (this.OnMorebuttonClicked);
+ this.volumescale.ValueChanged += new global::System.EventHandler (this.OnVolumescaleValueChanged);
+ this.lessbutton.Clicked += new global::System.EventHandler (this.OnLessbuttonClicked);
+ }
+ }
}
diff --git a/CesarPlayer/gtk-gui/generated.cs b/CesarPlayer/gtk-gui/generated.cs
index 35f420b..559a39e 100644
--- a/CesarPlayer/gtk-gui/generated.cs
+++ b/CesarPlayer/gtk-gui/generated.cs
@@ -1,115 +1,116 @@
-// ------------------------------------------------------------------------------
-// <autogenerated>
-// This code was generated by a tool.
-//
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </autogenerated>
-// ------------------------------------------------------------------------------
-namespace Stetic {
-
-
- internal class Gui {
-
- private static bool initialized;
-
- internal static void Initialize(Gtk.Widget iconRenderer) {
- if ((Stetic.Gui.initialized == false)) {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class BinContainer {
-
- private Gtk.Widget child;
-
- private Gtk.UIManager uimanager;
-
- public static BinContainer Attach(Gtk.Bin bin) {
- BinContainer bc = new BinContainer();
- bin.SizeRequested += new Gtk.SizeRequestedHandler(bc.OnSizeRequested);
- bin.SizeAllocated += new Gtk.SizeAllocatedHandler(bc.OnSizeAllocated);
- bin.Added += new Gtk.AddedHandler(bc.OnAdded);
- return bc;
- }
-
- private void OnSizeRequested(object sender, Gtk.SizeRequestedArgs args) {
- if ((this.child != null)) {
- args.Requisition = this.child.SizeRequest();
- }
- }
-
- private void OnSizeAllocated(object sender, Gtk.SizeAllocatedArgs args) {
- if ((this.child != null)) {
- this.child.Allocation = args.Allocation;
- }
- }
-
- private void OnAdded(object sender, Gtk.AddedArgs args) {
- this.child = args.Widget;
- }
-
- public void SetUiManager(Gtk.UIManager uim) {
- this.uimanager = uim;
- this.child.Realized += new System.EventHandler(this.OnRealized);
- }
-
- private void OnRealized(object sender, System.EventArgs args) {
- if ((this.uimanager != null)) {
- Gtk.Widget w;
- w = this.child.Toplevel;
- if (((w != null) && typeof(Gtk.Window).IsInstanceOfType(w))) {
- ((Gtk.Window)(w)).AddAccelGroup(this.uimanager.AccelGroup);
- this.uimanager = null;
- }
- }
- }
- }
-
- internal class IconLoader {
-
- public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size, int sz) {
- Gdk.Pixbuf res = widget.RenderIcon(name, size, null);
- if ((res != null)) {
- return res;
- }
- else {
- try {
- return Gtk.IconTheme.Default.LoadIcon(name, sz, 0);
- }
- catch (System.Exception ) {
- if ((name != "gtk-missing-image")) {
- return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size, sz);
- }
- else {
- Gdk.Pixmap pmap = new Gdk.Pixmap(Gdk.Screen.Default.RootWindow, sz, sz);
- Gdk.GC gc = new Gdk.GC(pmap);
- gc.RgbFgColor = new Gdk.Color(255, 255, 255);
- pmap.DrawRectangle(gc, true, 0, 0, sz, sz);
- gc.RgbFgColor = new Gdk.Color(0, 0, 0);
- pmap.DrawRectangle(gc, false, 0, 0, (sz - 1), (sz - 1));
- gc.SetLineAttributes(3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
- gc.RgbFgColor = new Gdk.Color(255, 0, 0);
- pmap.DrawLine(gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
- pmap.DrawLine(gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
- return Gdk.Pixbuf.FromDrawable(pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
- }
- }
- }
- }
- }
-
- internal class ActionGroups {
-
- public static Gtk.ActionGroup GetActionGroup(System.Type type) {
- return Stetic.ActionGroups.GetActionGroup(type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup(string name) {
- return null;
- }
- }
+// This file has been generated by the GUI designer. Do not modify.
+namespace Stetic
+{
+ internal class Gui
+ {
+ private static bool initialized;
+
+ static internal void Initialize (Gtk.Widget iconRenderer)
+ {
+ if ((Stetic.Gui.initialized == false)) {
+ Stetic.Gui.initialized = true;
+ }
+ }
+ }
+
+ internal class BinContainer
+ {
+ private Gtk.Widget child;
+
+ private Gtk.UIManager uimanager;
+
+ public static BinContainer Attach (Gtk.Bin bin)
+ {
+ BinContainer bc = new BinContainer ();
+ bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
+ bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
+ bin.Added += new Gtk.AddedHandler (bc.OnAdded);
+ return bc;
+ }
+
+ private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
+ {
+ if ((this.child != null)) {
+ args.Requisition = this.child.SizeRequest ();
+ }
+ }
+
+ private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
+ {
+ if ((this.child != null)) {
+ this.child.Allocation = args.Allocation;
+ }
+ }
+
+ private void OnAdded (object sender, Gtk.AddedArgs args)
+ {
+ this.child = args.Widget;
+ }
+
+ public void SetUiManager (Gtk.UIManager uim)
+ {
+ this.uimanager = uim;
+ this.child.Realized += new System.EventHandler (this.OnRealized);
+ }
+
+ private void OnRealized (object sender, System.EventArgs args)
+ {
+ if ((this.uimanager != null)) {
+ Gtk.Widget w;
+ w = this.child.Toplevel;
+ if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) {
+ ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
+ this.uimanager = null;
+ }
+ }
+ }
+ }
+
+ internal class IconLoader
+ {
+ public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size)
+ {
+ Gdk.Pixbuf res = widget.RenderIcon (name, size, null);
+ if ((res != null)) {
+ return res;
+ } else {
+ int sz;
+ int sy;
+ global::Gtk.Icon.SizeLookup (size, out sz, out sy);
+ try {
+ return Gtk.IconTheme.Default.LoadIcon (name, sz, 0);
+ } catch (System.Exception) {
+ if ((name != "gtk-missing-image")) {
+ return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size);
+ } else {
+ Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz);
+ Gdk.GC gc = new Gdk.GC (pmap);
+ gc.RgbFgColor = new Gdk.Color (255, 255, 255);
+ pmap.DrawRectangle (gc, true, 0, 0, sz, sz);
+ gc.RgbFgColor = new Gdk.Color (0, 0, 0);
+ pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1));
+ gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
+ gc.RgbFgColor = new Gdk.Color (255, 0, 0);
+ pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
+ pmap.DrawLine (gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
+ return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
+ }
+ }
+ }
+ }
+ }
+
+ internal class ActionGroups
+ {
+ public static Gtk.ActionGroup GetActionGroup (System.Type type)
+ {
+ return Stetic.ActionGroups.GetActionGroup (type.FullName);
+ }
+
+ public static Gtk.ActionGroup GetActionGroup (string name)
+ {
+ return null;
+ }
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]