public void TBESG_AddRemove_Remove_BigList() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd4 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd5 = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); grp.Append(toAdd4); grp.Append(toAdd5); Assert.AreEqual(5, grp.GetCountButton(), "There should be 5 buttons in the group"); // remove the 3rd one bool result = grp.Remove(toAdd3); Assert.AreEqual(true, result, "3rd button removal should work"); Assert.AreEqual(4, grp.GetCountButton(), "There should be 4 buttons in the group"); // make sure the 3 is no longer there int pos = grp.FindInGroup(toAdd3); Assert.AreEqual(-1, pos, "The button should not be found anymore"); }
/// <summary> /// Method to remove a control from the control Array, using the index in the array /// </summary> /// <param name="index">Index to remove</param> /// <returns>True if the button has been removed</returns> /// <remarks>Will unselect the current selection. (to prevent keeping ghost selection)</remarks> public bool Remove(int index) { // validation if (index < 0) { this.Log().Warn("Index to remove is outside of bound (negative), check for errors."); return(false); } if (index >= controlList.Length) { this.Log().Warn("Index to remove is outside of bound (positive), check for errors."); return(false); } // unselect everything Unselect(); // removal this.Log().Debug("Trying to remove the control"); Gtk.ToggleButton[] newArray = new Gtk.ToggleButton[controlList.Length - 1]; for (int i = 0; i < index; i++) { newArray[i] = controlList[i]; } for (int i = (index + 1); i < controlList.Length; i++) { newArray[i - 1] = controlList[i]; } // swap the list this.Log().Debug("Swapping the list with the new one"); controlList = newArray; return(true); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Resizable = false; // Container child MainWindow.Gtk.Container+ContainerChild this.fixed4 = new Gtk.Fixed(); this.fixed4.Name = "fixed4"; this.fixed4.HasWindow = false; // Container child fixed4.Gtk.Fixed+FixedChild this.comboboxentry1 = Gtk.ComboBoxEntry.NewText(); this.comboboxentry1.WidthRequest = 450; this.comboboxentry1.Name = "comboboxentry1"; this.fixed4.Add(this.comboboxentry1); // Container child fixed4.Gtk.Fixed+FixedChild this.togglebutton2 = new Gtk.ToggleButton(); this.togglebutton2.WidthRequest = 50; this.togglebutton2.CanFocus = true; this.togglebutton2.Name = "togglebutton2"; this.togglebutton2.UseUnderline = true; this.togglebutton2.Label = Mono.Unix.Catalog.GetString("On"); this.fixed4.Add(this.togglebutton2); Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.togglebutton2])); w2.X = 450; // Container child fixed4.Gtk.Fixed+FixedChild this.label1 = new Gtk.Label(); this.label1.WidthRequest = 100; this.label1.HeightRequest = 28; this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("00:11:22"); this.fixed4.Add(this.label1); Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label1])); w3.X = 500; // Container child fixed4.Gtk.Fixed+FixedChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.WidthRequest = 600; this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.textview2 = new Gtk.TextView(); this.textview2.CanFocus = true; this.textview2.Name = "textview2"; this.GtkScrolledWindow.Add(this.textview2); this.fixed4.Add(this.GtkScrolledWindow); Gtk.Fixed.FixedChild w5 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.GtkScrolledWindow])); w5.Y = 32; this.Add(this.fixed4); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 602; this.DefaultHeight = 178; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.togglebutton2.Toggled += new System.EventHandler(this.togglebutton2_onClick); }
/// <summary> /// Method that removes a control from the control array, using the control itself /// </summary> /// <param name="input">The control to remove</param> /// <returns>True if the control has been removed</returns> /// <remarks>Will unselect the current selection. (to prevent keeping ghost selection)</remarks> public bool Remove(Gtk.ToggleButton input) { int index = FindInGroup(input); if (index == -1) { this.Log().Info("Trying to remove a control that doesn't exist."); return(false); } // use the real select method return(Remove(index)); }
public void TBESG_AddRemove_Remove_Number() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); bool result = grp.Append(toAdd); Assert.AreEqual(true, result, "ToggleButton1 Should be able to be added"); result = grp.Remove(0); Assert.AreEqual(true, result, "ToggleButton Should be removed properly"); Assert.AreEqual(0, grp.GetCountButton(), "There should be no button in the group"); }
public void TBESG_AddRemove_Remove_NotExistant_Number() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); bool result = grp.Append(toAdd); Assert.AreEqual(true, result, "ToggleButton1 Should be able to be added"); result = grp.Remove(4); Assert.AreEqual(false, result, "Invalid button to remove, shouldn't work"); Assert.AreEqual(1, grp.GetCountButton(), "There should be 1 button in the group"); }
/// <summary> /// Method that will return the index of a control if found, in the Control Array /// </summary> /// <returns>The index of the control in the group, 0-based, -1 if not found.</returns> /// <param name="input">The control to find.</param> public int FindInGroup(Gtk.ToggleButton input) { this.Log().Debug("Trying to find input: " + input.Name); for (int i = 0; i < controlList.Length; i++) { if (input == controlList[i]) { this.Log().Debug("Control found."); return(i); } } this.Log().Debug("Control not found."); return(-1); }
public void TBESG_AddRemove_Append_Duplicate() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); bool result = grp.Append(toAdd); Assert.AreEqual(true, result, "ToggleButton Should be able to be added the first time"); result = grp.Append(toAdd); Assert.AreEqual(false, result, "ToggleButton Should not be able to be added the second time"); Assert.AreEqual(1, grp.GetCountButton(), "There should be 1 button in the group"); }
public void TBESG_AddRemove_Append_Multiple() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd1 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); bool result = grp.Append(toAdd1); Assert.AreEqual(true, result, "ToggleButton1 Should be able to be added"); result = grp.Append(toAdd2); Assert.AreEqual(true, result, "ToggleButton2 Should not be able to be added"); Assert.AreEqual(2, grp.GetCountButton(), "There should be 2 buttons in the group"); }
public void TBESG_Select_TooHigh() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); Assert.AreEqual(3, grp.GetCountButton(), "There should be 3 buttons in the group"); bool result = grp.Select(6); Assert.AreEqual(false, result, "Selection of index 6 is too high"); }
public void TBESG_FindInGroup_Normal() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); Assert.AreEqual(3, grp.GetCountButton(), "There should be 3 buttons in the group"); int result = grp.FindInGroup(toAdd2); Assert.AreEqual(1, result, "The FindInGroup method should return the right control index"); }
public static Gtk.ToggleButton ChainButton() { Gtk.ToggleButton but = new Gtk.ToggleButton(); but.Relief = Gtk.ReliefStyle.None; Gtk.Image im1 = Gtk.Image.LoadFromResource("chain.png"); Gtk.Image im2 = Gtk.Image.LoadFromResource("chain-broken.png"); but.Active = false; but.Image = im1; but.Toggled += delegate(object sender, EventArgs e) { but.Image = (sender as Gtk.ToggleButton).Active ? im2 : im1; }; return(but); }
public override void Initialize(IPadWindow pad) { base.Initialize(pad); // Init editor outputEditor = new TextEditor(); outputEditor.Events = Gdk.EventMask.AllEventsMask; outputEditor.Name = "outputEditor"; outputEditor.TabsToSpaces = false; scrolledWindow = new Gtk.ScrolledWindow(); scrolledWindow.Child = outputEditor; scrolledWindow.ShadowType = Gtk.ShadowType.In; scrolledWindow.ShowAll(); outputEditor.ShowAll(); var o = outputEditor.Options; outputEditor.Document.MimeType = Formatting.DCodeFormatter.MimeType; o.ShowLineNumberMargin = false; o.ShowFoldMargin = false; o.ShowIconMargin = false; outputEditor.Document.ReadOnly = true; // Init toolbar var tb = pad.GetToolbar(Gtk.PositionType.Top); var ch = new Gtk.ToggleButton(); ch.Image = new Gtk.Image(Gtk.Stock.Refresh, Gtk.IconSize.Menu); ch.Active = EnableCaretTracking; ch.TooltipText = "Toggle automatic update after the caret has been moved."; ch.Toggled += (object s, EventArgs ea) => EnableCaretTracking = ch.Active; tb.Add(ch); abortButton = new Gtk.Button(); abortButton.Sensitive = false; abortButton.Image = new Gtk.Image(Gtk.Stock.Stop, Gtk.IconSize.Menu); abortButton.TooltipText = "Stops the evaluation."; abortButton.Clicked += (object sender, EventArgs e) => AbortExecution(); tb.Add(abortButton); tb.ShowAll(); Instance = this; }
public void TBESG_Select_LikeUnselected() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); Assert.AreEqual(3, grp.GetCountButton(), "There should be 3 buttons in the group"); bool result = grp.Select(-1); Assert.AreEqual(false, result, "Selection of index -1 should not work"); }
public void TBESG_Unselect_Unselected() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); Assert.AreEqual(3, grp.GetCountButton(), "There should be 3 buttons in the group"); bool result = grp.Unselect(); Assert.AreEqual(false, result, "Nothing selected, should not be able to unselect"); }
public void TBESG_FindInGroup_NotExist() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); Gtk.ToggleButton toAddX = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); Assert.AreEqual(3, grp.GetCountButton(), "There should be 3 buttons in the group"); int result = grp.FindInGroup(toAddX); Assert.AreEqual(-1, result, "The FindInGroup method shouldn't find the control requested, returning -1"); }
void IPadContent.Initialize(IPadWindow window) { window.Title = GettextCatalog.GetString("Errors"); DockItemToolbar toolbar = window.GetToolbar(Gtk.PositionType.Top); errorBtn = new Gtk.ToggleButton(); errorBtn.Active = (bool)PropertyService.Get(showErrorsPropertyName, true); errorBtn.Image = new Gtk.Image(Stock.Error, Gtk.IconSize.Menu); errorBtn.Image.Show(); // errorBtn.Toggled += new EventHandler (FilterChanged); errorBtn.TooltipText = GettextCatalog.GetString("Show Errors"); // UpdateErrorsNum(); toolbar.Add(errorBtn); warnBtn = new Gtk.ToggleButton(); warnBtn.Active = (bool)PropertyService.Get(showWarningsPropertyName, true); warnBtn.Image = new Gtk.Image(Stock.Warning, Gtk.IconSize.Menu); warnBtn.Image.Show(); // warnBtn.Toggled += new EventHandler (FilterChanged); warnBtn.TooltipText = GettextCatalog.GetString("Show Warnings"); // UpdateWarningsNum(); toolbar.Add(warnBtn); msgBtn = new Gtk.ToggleButton(); msgBtn.Active = (bool)PropertyService.Get(showMessagesPropertyName, true); msgBtn.Image = new Gtk.Image(Gtk.Stock.DialogInfo, Gtk.IconSize.Menu); msgBtn.Image.Show(); // msgBtn.Toggled += new EventHandler (FilterChanged); msgBtn.TooltipText = GettextCatalog.GetString("Show Messages"); // UpdateMessagesNum(); toolbar.Add(msgBtn); // toolbar.Add (new SeparatorToolItem ()); // // logBtn = new ToggleButton (); // logBtn.Label = GettextCatalog.GetString ("Build Output"); // logBtn.Image = ImageService.GetImage ("md-message-log", Gtk.IconSize.Menu); // logBtn.Image.Show (); // logBtn.TooltipText = GettextCatalog.GetString ("Show build output"); // logBtn.Toggled += HandleLogBtnToggled; // toolbar.Add (logBtn); toolbar.ShowAll(); }
public override void Initialize(IPadWindow pad) { base.Initialize(pad); // Init editor outputEditor = new TextEditor(); outputEditor.Events = Gdk.EventMask.AllEventsMask; outputEditor.Name = "outputEditor"; outputEditor.TabsToSpaces = false; scrolledWindow = new Gtk.ScrolledWindow(); scrolledWindow.Child = outputEditor; scrolledWindow.ShadowType = Gtk.ShadowType.In; scrolledWindow.ShowAll(); outputEditor.ShowAll(); var o = outputEditor.Options; outputEditor.Document.MimeType = Formatting.DCodeFormatter.MimeType; o.ShowLineNumberMargin = false; o.ShowFoldMargin = false; o.ShowIconMargin = false; outputEditor.Document.ReadOnly = true; // Init toolbar var tb = pad.GetToolbar(Gtk.PositionType.Top); var ch = new Gtk.ToggleButton(); ch.Image = new Gtk.Image(Gtk.Stock.Refresh, Gtk.IconSize.Menu); ch.Active = EnableCaretTracking; ch.TooltipText = "Toggle automatic update after the caret has been moved."; ch.Toggled += (object s, EventArgs ea) => EnableCaretTracking = ch.Active; tb.Add(ch); abortButton = new Gtk.Button(); abortButton.Sensitive = false; abortButton.Image = new Gtk.Image(Gtk.Stock.Stop, Gtk.IconSize.Menu); abortButton.TooltipText = "Stops the evaluation."; abortButton.Clicked += (object sender, EventArgs e) => AbortExecution(); tb.Add(abortButton); tb.ShowAll(); Instance = this; }
public void TBESG_Select_ControlNotExist() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); Gtk.ToggleButton toAddX = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); Assert.AreEqual(3, grp.GetCountButton(), "There should be 3 buttons in the group"); bool result = grp.Select(toAddX); Assert.AreEqual(false, result, "Selection of control X should not work after first test"); Assert.AreEqual(false, toAddX.Active, "control 3 should not be active after first test"); }
public void TBESG_Select_SameIndex() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); Assert.AreEqual(3, grp.GetCountButton(), "There should be 3 buttons in the group"); bool result = grp.Select(1); Assert.AreEqual(true, result, "Selection of index 1 should work"); result = grp.Select(1); Assert.AreEqual(false, result, "Selection of index 1 should not work twice since it's already selected"); }
private bool sendclickevent = true; //used to get rid of click event when setting checked in code public GtkSharpToggle(Widget shellobject, string caption, bool isbutton) : base(shellobject) { if (isbutton) { togglebtn = new Gtk.ToggleButton(caption); } else //checkbox { togglebtn = new Gtk.CheckButton(caption); } GtkSharpDriver.InitWidget(togglebtn, shellobject); togglebtn.Show(); togglebtn.Clicked += delegate { if (sendclickevent) { ((Toggle)shellobject).OnChanged(); } }; }
public void TBESG_Unselect_Normal() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); Assert.AreEqual(3, grp.GetCountButton(), "There should be 3 buttons in the group"); bool result = grp.Select(toAdd2); Assert.AreEqual(true, result, "Selection of index 1 should work"); Assert.AreEqual(true, toAdd2.Active, "control 2 should be active"); result = grp.Unselect(); Assert.AreEqual(true, result, "Unselection should be sucessful"); Assert.AreEqual(false, toAdd2.Active, "control 2 should no longer be active"); }
/// <summary> /// Method to append a ToggleButton in the control array /// </summary> /// <param name="input">the ToggleButton to add</param> /// <returns>true if the button has been added</returns> public bool Append(Gtk.ToggleButton input) { if (FindInGroup(input) != -1) { // already exist this.Log().Warn("Cannot add the same control twice. Aborting"); return(false); } // add to the list this.Log().Debug("Adding a control to the control list"); Gtk.ToggleButton[] newArray = new Gtk.ToggleButton[controlList.Length + 1]; for (int i = 0; i < controlList.Length; i++) { newArray[i] = controlList[i]; } newArray[controlList.Length] = input; // replace the list with the new one controlList = newArray; return(true); }
public void TBESG_AddRemove_RemoveAll() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd4 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd5 = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); grp.Append(toAdd4); grp.Append(toAdd5); Assert.AreEqual(5, grp.GetCountButton(), "There should be 5 buttons in the group"); grp.Select(toAdd3); Assert.AreEqual(true, toAdd3.Active, "Control 3 should be selected."); grp.RemoveAll(); Assert.AreEqual(0, grp.GetCountButton(), "There should be no button in the group"); Assert.AreEqual(false, toAdd3.Active, "Control 3 should no longer be selected."); }
public void TBESG_Select_WithControl() { ToggleButtonExclusiveSelectionGroup grp = new ToggleButtonExclusiveSelectionGroup(); Gtk.ToggleButton toAdd = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd2 = new Gtk.ToggleButton(); Gtk.ToggleButton toAdd3 = new Gtk.ToggleButton(); grp.Append(toAdd); grp.Append(toAdd2); grp.Append(toAdd3); Assert.AreEqual(3, grp.GetCountButton(), "There should be 3 buttons in the group"); bool result = grp.Select(toAdd); Assert.AreEqual(true, result, "Selection of index 0 should work after first test"); Assert.AreEqual(true, toAdd.Active, "control 1 should be active after first test"); Assert.AreEqual(false, toAdd3.Active, "control 3 should not be active after first test"); result = grp.Select(toAdd3); Assert.AreEqual(true, result, "Selection of index 2 should work after second test"); Assert.AreEqual(false, toAdd.Active, "control 1 should not be active after second test"); Assert.AreEqual(true, toAdd3.Active, "control 3 should be active after second test"); }
public override void Initialize() { Widget = new Gtk.ToggleButton(); Widget.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.XBMControlAction = new Gtk.Action("XBMControlAction", Mono.Unix.Catalog.GetString("XBMControl"), null, null); this.XBMControlAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMControl"); w1.Add(this.XBMControlAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-disconnect"); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit"); w1.Add(this.QuitAction, null); this.XBMCAction = new Gtk.Action("XBMCAction", Mono.Unix.Catalog.GetString("XBMC"), null, null); this.XBMCAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMC"); w1.Add(this.XBMCAction, null); this.PlaylistAction = new Gtk.Action("PlaylistAction", Mono.Unix.Catalog.GetString("Playlist"), null, null); this.PlaylistAction.ShortLabel = Mono.Unix.Catalog.GetString("Playlist"); w1.Add(this.PlaylistAction, null); this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.HelpAction, null); this.UpdateMusicLibraryAction = new Gtk.Action("UpdateMusicLibraryAction", Mono.Unix.Catalog.GetString("Update music library"), null, null); this.UpdateMusicLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library"); w1.Add(this.UpdateMusicLibraryAction, null); this.UpdateVideoLibraryAction = new Gtk.Action("UpdateVideoLibraryAction", Mono.Unix.Catalog.GetString("Update video library"), null, null); this.UpdateVideoLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library"); w1.Add(this.UpdateVideoLibraryAction, null); this.UpdateLibraryAction = new Gtk.Action("UpdateLibraryAction", Mono.Unix.Catalog.GetString("Update Library"), null, null); this.UpdateLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Library"); w1.Add(this.UpdateLibraryAction, null); this.MusicAction = new Gtk.Action("MusicAction", Mono.Unix.Catalog.GetString("Music"), null, "gtk-harddisk"); this.MusicAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library"); w1.Add(this.MusicAction, null); this.VideoAction = new Gtk.Action("VideoAction", Mono.Unix.Catalog.GetString("Video"), null, "gtk-harddisk"); this.VideoAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library"); w1.Add(this.VideoAction, null); this.RestartAction = new Gtk.Action("RestartAction", Mono.Unix.Catalog.GetString("Restart"), null, "gtk-refresh"); this.RestartAction.ShortLabel = Mono.Unix.Catalog.GetString("Restart"); w1.Add(this.RestartAction, null); this.RebootAction = new Gtk.Action("RebootAction", Mono.Unix.Catalog.GetString("Reboot"), null, "gtk-refresh"); this.RebootAction.ShortLabel = Mono.Unix.Catalog.GetString("Reboot"); w1.Add(this.RebootAction, null); this.ShutdownAction = new Gtk.Action("ShutdownAction", Mono.Unix.Catalog.GetString("Shutdown"), null, "gtk-quit"); this.ShutdownAction.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown"); w1.Add(this.ShutdownAction, null); this.ConfigurationAction = new Gtk.Action("ConfigurationAction", Mono.Unix.Catalog.GetString("Configuration"), null, "gtk-edit"); this.ConfigurationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences"); w1.Add(this.ConfigurationAction, null); this.clearAction = new Gtk.Action("clearAction", null, Mono.Unix.Catalog.GetString("Clear playlist"), "gtk-clear"); w1.Add(this.clearAction, null); this.openAction = new Gtk.Action("openAction", null, null, "gtk-open"); w1.Add(this.openAction, null); this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save"); w1.Add(this.saveAction, null); this.saveAsAction = new Gtk.Action("saveAsAction", null, null, "gtk-save-as"); w1.Add(this.saveAsAction, null); this.aRefreshPlaylist = new Gtk.Action("aRefreshPlaylist", null, null, "gtk-refresh"); w1.Add(this.aRefreshPlaylist, null); this.aRemoveSelected = new Gtk.Action("aRemoveSelected", null, Mono.Unix.Catalog.GetString("Remove selected item"), "gtk-remove"); w1.Add(this.aRemoveSelected, null); this.aPlaySelected = new Gtk.Action("aPlaySelected", null, Mono.Unix.Catalog.GetString("Play selected item"), "gtk-media-play"); w1.Add(this.aPlaySelected, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.WidthRequest = 900; this.HeightRequest = 600; this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("XBMControl Evo"); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.Resizable = false; this.AllowGrow = false; this.DefaultWidth = 800; this.DefaultHeight = 600; // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XBMControlAction' action='XBMControlAction'><menuitem name='ConfigurationAction' action='ConfigurationAction'/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='XBMCAction' action='XBMCAction'><menu name='UpdateLibraryAction' action='UpdateLibraryAction'><menuitem name='MusicAction' action='MusicAction'/><menuitem name='VideoAction' action='VideoAction'/></menu><menuitem name='RestartAction' action='RestartAction'/><menuitem name='RebootAction' action='RebootAction'/><menuitem name='ShutdownAction' action='ShutdownAction'/></menu><menu name='PlaylistAction' action='PlaylistAction'/><menu name='HelpAction' action='HelpAction'/></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 300; // Container child hpaned1.Gtk.Paned+PanedChild this.nbBrowser = new Gtk.Notebook(); this.nbBrowser.WidthRequest = 300; this.nbBrowser.CanFocus = true; this.nbBrowser.Name = "nbBrowser"; this.nbBrowser.CurrentPage = 0; // Container child nbBrowser.Gtk.Notebook+NotebookChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.cbShareType = Gtk.ComboBox.NewText(); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Music")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Video")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Pictures")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Files")); this.cbShareType.Name = "cbShareType"; this.cbShareType.Active = 0; this.vbox3.Add(this.cbShareType); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.cbShareType])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.tvShareBrowser = new Gtk.TreeView(); this.tvShareBrowser.CanFocus = true; this.tvShareBrowser.Name = "tvShareBrowser"; this.GtkScrolledWindow.Add(this.tvShareBrowser); this.vbox3.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow])); w5.Position = 1; this.nbBrowser.Add(this.vbox3); // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Shares"); this.nbBrowser.SetTabLabel(this.vbox3, this.label2); this.label2.ShowAll(); this.hpaned1.Add(this.nbBrowser); Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbBrowser])); w7.Resize = false; w7.Shrink = false; // Container child hpaned1.Gtk.Paned+PanedChild this.nbDataContainer = new Gtk.Notebook(); this.nbDataContainer.CanFocus = true; this.nbDataContainer.Name = "nbDataContainer"; this.nbDataContainer.CurrentPage = 0; this.nbDataContainer.ShowBorder = false; this.nbDataContainer.Scrollable = true; // Container child nbDataContainer.Gtk.Notebook+NotebookChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild Gtk.Viewport w8 = new Gtk.Viewport(); w8.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.fixedNowPlaying = new Gtk.Fixed(); this.fixedNowPlaying.Name = "fixedNowPlaying"; this.fixedNowPlaying.HasWindow = false; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.imgNowPlaying = new Gtk.Image(); this.imgNowPlaying.WidthRequest = 300; this.imgNowPlaying.HeightRequest = 300; this.imgNowPlaying.Name = "imgNowPlaying"; this.fixedNowPlaying.Add(this.imgNowPlaying); Gtk.Fixed.FixedChild w9 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.imgNowPlaying])); w9.X = 20; w9.Y = 145; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lArtist = new Gtk.Label(); this.lArtist.WidthRequest = 555; this.lArtist.Name = "lArtist"; this.fixedNowPlaying.Add(this.lArtist); Gtk.Fixed.FixedChild w10 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lArtist])); w10.X = 10; w10.Y = 10; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lSong = new Gtk.Label(); this.lSong.WidthRequest = 555; this.lSong.Name = "lSong"; this.fixedNowPlaying.Add(this.lSong); Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lSong])); w11.X = 10; w11.Y = 34; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lAlbum = new Gtk.Label(); this.lAlbum.WidthRequest = 555; this.lAlbum.Name = "lAlbum"; this.fixedNowPlaying.Add(this.lAlbum); Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lAlbum])); w12.X = 10; w12.Y = 70; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lGenre = new Gtk.Label(); this.lGenre.WidthRequest = 155; this.lGenre.Name = "lGenre"; this.fixedNowPlaying.Add(this.lGenre); Gtk.Fixed.FixedChild w13 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lGenre])); w13.X = 410; w13.Y = 98; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lProgress = new Gtk.Label(); this.lProgress.WidthRequest = 150; this.lProgress.Name = "lProgress"; this.fixedNowPlaying.Add(this.lProgress); Gtk.Fixed.FixedChild w14 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lProgress])); w14.X = 353; w14.Y = 430; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lDuration = new Gtk.Label(); this.lDuration.WidthRequest = 60; this.lDuration.Name = "lDuration"; this.fixedNowPlaying.Add(this.lDuration); Gtk.Fixed.FixedChild w15 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lDuration])); w15.X = 502; w15.Y = 430; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lYear = new Gtk.Label(); this.lYear.WidthRequest = 155; this.lYear.Name = "lYear"; this.fixedNowPlaying.Add(this.lYear); Gtk.Fixed.FixedChild w16 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lYear])); w16.X = 410; w16.Y = 84; w8.Add(this.fixedNowPlaying); this.GtkScrolledWindow1.Add(w8); this.nbDataContainer.Add(this.GtkScrolledWindow1); // Notebook tab this.labelMediaInfo = new Gtk.Label(); this.labelMediaInfo.Name = "labelMediaInfo"; this.labelMediaInfo.LabelProp = Mono.Unix.Catalog.GetString("Playing Now"); this.nbDataContainer.SetTabLabel(this.GtkScrolledWindow1, this.labelMediaInfo); this.labelMediaInfo.ShowAll(); // Container child nbDataContainer.Gtk.Notebook+NotebookChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.cbPlaylistType = Gtk.ComboBox.NewText(); this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Music")); this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Video")); this.cbPlaylistType.Name = "cbPlaylistType"; this.cbPlaylistType.Active = 0; this.vbox2.Add(this.cbPlaylistType); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox2[this.cbPlaylistType])); w20.Position = 0; w20.Expand = false; w20.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.tvPlaylist = new Gtk.TreeView(); this.tvPlaylist.CanFocus = true; this.tvPlaylist.Name = "tvPlaylist"; this.GtkScrolledWindow2.Add(this.tvPlaylist); this.vbox2.Add(this.GtkScrolledWindow2); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow2])); w22.Position = 1; // Container child vbox2.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='clearAction' action='clearAction'/><toolitem name='aRefreshPlaylist' action='aRefreshPlaylist'/><toolitem name='aRemoveSelected' action='aRemoveSelected'/><toolitem name='aPlaySelected' action='aPlaySelected'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.TooltipMarkup = "Refresh playlist"; this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.toolbar1.IconSize = ((Gtk.IconSize)(3)); this.vbox2.Add(this.toolbar1); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1])); w23.Position = 2; w23.Expand = false; w23.Fill = false; this.nbDataContainer.Add(this.vbox2); Gtk.Notebook.NotebookChild w24 = ((Gtk.Notebook.NotebookChild)(this.nbDataContainer[this.vbox2])); w24.Position = 1; // Notebook tab this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Playlist"); this.nbDataContainer.SetTabLabel(this.vbox2, this.label3); this.label3.ShowAll(); // Notebook tab Gtk.Label w25 = new Gtk.Label(); w25.Visible = true; this.nbDataContainer.Add(w25); this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Configuration"); this.nbDataContainer.SetTabLabel(w25, this.label4); this.label4.ShowAll(); this.hpaned1.Add(this.nbDataContainer); Gtk.Paned.PanedChild w26 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbDataContainer])); w26.Resize = false; w26.Shrink = false; this.vbox1.Add(this.hpaned1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1])); w27.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.fixed1 = new Gtk.Fixed(); this.fixed1.HeightRequest = 60; this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; // Container child fixed1.Gtk.Fixed+FixedChild this.hsVolume = new Gtk.HScale(null); this.hsVolume.TooltipMarkup = "Volume"; this.hsVolume.WidthRequest = 120; this.hsVolume.CanFocus = true; this.hsVolume.Name = "hsVolume"; this.hsVolume.Adjustment.Upper = 100; this.hsVolume.Adjustment.PageIncrement = 10; this.hsVolume.Adjustment.StepIncrement = 1; this.hsVolume.Adjustment.Value = 51.8987341772152; this.hsVolume.DrawValue = false; this.hsVolume.Digits = 0; this.hsVolume.ValuePos = ((Gtk.PositionType)(2)); this.fixed1.Add(this.hsVolume); Gtk.Fixed.FixedChild w28 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsVolume])); w28.X = 730; w28.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.hsProgress = new Gtk.HScale(null); this.hsProgress.TooltipMarkup = "Progress"; this.hsProgress.WidthRequest = 420; this.hsProgress.CanFocus = true; this.hsProgress.Name = "hsProgress"; this.hsProgress.Adjustment.Upper = 100; this.hsProgress.Adjustment.PageIncrement = 10; this.hsProgress.Adjustment.StepIncrement = 1; this.hsProgress.DrawValue = false; this.hsProgress.Digits = 0; this.hsProgress.ValuePos = ((Gtk.PositionType)(2)); this.fixed1.Add(this.hsProgress); Gtk.Fixed.FixedChild w29 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsProgress])); w29.X = 300; w29.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbMute = new Gtk.ToggleButton(); this.tbMute.TooltipMarkup = "Toggle Mute"; this.tbMute.WidthRequest = 32; this.tbMute.HeightRequest = 32; this.tbMute.CanFocus = true; this.tbMute.Name = "tbMute"; this.tbMute.UseUnderline = true; // Container child tbMute.Gtk.Container+ContainerChild Gtk.Alignment w30 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w31 = new Gtk.HBox(); w31.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w32 = new Gtk.Image(); w32.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_volume-mute", Gtk.IconSize.Button, 20); w31.Add(w32); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w34 = new Gtk.Label(); w31.Add(w34); w30.Add(w31); this.tbMute.Add(w30); this.fixed1.Add(this.tbMute); Gtk.Fixed.FixedChild w38 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbMute])); w38.X = 850; w38.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.bPrevious = new Gtk.Button(); this.bPrevious.TooltipMarkup = "Previous"; this.bPrevious.WidthRequest = 35; this.bPrevious.HeightRequest = 35; this.bPrevious.CanFocus = true; this.bPrevious.Name = "bPrevious"; this.bPrevious.UseUnderline = true; // Container child bPrevious.Gtk.Container+ContainerChild Gtk.Alignment w39 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w40 = new Gtk.HBox(); w40.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w41 = new Gtk.Image(); w41.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-previous", Gtk.IconSize.LargeToolbar, 24); w40.Add(w41); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w43 = new Gtk.Label(); w40.Add(w43); w39.Add(w40); this.bPrevious.Add(w39); this.fixed1.Add(this.bPrevious); Gtk.Fixed.FixedChild w47 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPrevious])); w47.X = 14; w47.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbPlay = new Gtk.ToggleButton(); this.tbPlay.TooltipMarkup = "Play"; this.tbPlay.WidthRequest = 35; this.tbPlay.HeightRequest = 35; this.tbPlay.CanFocus = true; this.tbPlay.Name = "tbPlay"; this.tbPlay.UseUnderline = true; // Container child tbPlay.Gtk.Container+ContainerChild Gtk.Alignment w48 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w49 = new Gtk.HBox(); w49.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w50 = new Gtk.Image(); w50.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-play", Gtk.IconSize.LargeToolbar, 24); w49.Add(w50); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w52 = new Gtk.Label(); w49.Add(w52); w48.Add(w49); this.tbPlay.Add(w48); this.fixed1.Add(this.tbPlay); Gtk.Fixed.FixedChild w56 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbPlay])); w56.X = 46; w56.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbStop = new Gtk.ToggleButton(); this.tbStop.TooltipMarkup = "Stop"; this.tbStop.WidthRequest = 35; this.tbStop.HeightRequest = 35; this.tbStop.CanFocus = true; this.tbStop.Name = "tbStop"; this.tbStop.UseUnderline = true; // Container child tbStop.Gtk.Container+ContainerChild Gtk.Alignment w57 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w58 = new Gtk.HBox(); w58.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w59 = new Gtk.Image(); w59.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-stop", Gtk.IconSize.LargeToolbar, 24); w58.Add(w59); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w61 = new Gtk.Label(); w58.Add(w61); w57.Add(w58); this.tbStop.Add(w57); this.fixed1.Add(this.tbStop); Gtk.Fixed.FixedChild w65 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbStop])); w65.X = 78; w65.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bNext = new Gtk.Button(); this.bNext.TooltipMarkup = "Next"; this.bNext.WidthRequest = 35; this.bNext.HeightRequest = 35; this.bNext.CanFocus = true; this.bNext.Name = "bNext"; this.bNext.UseUnderline = true; // Container child bNext.Gtk.Container+ContainerChild Gtk.Alignment w66 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w67 = new Gtk.HBox(); w67.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w68 = new Gtk.Image(); w68.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-next", Gtk.IconSize.LargeToolbar, 24); w67.Add(w68); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w70 = new Gtk.Label(); w67.Add(w70); w66.Add(w67); this.bNext.Add(w66); this.fixed1.Add(this.bNext); Gtk.Fixed.FixedChild w74 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bNext])); w74.X = 110; w74.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bRepeat = new Gtk.Button(); this.bRepeat.TooltipMarkup = "Toggle Repeat Modes"; this.bRepeat.WidthRequest = 28; this.bRepeat.HeightRequest = 28; this.bRepeat.CanFocus = true; this.bRepeat.Name = "bRepeat"; this.bRepeat.UseUnderline = true; // Container child bRepeat.Gtk.Container+ContainerChild Gtk.Alignment w75 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w76 = new Gtk.HBox(); w76.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w77 = new Gtk.Image(); w77.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-redo", Gtk.IconSize.Menu, 16); w76.Add(w77); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w79 = new Gtk.Label(); w76.Add(w79); w75.Add(w76); this.bRepeat.Add(w75); this.fixed1.Add(this.bRepeat); Gtk.Fixed.FixedChild w83 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bRepeat])); w83.X = 160; w83.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bShuffle = new Gtk.Button(); this.bShuffle.TooltipMarkup = "Toggle Shuffel Mode"; this.bShuffle.WidthRequest = 28; this.bShuffle.HeightRequest = 28; this.bShuffle.CanFocus = true; this.bShuffle.Name = "bShuffle"; this.bShuffle.UseUnderline = true; // Container child bShuffle.Gtk.Container+ContainerChild Gtk.Alignment w84 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w85 = new Gtk.HBox(); w85.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w86 = new Gtk.Image(); w86.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_chart-toggle-legend", Gtk.IconSize.Menu, 16); w85.Add(w86); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w88 = new Gtk.Label(); w85.Add(w88); w84.Add(w85); this.bShuffle.Add(w84); this.fixed1.Add(this.bShuffle); Gtk.Fixed.FixedChild w92 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bShuffle])); w92.X = 185; w92.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bPartyMode = new Gtk.Button(); this.bPartyMode.TooltipMarkup = "Toggle Party Mode"; this.bPartyMode.WidthRequest = 28; this.bPartyMode.HeightRequest = 28; this.bPartyMode.CanFocus = true; this.bPartyMode.Name = "bPartyMode"; this.bPartyMode.UseUnderline = true; // Container child bPartyMode.Gtk.Container+ContainerChild Gtk.Alignment w93 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w94 = new Gtk.HBox(); w94.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w95 = new Gtk.Image(); w95.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_filters", Gtk.IconSize.Menu, 16); w94.Add(w95); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w97 = new Gtk.Label(); w94.Add(w97); w93.Add(w94); this.bPartyMode.Add(w93); this.fixed1.Add(this.bPartyMode); Gtk.Fixed.FixedChild w101 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPartyMode])); w101.X = 210; w101.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.imgLoading = new Gtk.Image(); this.imgLoading.TooltipMarkup = "Loading data..."; this.imgLoading.Name = "imgLoading"; this.imgLoading.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-jump-to", Gtk.IconSize.LargeToolbar, 24); this.fixed1.Add(this.imgLoading); Gtk.Fixed.FixedChild w102 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.imgLoading])); w102.X = 255; w102.Y = 13; this.vbox1.Add(this.fixed1); Gtk.Box.BoxChild w103 = ((Gtk.Box.BoxChild)(this.vbox1[this.fixed1])); w103.Position = 2; w103.Expand = false; w103.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.QuitAction.Activated += new System.EventHandler(this.OnExit); this.MusicAction.Activated += new System.EventHandler(this.click_UpdateMusicLibrary); this.VideoAction.Activated += new System.EventHandler(this.click_UpdateVideoLibrary); this.clearAction.Activated += new System.EventHandler(this.aClearPlaylist_click); this.aRefreshPlaylist.Activated += new System.EventHandler(this.aRefreshPlaylist_activated); this.aRemoveSelected.Activated += new System.EventHandler(this.aRemoveSelected_activated); this.aPlaySelected.Activated += new System.EventHandler(this.aPlaySelected_activated); this.cbShareType.Changed += new System.EventHandler(this.cbShareBrowser_changed); this.tvShareBrowser.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvShareBrowser_release); this.cbPlaylistType.Changed += new System.EventHandler(this.cbPlaylistType_changed); this.tvPlaylist.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvPlaylist_buttonRelease); this.hsVolume.ValueChanged += new System.EventHandler(this.hsVolume_valueChanged); this.hsProgress.ChangeValue += new Gtk.ChangeValueHandler(this.hsProgress_changeValue); this.tbMute.Released += new System.EventHandler(this.tbMute_released); this.bPrevious.Released += new System.EventHandler(this.bPrevious_released); this.tbPlay.Released += new System.EventHandler(this.tbPlay_released); this.tbStop.Released += new System.EventHandler(this.tbStop_released); this.bNext.Released += new System.EventHandler(this.bNext_released); this.bRepeat.Activated += new System.EventHandler(this.bRepeat_click); this.bShuffle.Released += new System.EventHandler(this.bShuffle_release); this.bPartyMode.Released += new System.EventHandler(this.bPartyMode_released); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Nemo 0.2.4"); this.Icon = Gdk.Pixbuf.LoadFromResource("blue_guy.png"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.main_box = new Gtk.HBox(); this.main_box.Name = "main_box"; this.main_box.Spacing = 6; this.main_box.BorderWidth = ((uint)(12)); // Container child main_box.Gtk.Box+BoxChild this.left_pane = new Gtk.VBox(); this.left_pane.Name = "left_pane"; this.left_pane.Spacing = 6; // Container child left_pane.Gtk.Box+BoxChild this.all_files_button = new Gtk.Button(); this.all_files_button.CanFocus = true; this.all_files_button.Name = "all_files_button"; this.all_files_button.UseUnderline = true; this.all_files_button.Relief = ((Gtk.ReliefStyle)(2)); this.all_files_button.Xalign = 0F; this.all_files_button.Label = Mono.Unix.Catalog.GetString(" All Files"); this.left_pane.Add(this.all_files_button); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.left_pane[this.all_files_button])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child left_pane.Gtk.Box+BoxChild this.starred_button = new Gtk.ToggleButton(); this.starred_button.CanFocus = true; this.starred_button.Name = "starred_button"; this.starred_button.UseUnderline = true; this.starred_button.Relief = ((Gtk.ReliefStyle)(2)); this.starred_button.Xalign = 0F; // Container child starred_button.Gtk.Container+ContainerChild Gtk.Alignment w2 = new Gtk.Alignment(0F, 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 = Gdk.Pixbuf.LoadFromResource("stock_about.png"); w3.Add(w4); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w6 = new Gtk.Label(); w6.LabelProp = Mono.Unix.Catalog.GetString(" Starred"); w6.UseUnderline = true; w3.Add(w6); w2.Add(w3); this.starred_button.Add(w2); this.left_pane.Add(this.starred_button); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.left_pane[this.starred_button])); w10.Position = 1; w10.Expand = false; w10.Fill = false; // Container child left_pane.Gtk.Box+BoxChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; this.left_pane.Add(this.hseparator1); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.left_pane[this.hseparator1])); w11.Position = 2; w11.Expand = false; w11.Fill = false; // Container child left_pane.Gtk.Box+BoxChild this.type_labels = new Gtk.VBox(); this.type_labels.Name = "type_labels"; this.type_labels.Spacing = 6; this.left_pane.Add(this.type_labels); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.left_pane[this.type_labels])); w12.Position = 3; w12.Expand = false; // Container child left_pane.Gtk.Box+BoxChild this.hseparator2 = new Gtk.HSeparator(); this.hseparator2.Name = "hseparator2"; this.left_pane.Add(this.hseparator2); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.left_pane[this.hseparator2])); w13.Position = 4; w13.Expand = false; w13.Fill = false; // Container child left_pane.Gtk.Box+BoxChild this.categories_event_box = new Gtk.EventBox(); this.categories_event_box.Name = "categories_event_box"; this.left_pane.Add(this.categories_event_box); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.left_pane[this.categories_event_box])); w14.Position = 5; // Container child left_pane.Gtk.Box+BoxChild this.hseparator3 = new Gtk.HSeparator(); this.hseparator3.Name = "hseparator3"; this.left_pane.Add(this.hseparator3); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.left_pane[this.hseparator3])); w15.Position = 6; w15.Expand = false; w15.Fill = false; // Container child left_pane.Gtk.Box+BoxChild this.search = new Gtk.VBox(); this.search.Name = "search"; this.search.Spacing = 6; // Container child search.Gtk.Box+BoxChild this.search_input = new Gtk.Entry(); this.search_input.CanFocus = true; this.search_input.Name = "search_input"; this.search_input.IsEditable = true; this.search_input.InvisibleChar = ' '; this.search.Add(this.search_input); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.search[this.search_input])); w16.Position = 0; w16.Expand = false; w16.Fill = false; // Container child search.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.fixed2 = new Gtk.Fixed(); this.fixed2.Name = "fixed2"; this.fixed2.HasWindow = false; this.hbox5.Add(this.fixed2); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox5[this.fixed2])); w17.Position = 0; // Container child hbox5.Gtk.Box+BoxChild this.search_button = new Gtk.Button(); this.search_button.CanFocus = true; this.search_button.Name = "search_button"; this.search_button.UseUnderline = true; this.search_button.Relief = ((Gtk.ReliefStyle)(2)); this.search_button.Label = Mono.Unix.Catalog.GetString("Search"); this.hbox5.Add(this.search_button); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox5[this.search_button])); w18.Position = 1; w18.Expand = false; w18.Fill = false; this.search.Add(this.hbox5); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.search[this.hbox5])); w19.Position = 1; w19.Expand = false; w19.Fill = false; this.left_pane.Add(this.search); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.left_pane[this.search])); w20.Position = 7; w20.Expand = false; w20.Fill = false; this.main_box.Add(this.left_pane); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.main_box[this.left_pane])); w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child main_box.Gtk.Box+BoxChild this.right_pane = new Gtk.VBox(); this.right_pane.Name = "right_pane"; this.right_pane.Spacing = 1; // Container child right_pane.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.prev_button = new Gtk.Button(); this.prev_button.CanFocus = true; this.prev_button.Name = "prev_button"; this.prev_button.UseUnderline = true; // Container child prev_button.Gtk.Container+ContainerChild Gtk.Alignment w22 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment1.Gtk.Container+ContainerChild Gtk.HBox w23 = new Gtk.HBox(); w23.Spacing = 2; // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Image w24 = new Gtk.Image(); w24.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-back", Gtk.IconSize.Menu, 16); w23.Add(w24); // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Label w26 = new Gtk.Label(); w26.LabelProp = ""; w23.Add(w26); w22.Add(w23); this.prev_button.Add(w22); this.hbox3.Add(this.prev_button); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox3[this.prev_button])); w30.Position = 0; w30.Expand = false; w30.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.next_button = new Gtk.Button(); this.next_button.CanFocus = true; this.next_button.Name = "next_button"; this.next_button.UseUnderline = true; // Container child next_button.Gtk.Container+ContainerChild Gtk.Alignment w31 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment2.Gtk.Container+ContainerChild Gtk.HBox w32 = new Gtk.HBox(); w32.Spacing = 2; // Container child GtkHBox2.Gtk.Container+ContainerChild Gtk.Image w33 = new Gtk.Image(); w33.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-forward", Gtk.IconSize.Menu, 16); w32.Add(w33); // Container child GtkHBox2.Gtk.Container+ContainerChild Gtk.Label w35 = new Gtk.Label(); w35.LabelProp = ""; w32.Add(w35); w31.Add(w32); this.next_button.Add(w31); this.hbox3.Add(this.next_button); Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.hbox3[this.next_button])); w39.Position = 1; w39.Expand = false; w39.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.today_button = new Gtk.Button(); this.today_button.CanFocus = true; this.today_button.Name = "today_button"; this.today_button.UseUnderline = true; this.today_button.Label = Mono.Unix.Catalog.GetString("Today"); this.hbox3.Add(this.today_button); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.hbox3[this.today_button])); w40.Position = 2; w40.Expand = false; w40.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.current_date = new Gtk.Label(); this.current_date.Name = "current_date"; this.current_date.LabelProp = ""; this.hbox3.Add(this.current_date); Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.hbox3[this.current_date])); w41.Position = 3; w41.Expand = false; w41.Fill = false; this.hbox2.Add(this.hbox3); Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.hbox2[this.hbox3])); w42.Position = 0; w42.Expand = false; w42.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.fixed3 = new Gtk.Fixed(); this.fixed3.Name = "fixed3"; this.fixed3.HasWindow = false; this.hbox2.Add(this.fixed3); Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(this.hbox2[this.fixed3])); w43.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.day_button = new Gtk.ToggleButton(); this.day_button.CanFocus = true; this.day_button.Name = "day_button"; this.day_button.UseUnderline = true; this.day_button.Label = Mono.Unix.Catalog.GetString("Day"); this.hbox4.Add(this.day_button); Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(this.hbox4[this.day_button])); w44.Position = 0; w44.Expand = false; w44.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.week_button = new Gtk.ToggleButton(); this.week_button.CanFocus = true; this.week_button.Name = "week_button"; this.week_button.UseUnderline = true; this.week_button.Label = Mono.Unix.Catalog.GetString("Week"); this.hbox4.Add(this.week_button); Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.hbox4[this.week_button])); w45.Position = 1; w45.Expand = false; w45.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.month_button = new Gtk.ToggleButton(); this.month_button.CanFocus = true; this.month_button.Name = "month_button"; this.month_button.UseUnderline = true; this.month_button.Label = Mono.Unix.Catalog.GetString("Month"); this.hbox4.Add(this.month_button); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.hbox4[this.month_button])); w46.Position = 2; w46.Expand = false; w46.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.year_button = new Gtk.ToggleButton(); this.year_button.CanFocus = true; this.year_button.Name = "year_button"; this.year_button.UseUnderline = true; this.year_button.Label = Mono.Unix.Catalog.GetString("Year"); this.hbox4.Add(this.year_button); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.hbox4[this.year_button])); w47.Position = 3; w47.Expand = false; w47.Fill = false; this.hbox2.Add(this.hbox4); Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.hbox2[this.hbox4])); w48.Position = 2; w48.Expand = false; w48.Fill = false; this.right_pane.Add(this.hbox2); Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.right_pane[this.hbox2])); w49.Position = 0; w49.Expand = false; w49.Fill = false; // Container child right_pane.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(1)); this.frame1.LabelYalign = 0F; // Container child frame1.Gtk.Container+ContainerChild this.calendar_event_box = new Gtk.EventBox(); this.calendar_event_box.Name = "calendar_event_box"; this.frame1.Add(this.calendar_event_box); this.right_pane.Add(this.frame1); Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(this.right_pane[this.frame1])); w51.Position = 1; this.main_box.Add(this.right_pane); Gtk.Box.BoxChild w52 = ((Gtk.Box.BoxChild)(this.main_box[this.right_pane])); w52.Position = 1; this.Add(this.main_box); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 701; this.DefaultHeight = 512; this.Show(); this.FocusInEvent += new Gtk.FocusInEventHandler(this.GotFocus); this.FocusOutEvent += new Gtk.FocusOutEventHandler(this.FocusLeave); this.all_files_button.Pressed += new System.EventHandler(this.OnAllFilesPressed); this.starred_button.Pressed += new System.EventHandler(this.OnStarredPressed); this.search_input.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.on_key_release); this.search_button.Clicked += new System.EventHandler(this.on_search_button_click); this.prev_button.Clicked += new System.EventHandler(this.OnPrevious); this.next_button.Clicked += new System.EventHandler(this.OnNext); this.today_button.Pressed += new System.EventHandler(this.OnTodayPressed); this.day_button.Pressed += new System.EventHandler(this.OnDayClick); this.week_button.Pressed += new System.EventHandler(this.OnWeekClick); this.month_button.Pressed += new System.EventHandler(this.OnMonthClick); this.year_button.Pressed += new System.EventHandler(this.OnYearClick); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Jeton.MainWindow this.Name = "Jeton.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Labor Saftschubser"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child Jeton.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild this.hbuttonbox1 = new Gtk.HButtonBox(); this.vbox1.Add(this.hbuttonbox1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox1])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Homogeneous = true; this.hbox1.Spacing = 6; this.hbox1.BorderWidth = ((uint)(9)); // Container child hbox1.Gtk.Box+BoxChild this.kaufenBtn = new Gtk.ToggleButton(); this.kaufenBtn.CanFocus = true; this.kaufenBtn.Name = "kaufenBtn"; this.kaufenBtn.UseUnderline = true; this.kaufenBtn.Active = true; // Container child kaufenBtn.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-home", Gtk.IconSize.Button, 20); w3.Add(w4); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w6 = new Gtk.Label(); w6.LabelProp = Mono.Unix.Catalog.GetString("Kaufen"); w6.UseUnderline = true; w3.Add(w6); w2.Add(w3); this.kaufenBtn.Add(w2); this.hbox1.Add(this.kaufenBtn); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox1[this.kaufenBtn])); w10.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.kasseBtn = new Gtk.ToggleButton(); this.kasseBtn.CanFocus = true; this.kasseBtn.Name = "kasseBtn"; this.kasseBtn.UseUnderline = true; // Container child kasseBtn.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, "stock_book_green", Gtk.IconSize.Button, 20); w12.Add(w13); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w15 = new Gtk.Label(); w15.LabelProp = Mono.Unix.Catalog.GetString("Kasse"); w15.UseUnderline = true; w12.Add(w15); w11.Add(w12); this.kasseBtn.Add(w11); this.hbox1.Add(this.kasseBtn); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox1[this.kasseBtn])); w19.Position = 1; // Container child hbox1.Gtk.Box+BoxChild this.bestandBtn = new Gtk.ToggleButton(); this.bestandBtn.CanFocus = true; this.bestandBtn.Name = "bestandBtn"; this.bestandBtn.UseUnderline = true; // Container child bestandBtn.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, "stock_data-sources-new", Gtk.IconSize.Button, 20); w21.Add(w22); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w24 = new Gtk.Label(); w24.LabelProp = Mono.Unix.Catalog.GetString("Bestand"); w24.UseUnderline = true; w21.Add(w24); w20.Add(w21); this.bestandBtn.Add(w20); this.hbox1.Add(this.bestandBtn); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.hbox1[this.bestandBtn])); w28.Position = 2; // Container child hbox1.Gtk.Box+BoxChild this.labCtrlBtn = new Gtk.ToggleButton(); this.labCtrlBtn.CanFocus = true; this.labCtrlBtn.Name = "labCtrlBtn"; this.labCtrlBtn.UseUnderline = true; // Container child labCtrlBtn.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, "stock_contrast", Gtk.IconSize.Button, 20); w30.Add(w31); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w33 = new Gtk.Label(); w33.LabelProp = Mono.Unix.Catalog.GetString("LabCtrl"); w33.UseUnderline = true; w30.Add(w33); w29.Add(w30); this.labCtrlBtn.Add(w29); this.hbox1.Add(this.labCtrlBtn); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.hbox1[this.labCtrlBtn])); w37.Position = 3; // Container child hbox1.Gtk.Box+BoxChild this.adminBtn = new Gtk.ToggleButton(); this.adminBtn.CanFocus = true; this.adminBtn.Name = "adminBtn"; this.adminBtn.UseUnderline = true; // Container child adminBtn.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-dialog-authentication", Gtk.IconSize.Button, 20); w39.Add(w40); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w42 = new Gtk.Label(); w42.LabelProp = Mono.Unix.Catalog.GetString("Admin"); w42.UseUnderline = true; w39.Add(w42); w38.Add(w39); this.adminBtn.Add(w38); this.hbox1.Add(this.adminBtn); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.hbox1[this.adminBtn])); w46.Position = 4; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w47.Position = 1; w47.Expand = false; w47.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.headingLabel = new Gtk.Label(); this.headingLabel.Name = "headingLabel"; this.headingLabel.Xpad = 10; this.headingLabel.Xalign = 1F; this.headingLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>Benutzer</b>"); this.headingLabel.UseMarkup = true; this.headingLabel.SingleLineMode = true; this.vbox1.Add(this.headingLabel); Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.vbox1[this.headingLabel])); w48.Position = 2; w48.Expand = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 715; this.DefaultHeight = 542; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.kaufenBtn.Clicked += new System.EventHandler(this.OnModeBtnClicked); this.kasseBtn.Clicked += new System.EventHandler(this.OnModeBtnClicked); this.bestandBtn.Clicked += new System.EventHandler(this.OnModeBtnClicked); this.labCtrlBtn.Clicked += new System.EventHandler(this.OnModeBtnClicked); this.adminBtn.Clicked += new System.EventHandler(this.OnModeBtnClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.XBMControlAction = new Gtk.Action("XBMControlAction", Mono.Unix.Catalog.GetString("XBMControl"), null, null); this.XBMControlAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMControl"); w1.Add(this.XBMControlAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-disconnect"); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit"); w1.Add(this.QuitAction, null); this.XBMCAction = new Gtk.Action("XBMCAction", Mono.Unix.Catalog.GetString("XBMC"), null, null); this.XBMCAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMC"); w1.Add(this.XBMCAction, null); this.PlaylistAction = new Gtk.Action("PlaylistAction", Mono.Unix.Catalog.GetString("Playlist"), null, null); this.PlaylistAction.ShortLabel = Mono.Unix.Catalog.GetString("Playlist"); w1.Add(this.PlaylistAction, null); this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.HelpAction, null); this.UpdateMusicLibraryAction = new Gtk.Action("UpdateMusicLibraryAction", Mono.Unix.Catalog.GetString("Update music library"), null, null); this.UpdateMusicLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library"); w1.Add(this.UpdateMusicLibraryAction, null); this.UpdateVideoLibraryAction = new Gtk.Action("UpdateVideoLibraryAction", Mono.Unix.Catalog.GetString("Update video library"), null, null); this.UpdateVideoLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library"); w1.Add(this.UpdateVideoLibraryAction, null); this.UpdateLibraryAction = new Gtk.Action("UpdateLibraryAction", Mono.Unix.Catalog.GetString("Update Library"), null, null); this.UpdateLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Library"); w1.Add(this.UpdateLibraryAction, null); this.MusicAction = new Gtk.Action("MusicAction", Mono.Unix.Catalog.GetString("Music"), null, "gtk-harddisk"); this.MusicAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library"); w1.Add(this.MusicAction, null); this.VideoAction = new Gtk.Action("VideoAction", Mono.Unix.Catalog.GetString("Video"), null, "gtk-harddisk"); this.VideoAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library"); w1.Add(this.VideoAction, null); this.RestartAction = new Gtk.Action("RestartAction", Mono.Unix.Catalog.GetString("Restart"), null, "gtk-refresh"); this.RestartAction.ShortLabel = Mono.Unix.Catalog.GetString("Restart"); w1.Add(this.RestartAction, null); this.RebootAction = new Gtk.Action("RebootAction", Mono.Unix.Catalog.GetString("Reboot"), null, "gtk-refresh"); this.RebootAction.ShortLabel = Mono.Unix.Catalog.GetString("Reboot"); w1.Add(this.RebootAction, null); this.ShutdownAction = new Gtk.Action("ShutdownAction", Mono.Unix.Catalog.GetString("Shutdown"), null, "gtk-quit"); this.ShutdownAction.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown"); w1.Add(this.ShutdownAction, null); this.ConfigurationAction = new Gtk.Action("ConfigurationAction", Mono.Unix.Catalog.GetString("Configuration"), null, "gtk-edit"); this.ConfigurationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences"); w1.Add(this.ConfigurationAction, null); this.clearAction = new Gtk.Action("clearAction", null, Mono.Unix.Catalog.GetString("Clear playlist"), "gtk-clear"); w1.Add(this.clearAction, null); this.openAction = new Gtk.Action("openAction", null, null, "gtk-open"); w1.Add(this.openAction, null); this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save"); w1.Add(this.saveAction, null); this.saveAsAction = new Gtk.Action("saveAsAction", null, null, "gtk-save-as"); w1.Add(this.saveAsAction, null); this.aRefreshPlaylist = new Gtk.Action("aRefreshPlaylist", null, null, "gtk-refresh"); w1.Add(this.aRefreshPlaylist, null); this.aRemoveSelected = new Gtk.Action("aRemoveSelected", null, Mono.Unix.Catalog.GetString("Remove selected item"), "gtk-remove"); w1.Add(this.aRemoveSelected, null); this.aPlaySelected = new Gtk.Action("aPlaySelected", null, Mono.Unix.Catalog.GetString("Play selected item"), "gtk-media-play"); w1.Add(this.aPlaySelected, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.WidthRequest = 900; this.HeightRequest = 600; this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("XBMControl Evo"); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.Resizable = false; this.AllowGrow = false; this.DefaultWidth = 800; this.DefaultHeight = 600; // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XBMControlAction' action='XBMControlAction'><menuitem name='ConfigurationAction' action='ConfigurationAction'/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='XBMCAction' action='XBMCAction'><menu name='UpdateLibraryAction' action='UpdateLibraryAction'><menuitem name='MusicAction' action='MusicAction'/><menuitem name='VideoAction' action='VideoAction'/></menu><menuitem name='RestartAction' action='RestartAction'/><menuitem name='RebootAction' action='RebootAction'/><menuitem name='ShutdownAction' action='ShutdownAction'/></menu><menu name='PlaylistAction' action='PlaylistAction'/><menu name='HelpAction' action='HelpAction'/></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 300; // Container child hpaned1.Gtk.Paned+PanedChild this.nbBrowser = new Gtk.Notebook(); this.nbBrowser.WidthRequest = 300; this.nbBrowser.CanFocus = true; this.nbBrowser.Name = "nbBrowser"; this.nbBrowser.CurrentPage = 0; // Container child nbBrowser.Gtk.Notebook+NotebookChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.cbShareType = Gtk.ComboBox.NewText(); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Music")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Video")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Pictures")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Files")); this.cbShareType.Name = "cbShareType"; this.cbShareType.Active = 0; this.vbox3.Add(this.cbShareType); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.cbShareType])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.tvShareBrowser = new Gtk.TreeView(); this.tvShareBrowser.CanFocus = true; this.tvShareBrowser.Name = "tvShareBrowser"; this.GtkScrolledWindow.Add(this.tvShareBrowser); this.vbox3.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow])); w5.Position = 1; this.nbBrowser.Add(this.vbox3); // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Shares"); this.nbBrowser.SetTabLabel(this.vbox3, this.label2); this.label2.ShowAll(); this.hpaned1.Add(this.nbBrowser); Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbBrowser])); w7.Resize = false; w7.Shrink = false; // Container child hpaned1.Gtk.Paned+PanedChild this.nbDataContainer = new Gtk.Notebook(); this.nbDataContainer.CanFocus = true; this.nbDataContainer.Name = "nbDataContainer"; this.nbDataContainer.CurrentPage = 0; this.nbDataContainer.ShowBorder = false; this.nbDataContainer.Scrollable = true; // Container child nbDataContainer.Gtk.Notebook+NotebookChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild Gtk.Viewport w8 = new Gtk.Viewport(); w8.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.fixedNowPlaying = new Gtk.Fixed(); this.fixedNowPlaying.Name = "fixedNowPlaying"; this.fixedNowPlaying.HasWindow = false; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.imgNowPlaying = new Gtk.Image(); this.imgNowPlaying.WidthRequest = 300; this.imgNowPlaying.HeightRequest = 300; this.imgNowPlaying.Name = "imgNowPlaying"; this.fixedNowPlaying.Add(this.imgNowPlaying); Gtk.Fixed.FixedChild w9 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.imgNowPlaying])); w9.X = 20; w9.Y = 145; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lArtist = new Gtk.Label(); this.lArtist.WidthRequest = 555; this.lArtist.Name = "lArtist"; this.fixedNowPlaying.Add(this.lArtist); Gtk.Fixed.FixedChild w10 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lArtist])); w10.X = 10; w10.Y = 10; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lSong = new Gtk.Label(); this.lSong.WidthRequest = 555; this.lSong.Name = "lSong"; this.fixedNowPlaying.Add(this.lSong); Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lSong])); w11.X = 10; w11.Y = 34; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lAlbum = new Gtk.Label(); this.lAlbum.WidthRequest = 555; this.lAlbum.Name = "lAlbum"; this.fixedNowPlaying.Add(this.lAlbum); Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lAlbum])); w12.X = 10; w12.Y = 70; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lGenre = new Gtk.Label(); this.lGenre.WidthRequest = 155; this.lGenre.Name = "lGenre"; this.fixedNowPlaying.Add(this.lGenre); Gtk.Fixed.FixedChild w13 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lGenre])); w13.X = 410; w13.Y = 98; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lProgress = new Gtk.Label(); this.lProgress.WidthRequest = 150; this.lProgress.Name = "lProgress"; this.fixedNowPlaying.Add(this.lProgress); Gtk.Fixed.FixedChild w14 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lProgress])); w14.X = 353; w14.Y = 430; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lDuration = new Gtk.Label(); this.lDuration.WidthRequest = 60; this.lDuration.Name = "lDuration"; this.fixedNowPlaying.Add(this.lDuration); Gtk.Fixed.FixedChild w15 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lDuration])); w15.X = 502; w15.Y = 430; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lYear = new Gtk.Label(); this.lYear.WidthRequest = 155; this.lYear.Name = "lYear"; this.fixedNowPlaying.Add(this.lYear); Gtk.Fixed.FixedChild w16 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lYear])); w16.X = 410; w16.Y = 84; w8.Add(this.fixedNowPlaying); this.GtkScrolledWindow1.Add(w8); this.nbDataContainer.Add(this.GtkScrolledWindow1); // Notebook tab this.labelMediaInfo = new Gtk.Label(); this.labelMediaInfo.Name = "labelMediaInfo"; this.labelMediaInfo.LabelProp = Mono.Unix.Catalog.GetString("Playing Now"); this.nbDataContainer.SetTabLabel(this.GtkScrolledWindow1, this.labelMediaInfo); this.labelMediaInfo.ShowAll(); // Container child nbDataContainer.Gtk.Notebook+NotebookChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.cbPlaylistType = Gtk.ComboBox.NewText(); this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Music")); this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Video")); this.cbPlaylistType.Name = "cbPlaylistType"; this.cbPlaylistType.Active = 0; this.vbox2.Add(this.cbPlaylistType); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox2[this.cbPlaylistType])); w20.Position = 0; w20.Expand = false; w20.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.tvPlaylist = new Gtk.TreeView(); this.tvPlaylist.CanFocus = true; this.tvPlaylist.Name = "tvPlaylist"; this.GtkScrolledWindow2.Add(this.tvPlaylist); this.vbox2.Add(this.GtkScrolledWindow2); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow2])); w22.Position = 1; // Container child vbox2.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='clearAction' action='clearAction'/><toolitem name='aRefreshPlaylist' action='aRefreshPlaylist'/><toolitem name='aRemoveSelected' action='aRemoveSelected'/><toolitem name='aPlaySelected' action='aPlaySelected'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.TooltipMarkup = "Refresh playlist"; this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.toolbar1.IconSize = ((Gtk.IconSize)(3)); this.vbox2.Add(this.toolbar1); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1])); w23.Position = 2; w23.Expand = false; w23.Fill = false; this.nbDataContainer.Add(this.vbox2); Gtk.Notebook.NotebookChild w24 = ((Gtk.Notebook.NotebookChild)(this.nbDataContainer[this.vbox2])); w24.Position = 1; // Notebook tab this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Playlist"); this.nbDataContainer.SetTabLabel(this.vbox2, this.label3); this.label3.ShowAll(); // Notebook tab Gtk.Label w25 = new Gtk.Label(); w25.Visible = true; this.nbDataContainer.Add(w25); this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Configuration"); this.nbDataContainer.SetTabLabel(w25, this.label4); this.label4.ShowAll(); this.hpaned1.Add(this.nbDataContainer); Gtk.Paned.PanedChild w26 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbDataContainer])); w26.Resize = false; w26.Shrink = false; this.vbox1.Add(this.hpaned1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1])); w27.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.fixed1 = new Gtk.Fixed(); this.fixed1.HeightRequest = 60; this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; // Container child fixed1.Gtk.Fixed+FixedChild this.hsVolume = new Gtk.HScale(null); this.hsVolume.TooltipMarkup = "Volume"; this.hsVolume.WidthRequest = 120; this.hsVolume.CanFocus = true; this.hsVolume.Name = "hsVolume"; this.hsVolume.Adjustment.Upper = 100; this.hsVolume.Adjustment.PageIncrement = 10; this.hsVolume.Adjustment.StepIncrement = 1; this.hsVolume.Adjustment.Value = 51.8987341772152; this.hsVolume.DrawValue = false; this.hsVolume.Digits = 0; this.hsVolume.ValuePos = ((Gtk.PositionType)(2)); this.fixed1.Add(this.hsVolume); Gtk.Fixed.FixedChild w28 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsVolume])); w28.X = 730; w28.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.hsProgress = new Gtk.HScale(null); this.hsProgress.TooltipMarkup = "Progress"; this.hsProgress.WidthRequest = 420; this.hsProgress.CanFocus = true; this.hsProgress.Name = "hsProgress"; this.hsProgress.Adjustment.Upper = 100; this.hsProgress.Adjustment.PageIncrement = 10; this.hsProgress.Adjustment.StepIncrement = 1; this.hsProgress.DrawValue = false; this.hsProgress.Digits = 0; this.hsProgress.ValuePos = ((Gtk.PositionType)(2)); this.fixed1.Add(this.hsProgress); Gtk.Fixed.FixedChild w29 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsProgress])); w29.X = 300; w29.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbMute = new Gtk.ToggleButton(); this.tbMute.TooltipMarkup = "Toggle Mute"; this.tbMute.WidthRequest = 32; this.tbMute.HeightRequest = 32; this.tbMute.CanFocus = true; this.tbMute.Name = "tbMute"; this.tbMute.UseUnderline = true; // Container child tbMute.Gtk.Container+ContainerChild Gtk.Alignment w30 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w31 = new Gtk.HBox(); w31.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w32 = new Gtk.Image(); w32.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_volume-mute", Gtk.IconSize.Button, 20); w31.Add(w32); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w34 = new Gtk.Label(); w31.Add(w34); w30.Add(w31); this.tbMute.Add(w30); this.fixed1.Add(this.tbMute); Gtk.Fixed.FixedChild w38 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbMute])); w38.X = 850; w38.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.bPrevious = new Gtk.Button(); this.bPrevious.TooltipMarkup = "Previous"; this.bPrevious.WidthRequest = 35; this.bPrevious.HeightRequest = 35; this.bPrevious.CanFocus = true; this.bPrevious.Name = "bPrevious"; this.bPrevious.UseUnderline = true; // Container child bPrevious.Gtk.Container+ContainerChild Gtk.Alignment w39 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w40 = new Gtk.HBox(); w40.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w41 = new Gtk.Image(); w41.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-previous", Gtk.IconSize.LargeToolbar, 24); w40.Add(w41); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w43 = new Gtk.Label(); w40.Add(w43); w39.Add(w40); this.bPrevious.Add(w39); this.fixed1.Add(this.bPrevious); Gtk.Fixed.FixedChild w47 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPrevious])); w47.X = 14; w47.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbPlay = new Gtk.ToggleButton(); this.tbPlay.TooltipMarkup = "Play"; this.tbPlay.WidthRequest = 35; this.tbPlay.HeightRequest = 35; this.tbPlay.CanFocus = true; this.tbPlay.Name = "tbPlay"; this.tbPlay.UseUnderline = true; // Container child tbPlay.Gtk.Container+ContainerChild Gtk.Alignment w48 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w49 = new Gtk.HBox(); w49.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w50 = new Gtk.Image(); w50.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-play", Gtk.IconSize.LargeToolbar, 24); w49.Add(w50); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w52 = new Gtk.Label(); w49.Add(w52); w48.Add(w49); this.tbPlay.Add(w48); this.fixed1.Add(this.tbPlay); Gtk.Fixed.FixedChild w56 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbPlay])); w56.X = 46; w56.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbStop = new Gtk.ToggleButton(); this.tbStop.TooltipMarkup = "Stop"; this.tbStop.WidthRequest = 35; this.tbStop.HeightRequest = 35; this.tbStop.CanFocus = true; this.tbStop.Name = "tbStop"; this.tbStop.UseUnderline = true; // Container child tbStop.Gtk.Container+ContainerChild Gtk.Alignment w57 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w58 = new Gtk.HBox(); w58.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w59 = new Gtk.Image(); w59.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-stop", Gtk.IconSize.LargeToolbar, 24); w58.Add(w59); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w61 = new Gtk.Label(); w58.Add(w61); w57.Add(w58); this.tbStop.Add(w57); this.fixed1.Add(this.tbStop); Gtk.Fixed.FixedChild w65 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbStop])); w65.X = 78; w65.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bNext = new Gtk.Button(); this.bNext.TooltipMarkup = "Next"; this.bNext.WidthRequest = 35; this.bNext.HeightRequest = 35; this.bNext.CanFocus = true; this.bNext.Name = "bNext"; this.bNext.UseUnderline = true; // Container child bNext.Gtk.Container+ContainerChild Gtk.Alignment w66 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w67 = new Gtk.HBox(); w67.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w68 = new Gtk.Image(); w68.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-next", Gtk.IconSize.LargeToolbar, 24); w67.Add(w68); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w70 = new Gtk.Label(); w67.Add(w70); w66.Add(w67); this.bNext.Add(w66); this.fixed1.Add(this.bNext); Gtk.Fixed.FixedChild w74 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bNext])); w74.X = 110; w74.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bRepeat = new Gtk.Button(); this.bRepeat.TooltipMarkup = "Toggle Repeat Modes"; this.bRepeat.WidthRequest = 28; this.bRepeat.HeightRequest = 28; this.bRepeat.CanFocus = true; this.bRepeat.Name = "bRepeat"; this.bRepeat.UseUnderline = true; // Container child bRepeat.Gtk.Container+ContainerChild Gtk.Alignment w75 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w76 = new Gtk.HBox(); w76.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w77 = new Gtk.Image(); w77.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-redo", Gtk.IconSize.Menu, 16); w76.Add(w77); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w79 = new Gtk.Label(); w76.Add(w79); w75.Add(w76); this.bRepeat.Add(w75); this.fixed1.Add(this.bRepeat); Gtk.Fixed.FixedChild w83 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bRepeat])); w83.X = 160; w83.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bShuffle = new Gtk.Button(); this.bShuffle.TooltipMarkup = "Toggle Shuffel Mode"; this.bShuffle.WidthRequest = 28; this.bShuffle.HeightRequest = 28; this.bShuffle.CanFocus = true; this.bShuffle.Name = "bShuffle"; this.bShuffle.UseUnderline = true; // Container child bShuffle.Gtk.Container+ContainerChild Gtk.Alignment w84 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w85 = new Gtk.HBox(); w85.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w86 = new Gtk.Image(); w86.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_chart-toggle-legend", Gtk.IconSize.Menu, 16); w85.Add(w86); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w88 = new Gtk.Label(); w85.Add(w88); w84.Add(w85); this.bShuffle.Add(w84); this.fixed1.Add(this.bShuffle); Gtk.Fixed.FixedChild w92 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bShuffle])); w92.X = 185; w92.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bPartyMode = new Gtk.Button(); this.bPartyMode.TooltipMarkup = "Toggle Party Mode"; this.bPartyMode.WidthRequest = 28; this.bPartyMode.HeightRequest = 28; this.bPartyMode.CanFocus = true; this.bPartyMode.Name = "bPartyMode"; this.bPartyMode.UseUnderline = true; // Container child bPartyMode.Gtk.Container+ContainerChild Gtk.Alignment w93 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w94 = new Gtk.HBox(); w94.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w95 = new Gtk.Image(); w95.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_filters", Gtk.IconSize.Menu, 16); w94.Add(w95); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w97 = new Gtk.Label(); w94.Add(w97); w93.Add(w94); this.bPartyMode.Add(w93); this.fixed1.Add(this.bPartyMode); Gtk.Fixed.FixedChild w101 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPartyMode])); w101.X = 210; w101.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.imgLoading = new Gtk.Image(); this.imgLoading.TooltipMarkup = "Loading data..."; this.imgLoading.Name = "imgLoading"; this.imgLoading.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-jump-to", Gtk.IconSize.LargeToolbar, 24); this.fixed1.Add(this.imgLoading); Gtk.Fixed.FixedChild w102 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.imgLoading])); w102.X = 255; w102.Y = 13; this.vbox1.Add(this.fixed1); Gtk.Box.BoxChild w103 = ((Gtk.Box.BoxChild)(this.vbox1[this.fixed1])); w103.Position = 2; w103.Expand = false; w103.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.QuitAction.Activated += new System.EventHandler(this.OnExit); this.MusicAction.Activated += new System.EventHandler(this.click_UpdateMusicLibrary); this.VideoAction.Activated += new System.EventHandler(this.click_UpdateVideoLibrary); this.clearAction.Activated += new System.EventHandler(this.aClearPlaylist_click); this.aRefreshPlaylist.Activated += new System.EventHandler(this.aRefreshPlaylist_activated); this.aRemoveSelected.Activated += new System.EventHandler(this.aRemoveSelected_activated); this.aPlaySelected.Activated += new System.EventHandler(this.aPlaySelected_activated); this.cbShareType.Changed += new System.EventHandler(this.cbShareBrowser_changed); this.tvShareBrowser.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvShareBrowser_release); this.cbPlaylistType.Changed += new System.EventHandler(this.cbPlaylistType_changed); this.tvPlaylist.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvPlaylist_buttonRelease); this.hsVolume.ValueChanged += new System.EventHandler(this.hsVolume_valueChanged); this.hsProgress.ChangeValue += new Gtk.ChangeValueHandler(this.hsProgress_changeValue); this.tbMute.Released += new System.EventHandler(this.tbMute_released); this.bPrevious.Released += new System.EventHandler(this.bPrevious_released); this.tbPlay.Released += new System.EventHandler(this.tbPlay_released); this.tbStop.Released += new System.EventHandler(this.tbStop_released); this.bNext.Released += new System.EventHandler(this.bNext_released); this.bRepeat.Activated += new System.EventHandler(this.bRepeat_click); this.bShuffle.Released += new System.EventHandler(this.bShuffle_release); this.bPartyMode.Released += new System.EventHandler(this.bPartyMode_released); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget OpenVP.GtkGui.LinearPresetEditor Stetic.BinContainer.Attach(this); this.Name = "OpenVP.GtkGui.LinearPresetEditor"; // Container child OpenVP.GtkGui.LinearPresetEditor.Gtk.Container+ContainerChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 1; // Container child notebook1.Gtk.Notebook+NotebookChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 211; // Container child hpaned1.Gtk.Paned+PanedChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.hbuttonbox1 = new Gtk.HButtonBox(); this.hbuttonbox1.Homogeneous = true; this.hbuttonbox1.Spacing = 6; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.AddEffect = new Gtk.Button(); this.AddEffect.CanFocus = true; this.AddEffect.Name = "AddEffect"; this.AddEffect.UseStock = true; this.AddEffect.UseUnderline = true; this.AddEffect.Label = "gtk-add"; this.hbuttonbox1.Add(this.AddEffect); Gtk.ButtonBox.ButtonBoxChild w1 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.AddEffect])); w1.Expand = false; w1.Fill = false; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.RemoveEffect = new Gtk.Button(); this.RemoveEffect.Sensitive = false; this.RemoveEffect.CanFocus = true; this.RemoveEffect.Name = "RemoveEffect"; this.RemoveEffect.UseStock = true; this.RemoveEffect.UseUnderline = true; this.RemoveEffect.Label = "gtk-remove"; this.hbuttonbox1.Add(this.RemoveEffect); Gtk.ButtonBox.ButtonBoxChild w2 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.RemoveEffect])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.vbox1.Add(this.hbuttonbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.EffectList = new Gtk.TreeView(); this.EffectList.CanFocus = true; this.EffectList.Name = "EffectList"; this.EffectList.HeadersVisible = false; this.EffectList.HeadersClickable = true; this.GtkScrolledWindow.Add(this.EffectList); this.vbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow])); w5.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.hbuttonbox2 = new Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; this.hbuttonbox2.Homogeneous = true; this.hbuttonbox2.Spacing = 6; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.UpButton = new Gtk.Button(); this.UpButton.Sensitive = false; this.UpButton.CanFocus = true; this.UpButton.Name = "UpButton"; this.UpButton.UseStock = true; this.UpButton.UseUnderline = true; this.UpButton.Label = "gtk-go-up"; this.hbuttonbox2.Add(this.UpButton); Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.UpButton])); w6.Expand = false; w6.Fill = false; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.DownButton = new Gtk.Button(); this.DownButton.Sensitive = false; this.DownButton.CanFocus = true; this.DownButton.Name = "DownButton"; this.DownButton.UseStock = true; this.DownButton.UseUnderline = true; this.DownButton.Label = "gtk-go-down"; this.hbuttonbox2.Add(this.DownButton); Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.DownButton])); w7.Position = 1; w7.Expand = false; w7.Fill = false; this.vbox1.Add(this.hbuttonbox2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox2])); w8.Position = 2; w8.Expand = false; w8.Fill = false; this.hpaned1.Add(this.vbox1); Gtk.Paned.PanedChild w9 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox1])); w9.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.EffectPane = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.EffectPane.Name = "EffectPane"; this.hpaned1.Add(this.EffectPane); this.notebook1.Add(this.hpaned1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Effects"); this.notebook1.SetTabLabel(this.hpaned1, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment4.Name = "GtkAlignment4"; this.GtkAlignment4.LeftPadding = ((uint)(12)); // Container child GtkAlignment4.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hbuttonbox3 = new Gtk.HButtonBox(); this.hbuttonbox3.Name = "hbuttonbox3"; this.hbuttonbox3.Spacing = 6; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.KeybindAddButton = new Gtk.Button(); this.KeybindAddButton.CanFocus = true; this.KeybindAddButton.Name = "KeybindAddButton"; this.KeybindAddButton.UseStock = true; this.KeybindAddButton.UseUnderline = true; this.KeybindAddButton.Label = "gtk-add"; this.hbuttonbox3.Add(this.KeybindAddButton); Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.KeybindAddButton])); w12.Expand = false; w12.Fill = false; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.KeybindRemoveButton = new Gtk.Button(); this.KeybindRemoveButton.CanFocus = true; this.KeybindRemoveButton.Name = "KeybindRemoveButton"; this.KeybindRemoveButton.UseStock = true; this.KeybindRemoveButton.UseUnderline = true; this.KeybindRemoveButton.Label = "gtk-remove"; this.hbuttonbox3.Add(this.KeybindRemoveButton); Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.KeybindRemoveButton])); w13.Position = 1; w13.Expand = false; w13.Fill = false; this.vbox2.Add(this.hbuttonbox3); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox3])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.KeybindList = new Gtk.TreeView(); this.KeybindList.CanFocus = true; this.KeybindList.Name = "KeybindList"; this.KeybindList.HeadersClickable = true; this.GtkScrolledWindow1.Add(this.KeybindList); this.vbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1])); w16.Position = 1; this.GtkAlignment4.Add(this.vbox2); this.frame1.Add(this.GtkAlignment4); this.GtkLabel6 = new Gtk.Label(); this.GtkLabel6.Name = "GtkLabel6"; this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Bound keys</b>"); this.GtkLabel6.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel6; this.hbox1.Add(this.frame1); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame1])); w19.Position = 0; w19.Expand = false; w19.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment9 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment9.Name = "GtkAlignment9"; this.GtkAlignment9.LeftPadding = ((uint)(12)); this.frame2.Add(this.GtkAlignment9); this.GtkLabel7 = new Gtk.Label(); this.GtkLabel7.Name = "GtkLabel7"; this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Script</b>"); this.GtkLabel7.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel7; this.vbox4.Add(this.frame2); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame2])); w21.Position = 0; // Container child vbox4.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame3.Gtk.Container+ContainerChild this.GtkAlignment8 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment8.Name = "GtkAlignment8"; this.GtkAlignment8.LeftPadding = ((uint)(12)); // Container child GtkAlignment8.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.KeybindEventCheck = new Gtk.ToggleButton(); this.KeybindEventCheck.CanFocus = true; this.KeybindEventCheck.Name = "KeybindEventCheck"; this.KeybindEventCheck.UseUnderline = true; this.KeybindEventCheck.Active = true; this.KeybindEventCheck.Label = Mono.Unix.Catalog.GetString("On press"); this.table1.Add(this.KeybindEventCheck); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.KeybindEventCheck])); w22.TopAttach = ((uint)(1)); w22.BottomAttach = ((uint)(2)); w22.LeftAttach = ((uint)(1)); w22.RightAttach = ((uint)(2)); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.KeyEntryAlign = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.KeyEntryAlign.Name = "KeyEntryAlign"; this.table1.Add(this.KeyEntryAlign); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.KeyEntryAlign])); w23.LeftAttach = ((uint)(1)); w23.RightAttach = ((uint)(2)); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Key:"); this.table1.Add(this.label4); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment8.Add(this.table1); this.frame3.Add(this.GtkAlignment8); this.GtkLabel10 = new Gtk.Label(); this.GtkLabel10.Name = "GtkLabel10"; this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>Trigger</b>"); this.GtkLabel10.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel10; this.vbox4.Add(this.frame3); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3])); w27.Position = 1; w27.Expand = false; w27.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.hbuttonbox4 = new Gtk.HButtonBox(); this.hbuttonbox4.Name = "hbuttonbox4"; this.hbuttonbox4.Spacing = 6; this.hbuttonbox4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild this.KeybindRevertButton = new Gtk.Button(); this.KeybindRevertButton.Sensitive = false; this.KeybindRevertButton.CanFocus = true; this.KeybindRevertButton.Name = "KeybindRevertButton"; this.KeybindRevertButton.UseStock = true; this.KeybindRevertButton.UseUnderline = true; this.KeybindRevertButton.Label = "gtk-revert-to-saved"; this.hbuttonbox4.Add(this.KeybindRevertButton); Gtk.ButtonBox.ButtonBoxChild w28 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4[this.KeybindRevertButton])); w28.Expand = false; w28.Fill = false; // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild this.KeybindApplyButton = new Gtk.Button(); this.KeybindApplyButton.Sensitive = false; this.KeybindApplyButton.CanFocus = true; this.KeybindApplyButton.Name = "KeybindApplyButton"; this.KeybindApplyButton.UseStock = true; this.KeybindApplyButton.UseUnderline = true; this.KeybindApplyButton.Label = "gtk-apply"; this.hbuttonbox4.Add(this.KeybindApplyButton); Gtk.ButtonBox.ButtonBoxChild w29 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4[this.KeybindApplyButton])); w29.Position = 1; w29.Expand = false; w29.Fill = false; this.vbox4.Add(this.hbuttonbox4); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbuttonbox4])); w30.Position = 2; w30.Expand = false; w30.Fill = false; this.hbox1.Add(this.vbox4); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox4])); w31.Position = 1; this.notebook1.Add(this.hbox1); Gtk.Notebook.NotebookChild w32 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.hbox1])); w32.Position = 1; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Keybindings"); this.notebook1.SetTabLabel(this.hbox1, this.label2); this.label2.ShowAll(); this.Add(this.notebook1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.AddEffect.Clicked += new System.EventHandler(this.OnAddEffectClicked); this.RemoveEffect.Clicked += new System.EventHandler(this.OnRemoveEffectClicked); this.UpButton.Clicked += new System.EventHandler(this.OnUpButtonClicked); this.DownButton.Clicked += new System.EventHandler(this.OnDownButtonClicked); this.KeybindEventCheck.Toggled += new System.EventHandler(this.OnKeybindEventCheckToggled); }
public override void Initialize() { Widget = new Gtk.ToggleButton (); Widget.Show (); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget OpenVP.GtkGui.LinearPresetEditor Stetic.BinContainer.Attach(this); this.Name = "OpenVP.GtkGui.LinearPresetEditor"; // Container child OpenVP.GtkGui.LinearPresetEditor.Gtk.Container+ContainerChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 1; // Container child notebook1.Gtk.Notebook+NotebookChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 211; // Container child hpaned1.Gtk.Paned+PanedChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.hbuttonbox1 = new Gtk.HButtonBox(); this.hbuttonbox1.Homogeneous = true; this.hbuttonbox1.Spacing = 6; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.AddEffect = new Gtk.Button(); this.AddEffect.CanFocus = true; this.AddEffect.Name = "AddEffect"; this.AddEffect.UseStock = true; this.AddEffect.UseUnderline = true; this.AddEffect.Label = "gtk-add"; this.hbuttonbox1.Add(this.AddEffect); Gtk.ButtonBox.ButtonBoxChild w1 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.AddEffect])); w1.Expand = false; w1.Fill = false; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.RemoveEffect = new Gtk.Button(); this.RemoveEffect.Sensitive = false; this.RemoveEffect.CanFocus = true; this.RemoveEffect.Name = "RemoveEffect"; this.RemoveEffect.UseStock = true; this.RemoveEffect.UseUnderline = true; this.RemoveEffect.Label = "gtk-remove"; this.hbuttonbox1.Add(this.RemoveEffect); Gtk.ButtonBox.ButtonBoxChild w2 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.RemoveEffect])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.vbox1.Add(this.hbuttonbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.EffectList = new Gtk.TreeView(); this.EffectList.CanFocus = true; this.EffectList.Name = "EffectList"; this.EffectList.HeadersVisible = false; this.EffectList.HeadersClickable = true; this.GtkScrolledWindow.Add(this.EffectList); this.vbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow])); w5.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.hbuttonbox2 = new Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; this.hbuttonbox2.Homogeneous = true; this.hbuttonbox2.Spacing = 6; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.UpButton = new Gtk.Button(); this.UpButton.Sensitive = false; this.UpButton.CanFocus = true; this.UpButton.Name = "UpButton"; this.UpButton.UseStock = true; this.UpButton.UseUnderline = true; this.UpButton.Label = "gtk-go-up"; this.hbuttonbox2.Add(this.UpButton); Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.UpButton])); w6.Expand = false; w6.Fill = false; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.DownButton = new Gtk.Button(); this.DownButton.Sensitive = false; this.DownButton.CanFocus = true; this.DownButton.Name = "DownButton"; this.DownButton.UseStock = true; this.DownButton.UseUnderline = true; this.DownButton.Label = "gtk-go-down"; this.hbuttonbox2.Add(this.DownButton); Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.DownButton])); w7.Position = 1; w7.Expand = false; w7.Fill = false; this.vbox1.Add(this.hbuttonbox2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox2])); w8.Position = 2; w8.Expand = false; w8.Fill = false; this.hpaned1.Add(this.vbox1); Gtk.Paned.PanedChild w9 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox1])); w9.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.EffectPane = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.EffectPane.Name = "EffectPane"; this.hpaned1.Add(this.EffectPane); this.notebook1.Add(this.hpaned1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Effects"); this.notebook1.SetTabLabel(this.hpaned1, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment4.Name = "GtkAlignment4"; this.GtkAlignment4.LeftPadding = ((uint)(12)); // Container child GtkAlignment4.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hbuttonbox3 = new Gtk.HButtonBox(); this.hbuttonbox3.Name = "hbuttonbox3"; this.hbuttonbox3.Spacing = 6; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.KeybindAddButton = new Gtk.Button(); this.KeybindAddButton.CanFocus = true; this.KeybindAddButton.Name = "KeybindAddButton"; this.KeybindAddButton.UseStock = true; this.KeybindAddButton.UseUnderline = true; this.KeybindAddButton.Label = "gtk-add"; this.hbuttonbox3.Add(this.KeybindAddButton); Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.KeybindAddButton])); w12.Expand = false; w12.Fill = false; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.KeybindRemoveButton = new Gtk.Button(); this.KeybindRemoveButton.CanFocus = true; this.KeybindRemoveButton.Name = "KeybindRemoveButton"; this.KeybindRemoveButton.UseStock = true; this.KeybindRemoveButton.UseUnderline = true; this.KeybindRemoveButton.Label = "gtk-remove"; this.hbuttonbox3.Add(this.KeybindRemoveButton); Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.KeybindRemoveButton])); w13.Position = 1; w13.Expand = false; w13.Fill = false; this.vbox2.Add(this.hbuttonbox3); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox3])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.KeybindList = new Gtk.TreeView(); this.KeybindList.CanFocus = true; this.KeybindList.Name = "KeybindList"; this.KeybindList.HeadersClickable = true; this.GtkScrolledWindow1.Add(this.KeybindList); this.vbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1])); w16.Position = 1; this.GtkAlignment4.Add(this.vbox2); this.frame1.Add(this.GtkAlignment4); this.GtkLabel6 = new Gtk.Label(); this.GtkLabel6.Name = "GtkLabel6"; this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Bound keys</b>"); this.GtkLabel6.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel6; this.hbox1.Add(this.frame1); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame1])); w19.Position = 0; w19.Expand = false; w19.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment9 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment9.Name = "GtkAlignment9"; this.GtkAlignment9.LeftPadding = ((uint)(12)); this.frame2.Add(this.GtkAlignment9); this.GtkLabel7 = new Gtk.Label(); this.GtkLabel7.Name = "GtkLabel7"; this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Script</b>"); this.GtkLabel7.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel7; this.vbox4.Add(this.frame2); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame2])); w21.Position = 0; // Container child vbox4.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame3.Gtk.Container+ContainerChild this.GtkAlignment8 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment8.Name = "GtkAlignment8"; this.GtkAlignment8.LeftPadding = ((uint)(12)); // Container child GtkAlignment8.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.KeybindEventCheck = new Gtk.ToggleButton(); this.KeybindEventCheck.CanFocus = true; this.KeybindEventCheck.Name = "KeybindEventCheck"; this.KeybindEventCheck.UseUnderline = true; this.KeybindEventCheck.Active = true; this.KeybindEventCheck.Label = Mono.Unix.Catalog.GetString("On press"); this.table1.Add(this.KeybindEventCheck); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.KeybindEventCheck])); w22.TopAttach = ((uint)(1)); w22.BottomAttach = ((uint)(2)); w22.LeftAttach = ((uint)(1)); w22.RightAttach = ((uint)(2)); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.KeyEntryAlign = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.KeyEntryAlign.Name = "KeyEntryAlign"; this.table1.Add(this.KeyEntryAlign); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.KeyEntryAlign])); w23.LeftAttach = ((uint)(1)); w23.RightAttach = ((uint)(2)); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Key:"); this.table1.Add(this.label4); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment8.Add(this.table1); this.frame3.Add(this.GtkAlignment8); this.GtkLabel10 = new Gtk.Label(); this.GtkLabel10.Name = "GtkLabel10"; this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>Trigger</b>"); this.GtkLabel10.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel10; this.vbox4.Add(this.frame3); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3])); w27.Position = 1; w27.Expand = false; w27.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.hbuttonbox4 = new Gtk.HButtonBox(); this.hbuttonbox4.Name = "hbuttonbox4"; this.hbuttonbox4.Spacing = 6; this.hbuttonbox4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild this.KeybindRevertButton = new Gtk.Button(); this.KeybindRevertButton.Sensitive = false; this.KeybindRevertButton.CanFocus = true; this.KeybindRevertButton.Name = "KeybindRevertButton"; this.KeybindRevertButton.UseStock = true; this.KeybindRevertButton.UseUnderline = true; this.KeybindRevertButton.Label = "gtk-revert-to-saved"; this.hbuttonbox4.Add(this.KeybindRevertButton); Gtk.ButtonBox.ButtonBoxChild w28 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4[this.KeybindRevertButton])); w28.Expand = false; w28.Fill = false; // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild this.KeybindApplyButton = new Gtk.Button(); this.KeybindApplyButton.Sensitive = false; this.KeybindApplyButton.CanFocus = true; this.KeybindApplyButton.Name = "KeybindApplyButton"; this.KeybindApplyButton.UseStock = true; this.KeybindApplyButton.UseUnderline = true; this.KeybindApplyButton.Label = "gtk-apply"; this.hbuttonbox4.Add(this.KeybindApplyButton); Gtk.ButtonBox.ButtonBoxChild w29 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4[this.KeybindApplyButton])); w29.Position = 1; w29.Expand = false; w29.Fill = false; this.vbox4.Add(this.hbuttonbox4); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbuttonbox4])); w30.Position = 2; w30.Expand = false; w30.Fill = false; this.hbox1.Add(this.vbox4); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox4])); w31.Position = 1; this.notebook1.Add(this.hbox1); Gtk.Notebook.NotebookChild w32 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.hbox1])); w32.Position = 1; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Keybindings"); this.notebook1.SetTabLabel(this.hbox1, this.label2); this.label2.ShowAll(); this.Add(this.notebook1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.AddEffect.Clicked += new System.EventHandler(this.OnAddEffectClicked); this.RemoveEffect.Clicked += new System.EventHandler(this.OnRemoveEffectClicked); this.UpButton.Clicked += new System.EventHandler(this.OnUpButtonClicked); this.DownButton.Clicked += new System.EventHandler(this.OnDownButtonClicked); this.KeybindEventCheck.Toggled += new System.EventHandler(this.OnKeybindEventCheckToggled); }