Changeset 2950 for libpipi


Ignore:
Timestamp:
Oct 14, 2008, 12:56:33 AM (11 years ago)
Author:
Sam Hocevar
Message:

ThePimp?: add tooltips and ellipses here and there in the GUI.

Location:
libpipi/trunk/ThePimp/gtk-gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/ThePimp/gtk-gui/ThePimp.MainWindow.cs

    r2940 r2950  
    9393            Gtk.UIManager w1 = new Gtk.UIManager();
    9494            Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
    95             this.newAction = new Gtk.Action("newAction", null, null, "gtk-new");
     95            this.newAction = new Gtk.Action("newAction", null, Mono.Unix.Catalog.GetString("Create a new image"), "gtk-new");
    9696            w2.Add(this.newAction, null);
    97             this.openAction = new Gtk.Action("openAction", null, null, "gtk-open");
     97            this.openAction = new Gtk.Action("openAction", null, Mono.Unix.Catalog.GetString("Open an image"), "gtk-open");
    9898            w2.Add(this.openAction, null);
    99             this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save");
     99            this.saveAction = new Gtk.Action("saveAction", null, Mono.Unix.Catalog.GetString("Save active image"), "gtk-save");
    100100            this.saveAction.Sensitive = false;
    101101            w2.Add(this.saveAction, null);
     
    112112            this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
    113113            w2.Add(this.HelpAction, null);
    114             this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New"), null, "gtk-new");
     114            this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New..."), null, "gtk-new");
    115115            this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_New");
    116116            w2.Add(this.NewAction, null);
    117             this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open");
     117            this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open");
    118118            this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open");
    119119            w2.Add(this.OpenAction, null);
     
    122122            this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save");
    123123            w2.Add(this.SaveAction, null);
    124             this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as");
     124            this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As..."), null, "gtk-save-as");
    125125            this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As");
    126126            w2.Add(this.SaveAsAction, null);
     
    159159            this.ZoomInAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _In");
    160160            w2.Add(this.ZoomInAction, null);
    161             this.undoAction = new Gtk.Action("undoAction", null, null, "gtk-undo");
     161            this.undoAction = new Gtk.Action("undoAction", null, Mono.Unix.Catalog.GetString("Undo action"), "gtk-undo");
    162162            this.undoAction.Sensitive = false;
    163163            w2.Add(this.undoAction, null);
    164             this.redoAction = new Gtk.Action("redoAction", null, null, "gtk-redo");
     164            this.redoAction = new Gtk.Action("redoAction", null, Mono.Unix.Catalog.GetString("Redo action"), "gtk-redo");
    165165            this.redoAction.Sensitive = false;
    166166            w2.Add(this.redoAction, null);
     
    180180            this.helpAction.Sensitive = false;
    181181            w2.Add(this.helpAction, null);
    182             this.saveAsAction = new Gtk.Action("saveAsAction", null, null, "gtk-save-as");
     182            this.saveAsAction = new Gtk.Action("saveAsAction", null, Mono.Unix.Catalog.GetString("Save active image "), "gtk-save-as");
    183183            w2.Add(this.saveAsAction, null);
    184184            w1.InsertActionGroup(w2, 0);
     
    201201            w3.Fill = false;
    202202            // Container child vbox1.Gtk.Box+BoxChild
    203             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>");
     203            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>");
    204204            this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
    205205            this.toolbar1.Name = "toolbar1";
  • libpipi/trunk/ThePimp/gtk-gui/ThePimp.SaveFile.cs

    r2875 r2950  
    3333            w1.BorderWidth = ((uint)(2));
    3434            // Container child dialog1_VBox.Gtk.Box+BoxChild
    35             this.filechooserwidget1 = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0)));
     35            this.filechooserwidget1 = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(1)));
    3636            this.filechooserwidget1.Name = "filechooserwidget1";
    3737            w1.Add(this.filechooserwidget1);
  • libpipi/trunk/ThePimp/gtk-gui/gui.stetic

    r2948 r2950  
    33  <configuration>
    44    <images-root-path>..</images-root-path>
    5     <target-gtk-version>2.10.3</target-gtk-version>
     5    <target-gtk-version>2.12.1</target-gtk-version>
    66  </configuration>
    77  <import>
     
    1414        <property name="Label" translatable="yes" />
    1515        <property name="StockId">gtk-new</property>
     16        <property name="Tooltip" translatable="yes">Create a new image</property>
    1617        <signal name="Activated" handler="OnNewActionActivated" />
    1718      </action>
     
    2021        <property name="Label" translatable="yes" />
    2122        <property name="StockId">gtk-open</property>
     23        <property name="Tooltip" translatable="yes">Open an image</property>
    2224        <signal name="Activated" handler="OnOpenActionActivated" />
    2325      </action>
     
    2729        <property name="Sensitive">False</property>
    2830        <property name="StockId">gtk-save</property>
     31        <property name="Tooltip" translatable="yes">Save active image</property>
    2932        <signal name="Activated" handler="OnSaveActionActivated" />
    3033      </action>
     
    5154      <action id="NewAction">
    5255        <property name="Type">Action</property>
    53         <property name="Label" translatable="yes">_New</property>
     56        <property name="Label" translatable="yes">_New...</property>
    5457        <property name="ShortLabel" translatable="yes">_New</property>
    5558        <property name="StockId">gtk-new</property>
     
    5861      <action id="OpenAction">
    5962        <property name="Type">Action</property>
    60         <property name="Label" translatable="yes">_Open</property>
     63        <property name="Label" translatable="yes">_Open...</property>
    6164        <property name="ShortLabel" translatable="yes">_Open</property>
    6265        <property name="StockId">gtk-open</property>
     
    7376      <action id="SaveAsAction">
    7477        <property name="Type">Action</property>
    75         <property name="Label" translatable="yes">Save _As</property>
     78        <property name="Label" translatable="yes">Save _As...</property>
    7679        <property name="ShortLabel" translatable="yes">Save _As</property>
    7780        <property name="StockId">gtk-save-as</property>
     
    146149        <property name="Sensitive">False</property>
    147150        <property name="StockId">gtk-undo</property>
     151        <property name="Tooltip" translatable="yes">Undo action</property>
    148152      </action>
    149153      <action id="redoAction">
     
    152156        <property name="Sensitive">False</property>
    153157        <property name="StockId">gtk-redo</property>
     158        <property name="Tooltip" translatable="yes">Redo action</property>
    154159      </action>
    155160      <action id="zoom100Action">
     
    187192        <property name="Label" translatable="yes" />
    188193        <property name="StockId">gtk-save-as</property>
     194        <property name="Tooltip" translatable="yes">Save active image </property>
    189195        <signal name="Activated" handler="OnSaveAsActionActivated" />
    190196      </action>
     
    241247              <node type="Toolitem" action="openAction" />
    242248              <node type="Toolitem" action="saveAction" />
    243               <node type="Toolitem" action="saveAsAction" />
    244249              <node type="Separator" />
    245250              <node type="Toolitem" action="undoAction" />
     
    616621          <widget class="Gtk.FileChooserWidget" id="filechooserwidget1">
    617622            <property name="MemberName" />
     623            <property name="Action">Save</property>
    618624          </widget>
    619625          <packing>
Note: See TracChangeset for help on using the changeset viewer.