1
// ------------------------------------------------------------------------------
3
// This code was generated by a tool.
6
// Changes to this file may cause incorrect behavior and will be lost if
7
// the code is regenerated.
9
// ------------------------------------------------------------------------------
11
namespace Do.Platform.Linux {
14
public partial class PluginAvailableDialog {
16
private Gtk.VBox vbox2;
18
private Gtk.HBox hbox1;
20
private Gtk.Image title_img;
22
private Gtk.Alignment title_align;
24
private Gtk.Label title_lbl;
26
private Gtk.Alignment body_align;
28
private Gtk.Label body_lbl;
30
private Gtk.Alignment link_align;
32
private Gtk.VBox link_vbox;
34
private Gtk.Alignment ask_align;
36
private Gtk.CheckButton ask_chk;
38
private Gtk.Button buttonCancel;
40
private Gtk.Button install_btn;
42
protected virtual void Build() {
43
Stetic.Gui.Initialize(this);
44
// Widget Do.Platform.Linux.PluginAvailableDialog
45
this.Name = "Do.Platform.Linux.PluginAvailableDialog";
46
this.Icon = Stetic.IconLoader.LoadIcon(this, "distributor-logo", Gtk.IconSize.Menu, 16);
47
this.WindowPosition = ((Gtk.WindowPosition)(4));
48
this.BorderWidth = ((uint)(5));
49
// Internal child Do.Platform.Linux.PluginAvailableDialog.VBox
50
Gtk.VBox w1 = this.VBox;
51
w1.Name = "dialog1_VBox";
52
w1.BorderWidth = ((uint)(2));
53
// Container child dialog1_VBox.Gtk.Box+BoxChild
54
this.vbox2 = new Gtk.VBox();
55
this.vbox2.Name = "vbox2";
56
this.vbox2.Spacing = 6;
57
// Container child vbox2.Gtk.Box+BoxChild
58
this.hbox1 = new Gtk.HBox();
59
this.hbox1.Name = "hbox1";
60
this.hbox1.Spacing = 6;
61
// Container child hbox1.Gtk.Box+BoxChild
62
this.title_img = new Gtk.Image();
63
this.title_img.Name = "title_img";
64
this.title_img.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gnome-do", Gtk.IconSize.Dialog, 48);
65
this.hbox1.Add(this.title_img);
66
Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.title_img]));
70
// Container child hbox1.Gtk.Box+BoxChild
71
this.title_align = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
72
this.title_align.Name = "title_align";
73
this.title_align.LeftPadding = ((uint)(7));
74
// Container child title_align.Gtk.Container+ContainerChild
75
this.title_lbl = new Gtk.Label();
76
this.title_lbl.Name = "title_lbl";
77
this.title_lbl.LabelProp = Mono.Unix.Catalog.GetString("<b><span size=\"x-large\">There's a Do plugin for that!</span></b>");
78
this.title_lbl.UseMarkup = true;
79
this.title_align.Add(this.title_lbl);
80
this.hbox1.Add(this.title_align);
81
Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.title_align]));
85
this.vbox2.Add(this.hbox1);
86
Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
90
// Container child vbox2.Gtk.Box+BoxChild
91
this.body_align = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
92
this.body_align.Name = "body_align";
93
this.body_align.LeftPadding = ((uint)(62));
94
// Container child body_align.Gtk.Container+ContainerChild
95
this.body_lbl = new Gtk.Label();
96
this.body_lbl.Name = "body_lbl";
97
this.body_lbl.Xalign = 0F;
98
this.body_lbl.LabelProp = Mono.Unix.Catalog.GetString("A Do plugin for {0} is available for installation. Would you like us to enable it for you?");
99
this.body_lbl.Wrap = true;
100
this.body_align.Add(this.body_lbl);
101
this.vbox2.Add(this.body_align);
102
Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.body_align]));
106
// Container child vbox2.Gtk.Box+BoxChild
107
this.link_align = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
108
this.link_align.Name = "link_align";
109
this.link_align.LeftPadding = ((uint)(55));
110
// Container child link_align.Gtk.Container+ContainerChild
111
this.link_vbox = new Gtk.VBox();
112
this.link_vbox.Name = "link_vbox";
113
this.link_align.Add(this.link_vbox);
114
this.vbox2.Add(this.link_align);
115
Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.link_align]));
117
// Container child vbox2.Gtk.Box+BoxChild
118
this.ask_align = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
119
this.ask_align.Name = "ask_align";
120
this.ask_align.LeftPadding = ((uint)(57));
121
// Container child ask_align.Gtk.Container+ContainerChild
122
this.ask_chk = new Gtk.CheckButton();
123
this.ask_chk.CanFocus = true;
124
this.ask_chk.Name = "ask_chk";
125
this.ask_chk.Label = Mono.Unix.Catalog.GetString("Don't ask me about Do plugins again.");
126
this.ask_chk.DrawIndicator = true;
127
this.ask_chk.UseUnderline = true;
128
this.ask_align.Add(this.ask_chk);
129
this.vbox2.Add(this.ask_align);
130
Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.ask_align]));
135
Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
137
// Internal child Do.Platform.Linux.PluginAvailableDialog.ActionArea
138
Gtk.HButtonBox w13 = this.ActionArea;
139
w13.Name = "dialog1_ActionArea";
141
w13.BorderWidth = ((uint)(5));
142
w13.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
143
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
144
this.buttonCancel = new Gtk.Button();
145
this.buttonCancel.CanDefault = true;
146
this.buttonCancel.CanFocus = true;
147
this.buttonCancel.Name = "buttonCancel";
148
this.buttonCancel.UseStock = true;
149
this.buttonCancel.UseUnderline = true;
150
this.buttonCancel.Label = "gtk-cancel";
151
this.AddActionWidget(this.buttonCancel, -6);
152
Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.buttonCancel]));
155
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
156
this.install_btn = new Gtk.Button();
157
this.install_btn.CanDefault = true;
158
this.install_btn.CanFocus = true;
159
this.install_btn.Name = "install_btn";
160
this.install_btn.UseUnderline = true;
161
// Container child install_btn.Gtk.Container+ContainerChild
162
Gtk.Alignment w15 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
163
// Container child GtkAlignment.Gtk.Container+ContainerChild
164
Gtk.HBox w16 = new Gtk.HBox();
166
// Container child GtkHBox.Gtk.Container+ContainerChild
167
Gtk.Image w17 = new Gtk.Image();
168
w17.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-ok", Gtk.IconSize.Button, 16);
170
// Container child GtkHBox.Gtk.Container+ContainerChild
171
Gtk.Label w19 = new Gtk.Label();
172
w19.LabelProp = Mono.Unix.Catalog.GetString("_Install");
173
w19.UseUnderline = true;
176
this.install_btn.Add(w15);
177
this.AddActionWidget(this.install_btn, -5);
178
Gtk.ButtonBox.ButtonBoxChild w23 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.install_btn]));
182
if ((this.Child != null)) {
183
this.Child.ShowAll();
185
this.DefaultWidth = 486;
186
this.DefaultHeight = 218;
188
this.ask_chk.Toggled += new System.EventHandler(this.OnAskChkToggled);
189
this.buttonCancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked);
190
this.install_btn.Clicked += new System.EventHandler(this.OnInstallBtnClicked);