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

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

ThePimp?: add Fullscreen support, including the F11 binding.

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