From 095896c5499278f1a7f1e5de6aeb21f2ea86e8d5 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 13 Oct 2008 22:56:33 +0000 Subject: [PATCH] ThePimp: add tooltips and ellipses here and there in the GUI. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2950 92316355-f0b4-4df1-b90c-862c8a59935f --- ThePimp/gtk-gui/ThePimp.MainWindow.cs | 20 ++++++++++---------- ThePimp/gtk-gui/ThePimp.SaveFile.cs | 2 +- ThePimp/gtk-gui/gui.stetic | 16 +++++++++++----- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/ThePimp/gtk-gui/ThePimp.MainWindow.cs b/ThePimp/gtk-gui/ThePimp.MainWindow.cs index c4d102b..423a5d8 100644 --- a/ThePimp/gtk-gui/ThePimp.MainWindow.cs +++ b/ThePimp/gtk-gui/ThePimp.MainWindow.cs @@ -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(""); + w1.AddUiFromString(""); this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; diff --git a/ThePimp/gtk-gui/ThePimp.SaveFile.cs b/ThePimp/gtk-gui/ThePimp.SaveFile.cs index ef11c54..b5faae9 100644 --- a/ThePimp/gtk-gui/ThePimp.SaveFile.cs +++ b/ThePimp/gtk-gui/ThePimp.SaveFile.cs @@ -32,7 +32,7 @@ namespace ThePimp { w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild - this.filechooserwidget1 = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0))); + this.filechooserwidget1 = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(1))); this.filechooserwidget1.Name = "filechooserwidget1"; w1.Add(this.filechooserwidget1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.filechooserwidget1])); diff --git a/ThePimp/gtk-gui/gui.stetic b/ThePimp/gtk-gui/gui.stetic index eec13d8..3e07412 100644 --- a/ThePimp/gtk-gui/gui.stetic +++ b/ThePimp/gtk-gui/gui.stetic @@ -2,7 +2,7 @@ .. - 2.10.3 + 2.12.1 @@ -13,12 +13,14 @@ Action gtk-new + Create a new image Action gtk-open + Open an image @@ -26,6 +28,7 @@ False gtk-save + Save active image @@ -50,14 +53,14 @@ Action - _New + _New... _New gtk-new Action - _Open + _Open... _Open gtk-open @@ -72,7 +75,7 @@ Action - Save _As + Save _As... Save _As gtk-save-as @@ -145,12 +148,14 @@ False gtk-undo + Undo action Action False gtk-redo + Redo action Action @@ -186,6 +191,7 @@ Action gtk-save-as + Save active image @@ -240,7 +246,6 @@ - @@ -615,6 +620,7 @@ + Save 0