Files
@ 71732f305328
Branch filter:
Location: ATITD-Tools/Desert-Paint-Lab/gtk-gui/DesertPaintLab.SelectProfileDialog.cs - annotation
71732f305328
3.6 KiB
text/x-csharp
Pre-allocate a bunch of map entries, given that we know there are a fixed set of colors. Use fixed arrays in places where maps/sets were excessive. Switch away from using Gtk.Application.Invoke, which leaks a bunch of memory.
4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a 4ef58379d19a |
// This file has been generated by the GUI designer. Do not modify.
namespace DesertPaintLab
{
public partial class SelectProfileDialog
{
private global::Gtk.Label label3;
private global::Gtk.TreeView profileListView;
private global::Gtk.Button buttonCancel;
private global::Gtk.Button button56;
private global::Gtk.Button buttonOk;
protected virtual void Build ()
{
global::Stetic.Gui.Initialize (this);
// Widget DesertPaintLab.SelectProfileDialog
this.Name = "DesertPaintLab.SelectProfileDialog";
this.Title = "Open Profile";
this.WindowPosition = ((global::Gtk.WindowPosition)(4));
this.Modal = true;
this.BorderWidth = ((uint)(5));
// Internal child DesertPaintLab.SelectProfileDialog.VBox
global::Gtk.VBox w1 = this.VBox;
w1.Name = "dialog1_VBox";
w1.Spacing = 10;
w1.BorderWidth = ((uint)(2));
// Container child dialog1_VBox.Gtk.Box+BoxChild
this.label3 = new global::Gtk.Label ();
this.label3.Name = "label3";
this.label3.LabelProp = "Select the profile you would like to open:";
w1.Add (this.label3);
global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(w1 [this.label3]));
w2.Position = 0;
w2.Expand = false;
w2.Fill = false;
// Container child dialog1_VBox.Gtk.Box+BoxChild
this.profileListView = new global::Gtk.TreeView ();
this.profileListView.CanFocus = true;
this.profileListView.Name = "profileListView";
this.profileListView.EnableSearch = false;
w1.Add (this.profileListView);
global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(w1 [this.profileListView]));
w3.Position = 1;
// Internal child DesertPaintLab.SelectProfileDialog.ActionArea
global::Gtk.HButtonBox w4 = this.ActionArea;
w4.Name = "dialog1_ActionArea";
w4.Spacing = 10;
w4.BorderWidth = ((uint)(5));
w4.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
this.buttonCancel = new global::Gtk.Button ();
this.buttonCancel.CanDefault = true;
this.buttonCancel.CanFocus = true;
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.UseStock = true;
this.buttonCancel.UseUnderline = true;
this.buttonCancel.Label = "gtk-cancel";
this.AddActionWidget (this.buttonCancel, -6);
global::Gtk.ButtonBox.ButtonBoxChild w5 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w4 [this.buttonCancel]));
w5.Expand = false;
w5.Fill = false;
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
this.button56 = new global::Gtk.Button ();
this.button56.CanFocus = true;
this.button56.Name = "button56";
this.button56.UseUnderline = true;
this.button56.Label = "New Profile";
this.AddActionWidget (this.button56, -3);
global::Gtk.ButtonBox.ButtonBoxChild w6 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w4 [this.button56]));
w6.Position = 1;
w6.Expand = false;
w6.Fill = false;
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
this.buttonOk = new global::Gtk.Button ();
this.buttonOk.CanDefault = true;
this.buttonOk.CanFocus = true;
this.buttonOk.Name = "buttonOk";
this.buttonOk.UseStock = true;
this.buttonOk.UseUnderline = true;
this.buttonOk.Label = "gtk-ok";
this.AddActionWidget (this.buttonOk, -5);
global::Gtk.ButtonBox.ButtonBoxChild w7 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w4 [this.buttonOk]));
w7.Position = 2;
w7.Expand = false;
w7.Fill = false;
if ((this.Child != null)) {
this.Child.ShowAll ();
}
this.DefaultWidth = 400;
this.DefaultHeight = 288;
this.Show ();
this.profileListView.CursorChanged += new global::System.EventHandler (this.OnCursorChanged);
}
}
}
|