|
|
@@ -69,6 +69,8 @@ namespace ThePimp { |
|
|
|
|
|
|
|
private Gtk.Action saveAsAction; |
|
|
|
|
|
|
|
private Gtk.Action FullscreenAction; |
|
|
|
|
|
|
|
private Gtk.VBox vbox1; |
|
|
|
|
|
|
|
private Gtk.MenuBar menubar1; |
|
|
@@ -181,6 +183,9 @@ namespace ThePimp { |
|
|
|
w2.Add(this.helpAction, null); |
|
|
|
this.saveAsAction = new Gtk.Action("saveAsAction", null, Mono.Unix.Catalog.GetString("Save active image "), "gtk-save-as"); |
|
|
|
w2.Add(this.saveAsAction, null); |
|
|
|
this.FullscreenAction = new Gtk.Action("FullscreenAction", Mono.Unix.Catalog.GetString("Fullscreen"), null, "gtk-fullscreen"); |
|
|
|
this.FullscreenAction.ShortLabel = Mono.Unix.Catalog.GetString("Fullscreen"); |
|
|
|
w2.Add(this.FullscreenAction, null); |
|
|
|
w1.InsertActionGroup(w2, 0); |
|
|
|
this.AddAccelGroup(w1.AccelGroup); |
|
|
|
this.Name = "ThePimp.MainWindow"; |
|
|
@@ -191,7 +196,7 @@ namespace ThePimp { |
|
|
|
this.vbox1 = new Gtk.VBox(); |
|
|
|
this.vbox1.Name = "vbox1"; |
|
|
|
// Container child vbox1.Gtk.Box+BoxChild |
|
|
|
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>"); |
|
|
|
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>"); |
|
|
|
this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1"))); |
|
|
|
this.menubar1.Name = "menubar1"; |
|
|
|
this.vbox1.Add(this.menubar1); |
|
|
@@ -219,7 +224,7 @@ namespace ThePimp { |
|
|
|
this.vpaned1 = new Gtk.VPaned(); |
|
|
|
this.vpaned1.CanFocus = true; |
|
|
|
this.vpaned1.Name = "vpaned1"; |
|
|
|
this.vpaned1.Position = 42; |
|
|
|
this.vpaned1.Position = 41; |
|
|
|
this.hpaned1.Add(this.vpaned1); |
|
|
|
Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vpaned1])); |
|
|
|
w5.Resize = false; |
|
|
@@ -227,7 +232,7 @@ namespace ThePimp { |
|
|
|
this.hpaned2 = new Gtk.HPaned(); |
|
|
|
this.hpaned2.CanFocus = true; |
|
|
|
this.hpaned2.Name = "hpaned2"; |
|
|
|
this.hpaned2.Position = 883; |
|
|
|
this.hpaned2.Position = 886; |
|
|
|
// Container child hpaned2.Gtk.Paned+PanedChild |
|
|
|
this.notebook1 = new Gtk.Notebook(); |
|
|
|
this.notebook1.CanFocus = true; |
|
|
@@ -241,7 +246,7 @@ namespace ThePimp { |
|
|
|
this.vpaned2 = new Gtk.VPaned(); |
|
|
|
this.vpaned2.CanFocus = true; |
|
|
|
this.vpaned2.Name = "vpaned2"; |
|
|
|
this.vpaned2.Position = 42; |
|
|
|
this.vpaned2.Position = 41; |
|
|
|
this.hpaned2.Add(this.vpaned2); |
|
|
|
Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vpaned2])); |
|
|
|
w7.Resize = false; |
|
|
@@ -277,6 +282,7 @@ namespace ThePimp { |
|
|
|
this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated); |
|
|
|
this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated); |
|
|
|
this.saveAsAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated); |
|
|
|
this.FullscreenAction.Activated += new System.EventHandler(this.OnFullscreenActionActivated); |
|
|
|
} |
|
|
|
} |
|
|
|
} |