~do-win/do/test-paths

« back to all changes in this revision

Viewing changes to Do/gtk-gui/Do.UI.DoAddinInstallerDialog.cs

  • Committer: Hardeep S
  • Date: 2009-06-23 05:57:47 UTC
  • Revision ID: ootz0rz@gmail.com-20090623055747-3srobsuq3q8wbn81
initial adding of Do core stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ------------------------------------------------------------------------------
 
2
//  <autogenerated>
 
3
//      This code was generated by a tool.
 
4
//      
 
5
// 
 
6
//      Changes to this file may cause incorrect behavior and will be lost if 
 
7
//      the code is regenerated.
 
8
//  </autogenerated>
 
9
// ------------------------------------------------------------------------------
 
10
 
 
11
namespace Do.UI {
 
12
    
 
13
    
 
14
    public partial class DoAddinInstallerDialog {
 
15
        
 
16
        private Gtk.VBox vbox2;
 
17
        
 
18
        private Gtk.Label addinList;
 
19
        
 
20
        private Gtk.Alignment alignment1;
 
21
        
 
22
        private Gtk.VBox vbox3;
 
23
        
 
24
        private Gtk.ScrolledWindow plugin_scroll;
 
25
        
 
26
        private Gtk.ProgressBar progress_bar;
 
27
        
 
28
        private Gtk.Button button_cancel;
 
29
        
 
30
        private Gtk.Button button_ok;
 
31
        
 
32
        protected virtual void Build() {
 
33
            Stetic.Gui.Initialize(this);
 
34
            // Widget Do.UI.DoAddinInstallerDialog
 
35
            this.Name = "Do.UI.DoAddinInstallerDialog";
 
36
            this.WindowPosition = ((Gtk.WindowPosition)(4));
 
37
            this.HasSeparator = false;
 
38
            // Internal child Do.UI.DoAddinInstallerDialog.VBox
 
39
            Gtk.VBox w1 = this.VBox;
 
40
            w1.Name = "dialog1_VBox";
 
41
            w1.BorderWidth = ((uint)(2));
 
42
            // Container child dialog1_VBox.Gtk.Box+BoxChild
 
43
            this.vbox2 = new Gtk.VBox();
 
44
            this.vbox2.Name = "vbox2";
 
45
            this.vbox2.Spacing = 6;
 
46
            // Container child vbox2.Gtk.Box+BoxChild
 
47
            this.addinList = new Gtk.Label();
 
48
            this.addinList.Name = "addinList";
 
49
            this.addinList.Xpad = 5;
 
50
            this.addinList.Ypad = 3;
 
51
            this.addinList.Xalign = 0F;
 
52
            this.addinList.Yalign = 0F;
 
53
            this.addinList.LabelProp = Mono.Unix.Catalog.GetString("<span size=\"large\"><b>Updated plugins are available!</b></span>");
 
54
            this.addinList.UseMarkup = true;
 
55
            this.vbox2.Add(this.addinList);
 
56
            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.addinList]));
 
57
            w2.Position = 0;
 
58
            w2.Expand = false;
 
59
            w2.Fill = false;
 
60
            // Container child vbox2.Gtk.Box+BoxChild
 
61
            this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
 
62
            this.alignment1.Name = "alignment1";
 
63
            this.alignment1.LeftPadding = ((uint)(12));
 
64
            this.alignment1.TopPadding = ((uint)(12));
 
65
            this.alignment1.RightPadding = ((uint)(12));
 
66
            this.alignment1.BottomPadding = ((uint)(24));
 
67
            // Container child alignment1.Gtk.Container+ContainerChild
 
68
            this.vbox3 = new Gtk.VBox();
 
69
            this.vbox3.Name = "vbox3";
 
70
            this.vbox3.Spacing = 6;
 
71
            // Container child vbox3.Gtk.Box+BoxChild
 
72
            this.plugin_scroll = new Gtk.ScrolledWindow();
 
73
            this.plugin_scroll.CanFocus = true;
 
74
            this.plugin_scroll.Name = "plugin_scroll";
 
75
            this.plugin_scroll.ShadowType = ((Gtk.ShadowType)(1));
 
76
            this.vbox3.Add(this.plugin_scroll);
 
77
            Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.plugin_scroll]));
 
78
            w3.Position = 0;
 
79
            // Container child vbox3.Gtk.Box+BoxChild
 
80
            this.progress_bar = new Gtk.ProgressBar();
 
81
            this.progress_bar.Name = "progress_bar";
 
82
            this.progress_bar.Ellipsize = ((Pango.EllipsizeMode)(2));
 
83
            this.vbox3.Add(this.progress_bar);
 
84
            Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.progress_bar]));
 
85
            w4.Position = 1;
 
86
            w4.Expand = false;
 
87
            w4.Fill = false;
 
88
            this.alignment1.Add(this.vbox3);
 
89
            this.vbox2.Add(this.alignment1);
 
90
            Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.alignment1]));
 
91
            w6.Position = 1;
 
92
            w1.Add(this.vbox2);
 
93
            Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
 
94
            w7.Position = 0;
 
95
            // Internal child Do.UI.DoAddinInstallerDialog.ActionArea
 
96
            Gtk.HButtonBox w8 = this.ActionArea;
 
97
            w8.Name = "dialog1_ActionArea";
 
98
            w8.Spacing = 6;
 
99
            w8.BorderWidth = ((uint)(5));
 
100
            w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
 
101
            // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
 
102
            this.button_cancel = new Gtk.Button();
 
103
            this.button_cancel.CanFocus = true;
 
104
            this.button_cancel.Name = "button_cancel";
 
105
            this.button_cancel.UseStock = true;
 
106
            this.button_cancel.UseUnderline = true;
 
107
            this.button_cancel.Label = "gtk-cancel";
 
108
            this.AddActionWidget(this.button_cancel, -6);
 
109
            Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.button_cancel]));
 
110
            w9.Expand = false;
 
111
            w9.Fill = false;
 
112
            // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
 
113
            this.button_ok = new Gtk.Button();
 
114
            this.button_ok.CanDefault = true;
 
115
            this.button_ok.CanFocus = true;
 
116
            this.button_ok.Name = "button_ok";
 
117
            this.button_ok.UseUnderline = true;
 
118
            // Container child button_ok.Gtk.Container+ContainerChild
 
119
            Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
 
120
            // Container child GtkAlignment1.Gtk.Container+ContainerChild
 
121
            Gtk.HBox w11 = new Gtk.HBox();
 
122
            w11.Spacing = 2;
 
123
            // Container child GtkHBox1.Gtk.Container+ContainerChild
 
124
            Gtk.Image w12 = new Gtk.Image();
 
125
            w12.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-ok", Gtk.IconSize.Button, 16);
 
126
            w11.Add(w12);
 
127
            // Container child GtkHBox1.Gtk.Container+ContainerChild
 
128
            Gtk.Label w14 = new Gtk.Label();
 
129
            w14.LabelProp = Mono.Unix.Catalog.GetString("_Install Updates");
 
130
            w14.UseUnderline = true;
 
131
            w11.Add(w14);
 
132
            w10.Add(w11);
 
133
            this.button_ok.Add(w10);
 
134
            this.AddActionWidget(this.button_ok, -5);
 
135
            Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.button_ok]));
 
136
            w18.Position = 1;
 
137
            w18.Expand = false;
 
138
            w18.Fill = false;
 
139
            if ((this.Child != null)) {
 
140
                this.Child.ShowAll();
 
141
            }
 
142
            this.DefaultWidth = 443;
 
143
            this.DefaultHeight = 463;
 
144
            this.progress_bar.Hide();
 
145
            this.Show();
 
146
            this.button_ok.Clicked += new System.EventHandler(this.OnButtonOKClick);
 
147
        }
 
148
    }
 
149
}