~and471/+junk/do-with-docky

285 by David Siegel
Factored preferences -- each preference page is contained in its own file now.
1
// ------------------------------------------------------------------------------
2
//  <autogenerated>
3
//      This code was generated by a tool.
884.1.3 by David Siegel
Format compositing warning a bit.
4
//      
285 by David Siegel
Factored preferences -- each preference page is contained in its own file now.
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 KeybindingsPreferencesWidget {
15
        
333 by Alex Launi
pre-merge
16
        private Gtk.VBox vbox2;
17
        
18
        private Gtk.ScrolledWindow action_scroll;
19
        
347 by Alex Launi
Make entire row clickable in Keybinding prefs
20
        private Gtk.HBox hbox1;
333 by Alex Launi
pre-merge
21
        
22
        private Gtk.Image help_icn;
23
        
24
        private Gtk.Label help_lbl;
285 by David Siegel
Factored preferences -- each preference page is contained in its own file now.
25
        
26
        protected virtual void Build() {
27
            Stetic.Gui.Initialize(this);
28
            // Widget Do.UI.KeybindingsPreferencesWidget
29
            Stetic.BinContainer.Attach(this);
30
            this.Name = "Do.UI.KeybindingsPreferencesWidget";
31
            // Container child Do.UI.KeybindingsPreferencesWidget.Gtk.Container+ContainerChild
333 by Alex Launi
pre-merge
32
            this.vbox2 = new Gtk.VBox();
33
            this.vbox2.Name = "vbox2";
34
            this.vbox2.Spacing = 6;
350 by David Siegel
Dump icon cache if it reaches a maximum size (50 icons).
35
            this.vbox2.BorderWidth = ((uint)(6));
333 by Alex Launi
pre-merge
36
            // Container child vbox2.Gtk.Box+BoxChild
37
            this.action_scroll = new Gtk.ScrolledWindow();
38
            this.action_scroll.CanFocus = true;
39
            this.action_scroll.Name = "action_scroll";
40
            this.action_scroll.ShadowType = ((Gtk.ShadowType)(1));
41
            this.vbox2.Add(this.action_scroll);
42
            Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.action_scroll]));
285 by David Siegel
Factored preferences -- each preference page is contained in its own file now.
43
            w1.Position = 0;
333 by Alex Launi
pre-merge
44
            // Container child vbox2.Gtk.Box+BoxChild
347 by Alex Launi
Make entire row clickable in Keybinding prefs
45
            this.hbox1 = new Gtk.HBox();
423 by Alex Launi
the beginnings of a much nicer update UI
46
            this.hbox1.Name = "hbox1";
347 by Alex Launi
Make entire row clickable in Keybinding prefs
47
            this.hbox1.Spacing = 6;
48
            // Container child hbox1.Gtk.Box+BoxChild
333 by Alex Launi
pre-merge
49
            this.help_icn = new Gtk.Image();
50
            this.help_icn.Name = "help_icn";
347 by Alex Launi
Make entire row clickable in Keybinding prefs
51
            this.help_icn.Yalign = 0F;
350 by David Siegel
Dump icon cache if it reaches a maximum size (50 icons).
52
            this.help_icn.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Dnd, 32);
347 by Alex Launi
Make entire row clickable in Keybinding prefs
53
            this.hbox1.Add(this.help_icn);
54
            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.help_icn]));
55
            w2.Position = 0;
56
            w2.Expand = false;
1319.1.3 by Alex Launi
Fix build in monodevelop
57
            w2.Fill = false;
347 by Alex Launi
Make entire row clickable in Keybinding prefs
58
            // Container child hbox1.Gtk.Box+BoxChild
333 by Alex Launi
pre-merge
59
            this.help_lbl = new Gtk.Label();
60
            this.help_lbl.Name = "help_lbl";
347 by Alex Launi
Make entire row clickable in Keybinding prefs
61
            this.help_lbl.Ypad = 1;
62
            this.help_lbl.Xalign = 0F;
1319.1.3 by Alex Launi
Fix build in monodevelop
63
            this.help_lbl.LabelProp = Mono.Unix.Catalog.GetString("To edit a shortcut, double-click it and type a new one.\nTo restore a shortcut to the default, double click and press Backspace.");
333 by Alex Launi
pre-merge
64
            this.help_lbl.Wrap = true;
347 by Alex Launi
Make entire row clickable in Keybinding prefs
65
            this.hbox1.Add(this.help_lbl);
66
            Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.help_lbl]));
67
            w3.Position = 1;
350 by David Siegel
Dump icon cache if it reaches a maximum size (50 icons).
68
            w3.Padding = ((uint)(10));
347 by Alex Launi
Make entire row clickable in Keybinding prefs
69
            this.vbox2.Add(this.hbox1);
70
            Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
333 by Alex Launi
pre-merge
71
            w4.Position = 1;
285 by David Siegel
Factored preferences -- each preference page is contained in its own file now.
72
            w4.Expand = false;
73
            w4.Fill = false;
333 by Alex Launi
pre-merge
74
            w4.Padding = ((uint)(5));
75
            this.Add(this.vbox2);
285 by David Siegel
Factored preferences -- each preference page is contained in its own file now.
76
            if ((this.Child != null)) {
77
                this.Child.ShowAll();
78
            }
79
            this.Show();
80
        }
81
    }
82
}