~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/mono-addins/Samples/TextEditor/TextEditorLib/gtk-gui/MainWindow.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
// This file has been generated by the GUI designer. Do not modify.
 
3
 
 
4
public partial class MainWindow
 
5
{
 
6
        private global::Gtk.UIManager UIManager;
 
7
        private global::Gtk.VBox vbox2;
 
8
        private global::Gtk.MenuBar menubar;
 
9
        private global::Gtk.Toolbar toolbar;
 
10
        private global::Gtk.ScrolledWindow scrolledwindow1;
 
11
        private global::Gtk.TextView textview;
 
12
        private global::Gtk.VBox console;
 
13
        private global::Gtk.HBox hbox1;
 
14
        private global::Gtk.Label label1;
 
15
        private global::Gtk.Button button1;
 
16
        private global::Gtk.ScrolledWindow scrolledwindow2;
 
17
        private global::Gtk.TextView consoleView;
 
18
        private global::Gtk.Statusbar statusbar1;
 
19
 
 
20
        protected virtual void Build ()
 
21
        {
 
22
                global::Stetic.Gui.Initialize (this);
 
23
                // Widget MainWindow
 
24
                this.UIManager = new global::Gtk.UIManager ();
 
25
                global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default");
 
26
                this.UIManager.InsertActionGroup (w1, 0);
 
27
                this.AddAccelGroup (this.UIManager.AccelGroup);
 
28
                this.Name = "MainWindow";
 
29
                this.Title = global::Mono.Unix.Catalog.GetString ("Text Editor");
 
30
                // Container child MainWindow.Gtk.Container+ContainerChild
 
31
                this.vbox2 = new global::Gtk.VBox ();
 
32
                this.vbox2.Name = "vbox2";
 
33
                // Container child vbox2.Gtk.Box+BoxChild
 
34
                this.UIManager.AddUiFromString ("<ui><menubar name='menubar'/></ui>");
 
35
                this.menubar = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/menubar")));
 
36
                this.menubar.Name = "menubar";
 
37
                this.vbox2.Add (this.menubar);
 
38
                global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.menubar]));
 
39
                w2.Position = 0;
 
40
                w2.Expand = false;
 
41
                w2.Fill = false;
 
42
                // Container child vbox2.Gtk.Box+BoxChild
 
43
                this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar'/></ui>");
 
44
                this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar")));
 
45
                this.toolbar.Name = "toolbar";
 
46
                this.toolbar.ShowArrow = false;
 
47
                this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0));
 
48
                this.toolbar.IconSize = ((global::Gtk.IconSize)(3));
 
49
                this.vbox2.Add (this.toolbar);
 
50
                global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.toolbar]));
 
51
                w3.Position = 1;
 
52
                w3.Expand = false;
 
53
                w3.Fill = false;
 
54
                // Container child vbox2.Gtk.Box+BoxChild
 
55
                this.scrolledwindow1 = new global::Gtk.ScrolledWindow ();
 
56
                this.scrolledwindow1.CanFocus = true;
 
57
                this.scrolledwindow1.Name = "scrolledwindow1";
 
58
                this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
 
59
                // Container child scrolledwindow1.Gtk.Container+ContainerChild
 
60
                this.textview = new global::Gtk.TextView ();
 
61
                this.textview.CanFocus = true;
 
62
                this.textview.Name = "textview";
 
63
                this.scrolledwindow1.Add (this.textview);
 
64
                this.vbox2.Add (this.scrolledwindow1);
 
65
                global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.scrolledwindow1]));
 
66
                w5.Position = 2;
 
67
                // Container child vbox2.Gtk.Box+BoxChild
 
68
                this.console = new global::Gtk.VBox ();
 
69
                this.console.Name = "console";
 
70
                this.console.Spacing = 6;
 
71
                this.console.BorderWidth = ((uint)(6));
 
72
                // Container child console.Gtk.Box+BoxChild
 
73
                this.hbox1 = new global::Gtk.HBox ();
 
74
                this.hbox1.Name = "hbox1";
 
75
                // Container child hbox1.Gtk.Box+BoxChild
 
76
                this.label1 = new global::Gtk.Label ();
 
77
                this.label1.Name = "label1";
 
78
                this.label1.Xalign = 0F;
 
79
                this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("Console");
 
80
                this.hbox1.Add (this.label1);
 
81
                global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label1]));
 
82
                w6.Position = 0;
 
83
                w6.Expand = false;
 
84
                w6.Fill = false;
 
85
                // Container child hbox1.Gtk.Box+BoxChild
 
86
                this.button1 = new global::Gtk.Button ();
 
87
                this.button1.WidthRequest = 27;
 
88
                this.button1.HeightRequest = 20;
 
89
                this.button1.Name = "button1";
 
90
                this.button1.UseUnderline = true;
 
91
                this.button1.Relief = ((global::Gtk.ReliefStyle)(2));
 
92
                // Container child button1.Gtk.Container+ContainerChild
 
93
                global::Gtk.Alignment w7 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F);
 
94
                // Container child GtkAlignment.Gtk.Container+ContainerChild
 
95
                global::Gtk.HBox w8 = new global::Gtk.HBox ();
 
96
                w8.Spacing = 2;
 
97
                // Container child GtkHBox.Gtk.Container+ContainerChild
 
98
                global::Gtk.Image w9 = new global::Gtk.Image ();
 
99
                w9.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-close", global::Gtk.IconSize.Menu);
 
100
                w8.Add (w9);
 
101
                // Container child GtkHBox.Gtk.Container+ContainerChild
 
102
                global::Gtk.Label w11 = new global::Gtk.Label ();
 
103
                w8.Add (w11);
 
104
                w7.Add (w8);
 
105
                this.button1.Add (w7);
 
106
                this.hbox1.Add (this.button1);
 
107
                global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.button1]));
 
108
                w15.PackType = ((global::Gtk.PackType)(1));
 
109
                w15.Position = 1;
 
110
                w15.Expand = false;
 
111
                w15.Fill = false;
 
112
                this.console.Add (this.hbox1);
 
113
                global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.console [this.hbox1]));
 
114
                w16.Position = 0;
 
115
                w16.Expand = false;
 
116
                w16.Fill = false;
 
117
                // Container child console.Gtk.Box+BoxChild
 
118
                this.scrolledwindow2 = new global::Gtk.ScrolledWindow ();
 
119
                this.scrolledwindow2.CanFocus = true;
 
120
                this.scrolledwindow2.Name = "scrolledwindow2";
 
121
                this.scrolledwindow2.ShadowType = ((global::Gtk.ShadowType)(1));
 
122
                // Container child scrolledwindow2.Gtk.Container+ContainerChild
 
123
                this.consoleView = new global::Gtk.TextView ();
 
124
                this.consoleView.CanFocus = true;
 
125
                this.consoleView.Name = "consoleView";
 
126
                this.scrolledwindow2.Add (this.consoleView);
 
127
                this.console.Add (this.scrolledwindow2);
 
128
                global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.console [this.scrolledwindow2]));
 
129
                w18.Position = 1;
 
130
                this.vbox2.Add (this.console);
 
131
                global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.console]));
 
132
                w19.Position = 3;
 
133
                w19.Expand = false;
 
134
                w19.Fill = false;
 
135
                // Container child vbox2.Gtk.Box+BoxChild
 
136
                this.statusbar1 = new global::Gtk.Statusbar ();
 
137
                this.statusbar1.Name = "statusbar1";
 
138
                this.statusbar1.Spacing = 2;
 
139
                this.vbox2.Add (this.statusbar1);
 
140
                global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.statusbar1]));
 
141
                w20.Position = 4;
 
142
                w20.Expand = false;
 
143
                w20.Fill = false;
 
144
                this.Add (this.vbox2);
 
145
                if ((this.Child != null)) {
 
146
                        this.Child.ShowAll ();
 
147
                }
 
148
                this.DefaultWidth = 586;
 
149
                this.DefaultHeight = 356;
 
150
                this.Show ();
 
151
                this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent);
 
152
                this.button1.Clicked += new global::System.EventHandler (this.OnButton1Clicked);
 
153
        }
 
154
}