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

Last change on this file since 2872 was 2872, checked in by Sam Hocevar, 14 years ago

Start playing with scrolling widgets in Pimp.

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