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

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

Reorganise ThePimp? and pipi-sharp, adding a test program and allowing to
build using the autotools.

File size: 14.5 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.ScrolledWindow scrolledwindow1;
82   
83    private Gtk.Label label1;
84   
85    private Gtk.VPaned vpaned1;
86   
87    private Gtk.VBox vbox2;
88   
89    private Gtk.Label label2;
90   
91    private Gtk.VBox vbox3;
92   
93    private Gtk.Label label3;
94   
95    private Gtk.Statusbar statusbar1;
96   
97    protected virtual void Build() {
98        Stetic.Gui.Initialize(this);
99        // Widget MainWindow
100        Gtk.UIManager w1 = new Gtk.UIManager();
101        Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
102        this.newAction = new Gtk.Action("newAction", null, null, "gtk-new");
103        this.newAction.Sensitive = false;
104        w2.Add(this.newAction, null);
105        this.openAction = new Gtk.Action("openAction", null, null, "gtk-open");
106        w2.Add(this.openAction, null);
107        this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save");
108        this.saveAction.Sensitive = false;
109        w2.Add(this.saveAction, null);
110        this.Action = new Gtk.Action("Action", null, null, null);
111        w2.Add(this.Action, null);
112        this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
113        this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
114        w2.Add(this.FileAction, null);
115        this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null);
116        this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
117        w2.Add(this.EditAction, null);
118        this.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("View"), null, null);
119        this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("View");
120        w2.Add(this.ViewAction, null);
121        this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
122        this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
123        w2.Add(this.HelpAction, null);
124        this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New"), null, "gtk-new");
125        this.NewAction.Sensitive = false;
126        this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_New");
127        w2.Add(this.NewAction, null);
128        this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open");
129        this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open");
130        w2.Add(this.OpenAction, null);
131        this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save");
132        this.SaveAction.Sensitive = false;
133        this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save");
134        w2.Add(this.SaveAction, null);
135        this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as");
136        this.SaveAsAction.Sensitive = false;
137        this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As");
138        w2.Add(this.SaveAsAction, null);
139        this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
140        this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
141        w2.Add(this.QuitAction, null);
142        this.HelpAction1 = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("_Help"), null, "gtk-help");
143        this.HelpAction1.Sensitive = false;
144        this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
145        w2.Add(this.HelpAction1, null);
146        this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
147        this.AboutAction.Sensitive = false;
148        this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("_About");
149        w2.Add(this.AboutAction, null);
150        this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Undo"), null, "gtk-undo");
151        this.UndoAction.Sensitive = false;
152        this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Undo");
153        w2.Add(this.UndoAction, null);
154        this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Redo"), null, "gtk-redo");
155        this.RedoAction.Sensitive = false;
156        this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Redo");
157        w2.Add(this.RedoAction, null);
158        this.BestFitAction = new Gtk.Action("BestFitAction", Mono.Unix.Catalog.GetString("Best _Fit"), null, "gtk-zoom-fit");
159        this.BestFitAction.Sensitive = false;
160        this.BestFitAction.ShortLabel = Mono.Unix.Catalog.GetString("Best _Fit");
161        w2.Add(this.BestFitAction, null);
162        this.NormalSizeAction = new Gtk.Action("NormalSizeAction", Mono.Unix.Catalog.GetString("_Normal Size"), null, "gtk-zoom-100");
163        this.NormalSizeAction.Sensitive = false;
164        this.NormalSizeAction.ShortLabel = Mono.Unix.Catalog.GetString("_Normal Size");
165        w2.Add(this.NormalSizeAction, null);
166        this.ZoomOutAction = new Gtk.Action("ZoomOutAction", Mono.Unix.Catalog.GetString("Zoom _Out"), null, "gtk-zoom-out");
167        this.ZoomOutAction.Sensitive = false;
168        this.ZoomOutAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _Out");
169        w2.Add(this.ZoomOutAction, null);
170        this.ZoomInAction = new Gtk.Action("ZoomInAction", Mono.Unix.Catalog.GetString("Zoom _In"), null, "gtk-zoom-in");
171        this.ZoomInAction.Sensitive = false;
172        this.ZoomInAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _In");
173        w2.Add(this.ZoomInAction, null);
174        this.undoAction = new Gtk.Action("undoAction", null, null, "gtk-undo");
175        this.undoAction.Sensitive = false;
176        w2.Add(this.undoAction, null);
177        this.redoAction = new Gtk.Action("redoAction", null, null, "gtk-redo");
178        this.redoAction.Sensitive = false;
179        w2.Add(this.redoAction, null);
180        this.zoom100Action = new Gtk.Action("zoom100Action", null, null, "gtk-zoom-100");
181        this.zoom100Action.Sensitive = false;
182        w2.Add(this.zoom100Action, null);
183        this.zoomFitAction = new Gtk.Action("zoomFitAction", null, null, "gtk-zoom-fit");
184        this.zoomFitAction.Sensitive = false;
185        w2.Add(this.zoomFitAction, null);
186        this.zoomOutAction = new Gtk.Action("zoomOutAction", null, null, "gtk-zoom-out");
187        this.zoomOutAction.Sensitive = false;
188        w2.Add(this.zoomOutAction, null);
189        this.zoomInAction = new Gtk.Action("zoomInAction", null, null, "gtk-zoom-in");
190        this.zoomInAction.Sensitive = false;
191        w2.Add(this.zoomInAction, null);
192        this.helpAction = new Gtk.Action("helpAction", null, null, "gtk-help");
193        this.helpAction.Sensitive = false;
194        w2.Add(this.helpAction, null);
195        w1.InsertActionGroup(w2, 0);
196        this.AddAccelGroup(w1.AccelGroup);
197        this.Name = "MainWindow";
198        this.Title = Mono.Unix.Catalog.GetString("The Pimp");
199        this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_image", Gtk.IconSize.Menu, 16);
200        this.WindowPosition = ((Gtk.WindowPosition)(4));
201        // Container child MainWindow.Gtk.Container+ContainerChild
202        this.vbox1 = new Gtk.VBox();
203        this.vbox1.Name = "vbox1";
204        // Container child vbox1.Gtk.Box+BoxChild
205        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>");
206        this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
207        this.menubar1.Name = "menubar1";
208        this.vbox1.Add(this.menubar1);
209        Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
210        w3.Position = 0;
211        w3.Expand = false;
212        w3.Fill = false;
213        // Container child vbox1.Gtk.Box+BoxChild
214        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>");
215        this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
216        this.toolbar1.Name = "toolbar1";
217        this.toolbar1.ShowArrow = false;
218        this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
219        this.vbox1.Add(this.toolbar1);
220        Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
221        w4.Position = 1;
222        w4.Expand = false;
223        w4.Fill = false;
224        // Container child vbox1.Gtk.Box+BoxChild
225        this.hpaned1 = new Gtk.HPaned();
226        this.hpaned1.CanFocus = true;
227        this.hpaned1.Name = "hpaned1";
228        this.hpaned1.Position = 408;
229        // Container child hpaned1.Gtk.Paned+PanedChild
230        this.notebook1 = new Gtk.Notebook();
231        this.notebook1.CanFocus = true;
232        this.notebook1.Name = "notebook1";
233        this.notebook1.CurrentPage = 0;
234        this.notebook1.BorderWidth = ((uint)(5));
235        // Container child notebook1.Gtk.Notebook+NotebookChild
236        this.scrolledwindow1 = new Gtk.ScrolledWindow();
237        this.scrolledwindow1.WidthRequest = 640;
238        this.scrolledwindow1.HeightRequest = 480;
239        this.scrolledwindow1.CanFocus = true;
240        this.scrolledwindow1.Name = "scrolledwindow1";
241        this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
242        this.notebook1.Add(this.scrolledwindow1);
243        // Notebook tab
244        this.label1 = new Gtk.Label();
245        this.label1.Name = "label1";
246        this.label1.LabelProp = Mono.Unix.Catalog.GetString("Test tab");
247        this.notebook1.SetTabLabel(this.scrolledwindow1, this.label1);
248        this.label1.ShowAll();
249        this.hpaned1.Add(this.notebook1);
250        Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.notebook1]));
251        w6.Resize = false;
252        // Container child hpaned1.Gtk.Paned+PanedChild
253        this.vpaned1 = new Gtk.VPaned();
254        this.vpaned1.CanFocus = true;
255        this.vpaned1.Name = "vpaned1";
256        this.vpaned1.Position = 60;
257        // Container child vpaned1.Gtk.Paned+PanedChild
258        this.vbox2 = new Gtk.VBox();
259        this.vbox2.Name = "vbox2";
260        this.vbox2.BorderWidth = ((uint)(5));
261        // Container child vbox2.Gtk.Box+BoxChild
262        this.label2 = new Gtk.Label();
263        this.label2.WidthRequest = 100;
264        this.label2.Name = "label2";
265        this.label2.LabelProp = Mono.Unix.Catalog.GetString("Tools");
266        this.vbox2.Add(this.label2);
267        Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
268        w7.Position = 0;
269        w7.Expand = false;
270        w7.Fill = false;
271        this.vpaned1.Add(this.vbox2);
272        Gtk.Paned.PanedChild w8 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.vbox2]));
273        w8.Resize = false;
274        // Container child vpaned1.Gtk.Paned+PanedChild
275        this.vbox3 = new Gtk.VBox();
276        this.vbox3.Name = "vbox3";
277        this.vbox3.BorderWidth = ((uint)(5));
278        // Container child vbox3.Gtk.Box+BoxChild
279        this.label3 = new Gtk.Label();
280        this.label3.WidthRequest = 100;
281        this.label3.Name = "label3";
282        this.label3.LabelProp = Mono.Unix.Catalog.GetString("Layers & Channels");
283        this.vbox3.Add(this.label3);
284        Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox3[this.label3]));
285        w9.Position = 0;
286        w9.Expand = false;
287        w9.Fill = false;
288        this.vpaned1.Add(this.vbox3);
289        this.hpaned1.Add(this.vpaned1);
290        this.vbox1.Add(this.hpaned1);
291        Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
292        w12.Position = 2;
293        // Container child vbox1.Gtk.Box+BoxChild
294        this.statusbar1 = new Gtk.Statusbar();
295        this.statusbar1.Name = "statusbar1";
296        this.statusbar1.Spacing = 6;
297        this.vbox1.Add(this.statusbar1);
298        Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
299        w13.Position = 3;
300        w13.Expand = false;
301        w13.Fill = false;
302        this.Add(this.vbox1);
303        if ((this.Child != null)) {
304            this.Child.ShowAll();
305        }
306        this.DefaultWidth = 840;
307        this.DefaultHeight = 680;
308        this.Show();
309        this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
310        this.openAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
311        this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
312        this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
313    }
314}
Note: See TracBrowser for help on using the repository browser.