~palango/guru/main

« back to all changes in this revision

Viewing changes to Guru/gtk-gui/Guru.MainWindow.cs

  • Committer: Paul Lange
  • Date: 2009-03-01 23:21:25 UTC
  • Revision ID: palango@gmx.de-20090301232125-4orxe7l1luv5wz2d
Initial import

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 Guru {
 
12
    
 
13
    
 
14
    public partial class MainWindow {
 
15
        
 
16
        private Gtk.UIManager UIManager;
 
17
        
 
18
        private Gtk.Action VocabularyAction;
 
19
        
 
20
        private Gtk.Action HelpAction;
 
21
        
 
22
        private Gtk.Action InfoAction;
 
23
        
 
24
        private Gtk.Action StartTestAction;
 
25
        
 
26
        private Gtk.Action QuitAction;
 
27
        
 
28
        private Gtk.VBox vbox1;
 
29
        
 
30
        private Gtk.MenuBar menu_bar;
 
31
        
 
32
        private Gtk.Notebook notebook;
 
33
        
 
34
        private Gtk.VBox vbox3;
 
35
        
 
36
        private Gtk.Frame frame1;
 
37
        
 
38
        private Gtk.Alignment GtkAlignment4;
 
39
        
 
40
        private Guru.QueryWidget query_widget;
 
41
        
 
42
        private Gtk.Label GtkLabel8;
 
43
        
 
44
        private Gtk.Expander expander2;
 
45
        
 
46
        private Guru.CatalogChooserWidget catalog_chooser;
 
47
        
 
48
        private Gtk.Label GtkLabel10;
 
49
        
 
50
        private Gtk.Label test1;
 
51
        
 
52
        private Guru.CatalogEditorWidget catalog_editor;
 
53
        
 
54
        private Gtk.Label label2;
 
55
        
 
56
        protected virtual void Build() {
 
57
            Stetic.Gui.Initialize(this);
 
58
            // Widget Guru.MainWindow
 
59
            this.UIManager = new Gtk.UIManager();
 
60
            Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
 
61
            this.VocabularyAction = new Gtk.Action("VocabularyAction", Mono.Unix.Catalog.GetString("_Vocabulary"), null, null);
 
62
            this.VocabularyAction.ShortLabel = Mono.Unix.Catalog.GetString("_Vocabulary");
 
63
            w1.Add(this.VocabularyAction, null);
 
64
            this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("_Help"), null, null);
 
65
            this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
 
66
            w1.Add(this.HelpAction, null);
 
67
            this.InfoAction = new Gtk.Action("InfoAction", Mono.Unix.Catalog.GetString("_Info"), null, "gtk-about");
 
68
            this.InfoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Info");
 
69
            w1.Add(this.InfoAction, null);
 
70
            this.StartTestAction = new Gtk.Action("StartTestAction", Mono.Unix.Catalog.GetString("_Start Test"), null, "gtk-media-play");
 
71
            this.StartTestAction.ShortLabel = Mono.Unix.Catalog.GetString("_Start Test");
 
72
            w1.Add(this.StartTestAction, null);
 
73
            this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
 
74
            this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
 
75
            w1.Add(this.QuitAction, null);
 
76
            this.UIManager.InsertActionGroup(w1, 0);
 
77
            this.AddAccelGroup(this.UIManager.AccelGroup);
 
78
            this.Name = "Guru.MainWindow";
 
79
            this.Title = Mono.Unix.Catalog.GetString("Guru");
 
80
            this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Menu, 16);
 
81
            this.WindowPosition = ((Gtk.WindowPosition)(4));
 
82
            // Container child Guru.MainWindow.Gtk.Container+ContainerChild
 
83
            this.vbox1 = new Gtk.VBox();
 
84
            this.vbox1.Name = "vbox1";
 
85
            this.vbox1.Spacing = 6;
 
86
            // Container child vbox1.Gtk.Box+BoxChild
 
87
            this.UIManager.AddUiFromString("<ui><menubar name='menu_bar'><menu name='VocabularyAction' action='VocabularyAction'><menuitem name='StartTestAction' action='StartTestAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='InfoAction' action='InfoAction'/></menu></menubar></ui>");
 
88
            this.menu_bar = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menu_bar")));
 
89
            this.menu_bar.Name = "menu_bar";
 
90
            this.vbox1.Add(this.menu_bar);
 
91
            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menu_bar]));
 
92
            w2.Position = 0;
 
93
            w2.Expand = false;
 
94
            w2.Fill = false;
 
95
            // Container child vbox1.Gtk.Box+BoxChild
 
96
            this.notebook = new Gtk.Notebook();
 
97
            this.notebook.CanFocus = true;
 
98
            this.notebook.Name = "notebook";
 
99
            this.notebook.CurrentPage = 0;
 
100
            // Container child notebook.Gtk.Notebook+NotebookChild
 
101
            this.vbox3 = new Gtk.VBox();
 
102
            this.vbox3.Name = "vbox3";
 
103
            this.vbox3.Spacing = 6;
 
104
            this.vbox3.BorderWidth = ((uint)(6));
 
105
            // Container child vbox3.Gtk.Box+BoxChild
 
106
            this.frame1 = new Gtk.Frame();
 
107
            this.frame1.Name = "frame1";
 
108
            this.frame1.ShadowType = ((Gtk.ShadowType)(0));
 
109
            // Container child frame1.Gtk.Container+ContainerChild
 
110
            this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F);
 
111
            this.GtkAlignment4.Name = "GtkAlignment4";
 
112
            this.GtkAlignment4.LeftPadding = ((uint)(12));
 
113
            // Container child GtkAlignment4.Gtk.Container+ContainerChild
 
114
            this.query_widget = new Guru.QueryWidget();
 
115
            this.query_widget.Events = ((Gdk.EventMask)(256));
 
116
            this.query_widget.Name = "query_widget";
 
117
            this.GtkAlignment4.Add(this.query_widget);
 
118
            this.frame1.Add(this.GtkAlignment4);
 
119
            this.GtkLabel8 = new Gtk.Label();
 
120
            this.GtkLabel8.Name = "GtkLabel8";
 
121
            this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>Query</b>");
 
122
            this.GtkLabel8.UseMarkup = true;
 
123
            this.frame1.LabelWidget = this.GtkLabel8;
 
124
            this.vbox3.Add(this.frame1);
 
125
            Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.frame1]));
 
126
            w5.Position = 0;
 
127
            w5.Expand = false;
 
128
            w5.Fill = false;
 
129
            // Container child vbox3.Gtk.Box+BoxChild
 
130
            this.expander2 = new Gtk.Expander(null);
 
131
            this.expander2.CanFocus = true;
 
132
            this.expander2.Name = "expander2";
 
133
            this.expander2.Expanded = true;
 
134
            // Container child expander2.Gtk.Container+ContainerChild
 
135
            this.catalog_chooser = new Guru.CatalogChooserWidget();
 
136
            this.catalog_chooser.Events = ((Gdk.EventMask)(256));
 
137
            this.catalog_chooser.Name = "catalog_chooser";
 
138
            this.expander2.Add(this.catalog_chooser);
 
139
            this.GtkLabel10 = new Gtk.Label();
 
140
            this.GtkLabel10.Name = "GtkLabel10";
 
141
            this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>Catalogs</b>");
 
142
            this.GtkLabel10.UseMarkup = true;
 
143
            this.GtkLabel10.UseUnderline = true;
 
144
            this.expander2.LabelWidget = this.GtkLabel10;
 
145
            this.vbox3.Add(this.expander2);
 
146
            Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox3[this.expander2]));
 
147
            w7.PackType = ((Gtk.PackType)(1));
 
148
            w7.Position = 1;
 
149
            w7.Expand = false;
 
150
            w7.Fill = false;
 
151
            this.notebook.Add(this.vbox3);
 
152
            // Notebook tab
 
153
            this.test1 = new Gtk.Label();
 
154
            this.test1.Name = "test1";
 
155
            this.test1.LabelProp = Mono.Unix.Catalog.GetString("Learn");
 
156
            this.notebook.SetTabLabel(this.vbox3, this.test1);
 
157
            this.test1.ShowAll();
 
158
            // Container child notebook.Gtk.Notebook+NotebookChild
 
159
            this.catalog_editor = new Guru.CatalogEditorWidget();
 
160
            this.catalog_editor.Events = ((Gdk.EventMask)(256));
 
161
            this.catalog_editor.Name = "catalog_editor";
 
162
            this.notebook.Add(this.catalog_editor);
 
163
            Gtk.Notebook.NotebookChild w9 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.catalog_editor]));
 
164
            w9.Position = 1;
 
165
            // Notebook tab
 
166
            this.label2 = new Gtk.Label();
 
167
            this.label2.Name = "label2";
 
168
            this.label2.LabelProp = Mono.Unix.Catalog.GetString("Edit");
 
169
            this.notebook.SetTabLabel(this.catalog_editor, this.label2);
 
170
            this.label2.ShowAll();
 
171
            this.vbox1.Add(this.notebook);
 
172
            Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook]));
 
173
            w10.Position = 1;
 
174
            this.Add(this.vbox1);
 
175
            if ((this.Child != null)) {
 
176
                this.Child.ShowAll();
 
177
            }
 
178
            this.DefaultWidth = 439;
 
179
            this.DefaultHeight = 360;
 
180
            this.Show();
 
181
            this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 
182
            this.InfoAction.Activated += new System.EventHandler(this.OnInfoActionActivated);
 
183
            this.StartTestAction.Activated += new System.EventHandler(this.OnStartTestActionActivated);
 
184
            this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
 
185
            this.catalog_chooser.EditCatalog += new System.EventHandler<Guru.CatalogChangedEventArgs>(this.OnCatalogChooserEditCatalog);
 
186
        }
 
187
    }
 
188
}