source: libpipi/trunk/ThePimp/gtk-gui/ThePimp.MainWindow.cs @ 2890

Last change on this file since 2890 was 2890, checked in by Sam Hocevar, 12 years ago

ThePimp?: the "New" button now works.

File size: 14.3 KB
Line 
1// ------------------------------------------------------------------------------
2//  <autogenerated>
3//      This code was generated by a tool.
4//      Mono Runtime Version: 2.0.50727.42
5//
6//      Changes to this file may cause incorrect behavior and will be lost if
7//      the code is regenerated.
8//  </autogenerated>
9// ------------------------------------------------------------------------------
10
11namespace ThePimp {
12   
13   
14    public partial class MainWindow {
15       
16        private Gtk.Action newAction;
17       
18        private Gtk.Action openAction;
19       
20        private Gtk.Action saveAction;
21       
22        private Gtk.Action FileAction;
23       
24        private Gtk.Action EditAction;
25       
26        private Gtk.Action ViewAction;
27       
28        private Gtk.Action HelpAction;
29       
30        private Gtk.Action NewAction;
31       
32        private Gtk.Action OpenAction;
33       
34        private Gtk.Action SaveAction;
35       
36        private Gtk.Action SaveAsAction;
37       
38        private Gtk.Action QuitAction;
39       
40        private Gtk.Action HelpAction1;
41       
42        private Gtk.Action AboutAction;
43       
44        private Gtk.Action UndoAction;
45       
46        private Gtk.Action RedoAction;
47       
48        private Gtk.Action BestFitAction;
49       
50        private Gtk.Action NormalSizeAction;
51       
52        private Gtk.Action ZoomOutAction;
53       
54        private Gtk.Action ZoomInAction;
55       
56        private Gtk.Action undoAction;
57       
58        private Gtk.Action redoAction;
59       
60        private Gtk.Action zoom100Action;
61       
62        private Gtk.Action zoomFitAction;
63       
64        private Gtk.Action zoomOutAction;
65       
66        private Gtk.Action zoomInAction;
67       
68        private Gtk.Action helpAction;
69       
70        private Gtk.Action saveAsAction;
71       
72        private Gtk.VBox vbox1;
73       
74        private Gtk.MenuBar menubar1;
75       
76        private Gtk.Toolbar toolbar1;
77       
78        private Gtk.HPaned hpaned1;
79       
80        private Gtk.VPaned vpaned1;
81       
82        private Gtk.HPaned hpaned2;
83       
84        private Gtk.Notebook notebook1;
85       
86        private Gtk.VPaned vpaned2;
87       
88        private Gtk.Statusbar statusbar1;
89       
90        protected virtual void Build() {
91            Stetic.Gui.Initialize(this);
92            // Widget ThePimp.MainWindow
93            Gtk.UIManager w1 = new Gtk.UIManager();
94            Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
95            this.newAction = new Gtk.Action("newAction", null, null, "gtk-new");
96            w2.Add(this.newAction, null);
97            this.openAction = new Gtk.Action("openAction", null, null, "gtk-open");
98            w2.Add(this.openAction, null);
99            this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save");
100            this.saveAction.Sensitive = false;
101            w2.Add(this.saveAction, null);
102            this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
103            this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
104            w2.Add(this.FileAction, null);
105            this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null);
106            this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
107            w2.Add(this.EditAction, null);
108            this.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("View"), null, null);
109            this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("View");
110            w2.Add(this.ViewAction, null);
111            this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
112            this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
113            w2.Add(this.HelpAction, null);
114            this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New"), null, "gtk-new");
115            this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_New");
116            w2.Add(this.NewAction, null);
117            this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open");
118            this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open");
119            w2.Add(this.OpenAction, null);
120            this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save");
121            this.SaveAction.Sensitive = false;
122            this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save");
123            w2.Add(this.SaveAction, null);
124            this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as");
125            this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As");
126            w2.Add(this.SaveAsAction, null);
127            this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
128            this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
129            w2.Add(this.QuitAction, null);
130            this.HelpAction1 = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("_Help"), null, "gtk-help");
131            this.HelpAction1.Sensitive = false;
132            this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
133            w2.Add(this.HelpAction1, null);
134            this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
135            this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("_About");
136            w2.Add(this.AboutAction, null);
137            this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Undo"), null, "gtk-undo");
138            this.UndoAction.Sensitive = false;
139            this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Undo");
140            w2.Add(this.UndoAction, null);
141            this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Redo"), null, "gtk-redo");
142            this.RedoAction.Sensitive = false;
143            this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Redo");
144            w2.Add(this.RedoAction, null);
145            this.BestFitAction = new Gtk.Action("BestFitAction", Mono.Unix.Catalog.GetString("Best _Fit"), null, "gtk-zoom-fit");
146            this.BestFitAction.Sensitive = false;
147            this.BestFitAction.ShortLabel = Mono.Unix.Catalog.GetString("Best _Fit");
148            w2.Add(this.BestFitAction, null);
149            this.NormalSizeAction = new Gtk.Action("NormalSizeAction", Mono.Unix.Catalog.GetString("_Normal Size"), null, "gtk-zoom-100");
150            this.NormalSizeAction.Sensitive = false;
151            this.NormalSizeAction.ShortLabel = Mono.Unix.Catalog.GetString("_Normal Size");
152            w2.Add(this.NormalSizeAction, null);
153            this.ZoomOutAction = new Gtk.Action("ZoomOutAction", Mono.Unix.Catalog.GetString("Zoom _Out"), null, "gtk-zoom-out");
154            this.ZoomOutAction.Sensitive = false;
155            this.ZoomOutAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _Out");
156            w2.Add(this.ZoomOutAction, null);
157            this.ZoomInAction = new Gtk.Action("ZoomInAction", Mono.Unix.Catalog.GetString("Zoom _In"), null, "gtk-zoom-in");
158            this.ZoomInAction.Sensitive = false;
159            this.ZoomInAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _In");
160            w2.Add(this.ZoomInAction, null);
161            this.undoAction = new Gtk.Action("undoAction", null, null, "gtk-undo");
162            this.undoAction.Sensitive = false;
163            w2.Add(this.undoAction, null);
164            this.redoAction = new Gtk.Action("redoAction", null, null, "gtk-redo");
165            this.redoAction.Sensitive = false;
166            w2.Add(this.redoAction, null);
167            this.zoom100Action = new Gtk.Action("zoom100Action", null, null, "gtk-zoom-100");
168            this.zoom100Action.Sensitive = false;
169            w2.Add(this.zoom100Action, null);
170            this.zoomFitAction = new Gtk.Action("zoomFitAction", null, null, "gtk-zoom-fit");
171            this.zoomFitAction.Sensitive = false;
172            w2.Add(this.zoomFitAction, null);
173            this.zoomOutAction = new Gtk.Action("zoomOutAction", null, null, "gtk-zoom-out");
174            this.zoomOutAction.Sensitive = false;
175            w2.Add(this.zoomOutAction, null);
176            this.zoomInAction = new Gtk.Action("zoomInAction", null, null, "gtk-zoom-in");
177            this.zoomInAction.Sensitive = false;
178            w2.Add(this.zoomInAction, null);
179            this.helpAction = new Gtk.Action("helpAction", null, null, "gtk-help");
180            this.helpAction.Sensitive = false;
181            w2.Add(this.helpAction, null);
182            this.saveAsAction = new Gtk.Action("saveAsAction", null, null, "gtk-save-as");
183            w2.Add(this.saveAsAction, null);
184            w1.InsertActionGroup(w2, 0);
185            this.AddAccelGroup(w1.AccelGroup);
186            this.Name = "ThePimp.MainWindow";
187            this.Title = Mono.Unix.Catalog.GetString("The Pimp");
188            this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_image", Gtk.IconSize.Menu, 16);
189            this.WindowPosition = ((Gtk.WindowPosition)(4));
190            // Container child ThePimp.MainWindow.Gtk.Container+ContainerChild
191            this.vbox1 = new Gtk.VBox();
192            this.vbox1.Name = "vbox1";
193            // Container child vbox1.Gtk.Box+BoxChild
194            w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='FileAction'><menuitem action='NewAction'/><menuitem action='OpenAction'/><menuitem action='SaveAction'/><menuitem action='SaveAsAction'/><menuitem action='QuitAction'/></menu><menu action='EditAction'><menuitem action='UndoAction'/><menuitem action='RedoAction'/></menu><menu action='ViewAction'><menuitem action='ZoomInAction'/><menuitem action='ZoomOutAction'/><menuitem action='BestFitAction'/><menuitem action='NormalSizeAction'/></menu><menu action='HelpAction'><menuitem action='HelpAction1'/><menuitem action='AboutAction'/></menu></menubar></ui>");
195            this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
196            this.menubar1.Name = "menubar1";
197            this.vbox1.Add(this.menubar1);
198            Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
199            w3.Position = 0;
200            w3.Expand = false;
201            w3.Fill = false;
202            // Container child vbox1.Gtk.Box+BoxChild
203            w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='newAction'/><toolitem action='openAction'/><toolitem action='saveAction'/><toolitem action='saveAsAction'/><separator/><toolitem action='undoAction'/><toolitem action='redoAction'/><separator/><toolitem action='zoomInAction'/><toolitem action='zoomOutAction'/><toolitem action='zoomFitAction'/><toolitem action='zoom100Action'/><separator/><toolitem action='helpAction'/></toolbar></ui>");
204            this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
205            this.toolbar1.Name = "toolbar1";
206            this.toolbar1.ShowArrow = false;
207            this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
208            this.vbox1.Add(this.toolbar1);
209            Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
210            w4.Position = 1;
211            w4.Expand = false;
212            w4.Fill = false;
213            // Container child vbox1.Gtk.Box+BoxChild
214            this.hpaned1 = new Gtk.HPaned();
215            this.hpaned1.CanFocus = true;
216            this.hpaned1.Name = "hpaned1";
217            this.hpaned1.Position = 27;
218            // Container child hpaned1.Gtk.Paned+PanedChild
219            this.vpaned1 = new Gtk.VPaned();
220            this.vpaned1.CanFocus = true;
221            this.vpaned1.Name = "vpaned1";
222            this.vpaned1.Position = 42;
223            this.hpaned1.Add(this.vpaned1);
224            Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vpaned1]));
225            w5.Resize = false;
226            // Container child hpaned1.Gtk.Paned+PanedChild
227            this.hpaned2 = new Gtk.HPaned();
228            this.hpaned2.CanFocus = true;
229            this.hpaned2.Name = "hpaned2";
230            this.hpaned2.Position = 889;
231            // Container child hpaned2.Gtk.Paned+PanedChild
232            this.notebook1 = new Gtk.Notebook();
233            this.notebook1.CanFocus = true;
234            this.notebook1.Name = "notebook1";
235            this.notebook1.CurrentPage = 0;
236            this.notebook1.BorderWidth = ((uint)(5));
237            this.hpaned2.Add(this.notebook1);
238            Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.notebook1]));
239            w6.Resize = false;
240            // Container child hpaned2.Gtk.Paned+PanedChild
241            this.vpaned2 = new Gtk.VPaned();
242            this.vpaned2.CanFocus = true;
243            this.vpaned2.Name = "vpaned2";
244            this.vpaned2.Position = 42;
245            this.hpaned2.Add(this.vpaned2);
246            Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vpaned2]));
247            w7.Resize = false;
248            w7.Shrink = false;
249            this.hpaned1.Add(this.hpaned2);
250            this.vbox1.Add(this.hpaned1);
251            Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
252            w9.Position = 2;
253            // Container child vbox1.Gtk.Box+BoxChild
254            this.statusbar1 = new Gtk.Statusbar();
255            this.statusbar1.Name = "statusbar1";
256            this.statusbar1.Spacing = 6;
257            this.vbox1.Add(this.statusbar1);
258            Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
259            w10.Position = 3;
260            w10.Expand = false;
261            w10.Fill = false;
262            this.Add(this.vbox1);
263            if ((this.Child != null)) {
264                this.Child.ShowAll();
265            }
266            this.DefaultWidth = 954;
267            this.DefaultHeight = 680;
268            this.Show();
269            this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
270            this.newAction.Activated += new System.EventHandler(this.OnNewActionActivated);
271            this.openAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
272            this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
273            this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
274            this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
275            this.saveAsAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated);
276        }
277    }
278}
Note: See TracBrowser for help on using the repository browser.