|
|
@@ -92,11 +92,11 @@ namespace ThePimp { |
|
|
|
// Widget ThePimp.MainWindow |
|
|
|
Gtk.UIManager w1 = new Gtk.UIManager(); |
|
|
|
Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); |
|
|
|
this.newAction = new Gtk.Action("newAction", null, null, "gtk-new"); |
|
|
|
this.newAction = new Gtk.Action("newAction", null, Mono.Unix.Catalog.GetString("Create a new image"), "gtk-new"); |
|
|
|
w2.Add(this.newAction, null); |
|
|
|
this.openAction = new Gtk.Action("openAction", null, null, "gtk-open"); |
|
|
|
this.openAction = new Gtk.Action("openAction", null, Mono.Unix.Catalog.GetString("Open an image"), "gtk-open"); |
|
|
|
w2.Add(this.openAction, null); |
|
|
|
this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save"); |
|
|
|
this.saveAction = new Gtk.Action("saveAction", null, Mono.Unix.Catalog.GetString("Save active image"), "gtk-save"); |
|
|
|
this.saveAction.Sensitive = false; |
|
|
|
w2.Add(this.saveAction, null); |
|
|
|
this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null); |
|
|
@@ -111,17 +111,17 @@ namespace ThePimp { |
|
|
|
this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null); |
|
|
|
this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); |
|
|
|
w2.Add(this.HelpAction, null); |
|
|
|
this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New"), null, "gtk-new"); |
|
|
|
this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New..."), null, "gtk-new"); |
|
|
|
this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_New"); |
|
|
|
w2.Add(this.NewAction, null); |
|
|
|
this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open"); |
|
|
|
this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open"); |
|
|
|
this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open"); |
|
|
|
w2.Add(this.OpenAction, null); |
|
|
|
this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save"); |
|
|
|
this.SaveAction.Sensitive = false; |
|
|
|
this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save"); |
|
|
|
w2.Add(this.SaveAction, null); |
|
|
|
this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as"); |
|
|
|
this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As..."), null, "gtk-save-as"); |
|
|
|
this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As"); |
|
|
|
w2.Add(this.SaveAsAction, null); |
|
|
|
this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit"); |
|
|
@@ -158,10 +158,10 @@ namespace ThePimp { |
|
|
|
this.ZoomInAction.Sensitive = false; |
|
|
|
this.ZoomInAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _In"); |
|
|
|
w2.Add(this.ZoomInAction, null); |
|
|
|
this.undoAction = new Gtk.Action("undoAction", null, null, "gtk-undo"); |
|
|
|
this.undoAction = new Gtk.Action("undoAction", null, Mono.Unix.Catalog.GetString("Undo action"), "gtk-undo"); |
|
|
|
this.undoAction.Sensitive = false; |
|
|
|
w2.Add(this.undoAction, null); |
|
|
|
this.redoAction = new Gtk.Action("redoAction", null, null, "gtk-redo"); |
|
|
|
this.redoAction = new Gtk.Action("redoAction", null, Mono.Unix.Catalog.GetString("Redo action"), "gtk-redo"); |
|
|
|
this.redoAction.Sensitive = false; |
|
|
|
w2.Add(this.redoAction, null); |
|
|
|
this.zoom100Action = new Gtk.Action("zoom100Action", null, null, "gtk-zoom-100"); |
|
|
@@ -179,7 +179,7 @@ namespace ThePimp { |
|
|
|
this.helpAction = new Gtk.Action("helpAction", null, null, "gtk-help"); |
|
|
|
this.helpAction.Sensitive = false; |
|
|
|
w2.Add(this.helpAction, null); |
|
|
|
this.saveAsAction = new Gtk.Action("saveAsAction", null, null, "gtk-save-as"); |
|
|
|
this.saveAsAction = new Gtk.Action("saveAsAction", null, Mono.Unix.Catalog.GetString("Save active image "), "gtk-save-as"); |
|
|
|
w2.Add(this.saveAsAction, null); |
|
|
|
w1.InsertActionGroup(w2, 0); |
|
|
|
this.AddAccelGroup(w1.AccelGroup); |
|
|
@@ -200,7 +200,7 @@ namespace ThePimp { |
|
|
|
w3.Expand = false; |
|
|
|
w3.Fill = false; |
|
|
|
// Container child vbox1.Gtk.Box+BoxChild |
|
|
|
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>"); |
|
|
|
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>"); |
|
|
|
this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1"))); |
|
|
|
this.toolbar1.Name = "toolbar1"; |
|
|
|
this.toolbar1.ShowArrow = false; |
|
|
|