[longomatch] Add tooltips to the drawing tool box



commit a4b24950d2d05c777e1736212befd2d0ab6d4451
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Apr 5 16:37:48 2010 +0200

    Add tooltips to the drawing tool box

 .../LongoMatch.Gui.Component.DrawingToolBox.cs     |   10 ++++++++++
 LongoMatch/gtk-gui/LongoMatch.Gui.MainWindow.cs    |    2 +-
 LongoMatch/gtk-gui/gui.stetic                      |   13 ++++++++++++-
 3 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.DrawingToolBox.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.DrawingToolBox.cs
index 3f33f36..adfaa4e 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.DrawingToolBox.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.DrawingToolBox.cs
@@ -106,6 +106,7 @@ namespace LongoMatch.Gui.Component {
             this.circlebutton.Remove(this.circlebutton.Child);
             // Container child circlebutton.Gtk.Container+ContainerChild
             this.image79 = new Gtk.Image();
+            this.image79.TooltipMarkup = "Circle tool";
             this.image79.Name = "image79";
             this.image79.Pixbuf = Gdk.Pixbuf.LoadFromResource("stock_draw-circle-unfilled.png");
             this.circlebutton.Add(this.image79);
@@ -126,6 +127,7 @@ namespace LongoMatch.Gui.Component {
             this.crossbutton.Remove(this.crossbutton.Child);
             // Container child crossbutton.Gtk.Container+ContainerChild
             this.image83 = new Gtk.Image();
+            this.image83.TooltipMarkup = "Cross tool";
             this.image83.Name = "image83";
             this.image83.Pixbuf = Gdk.Pixbuf.LoadFromResource("stock_draw-line-45.png");
             this.crossbutton.Add(this.image83);
@@ -138,6 +140,7 @@ namespace LongoMatch.Gui.Component {
             w5.YOptions = ((Gtk.AttachOptions)(4));
             // Container child toolstable.Gtk.Table+TableChild
             this.eraserbutton = new Gtk.RadioButton("");
+            this.eraserbutton.TooltipMarkup = "Rubber tool";
             this.eraserbutton.CanFocus = true;
             this.eraserbutton.Name = "eraserbutton";
             this.eraserbutton.DrawIndicator = false;
@@ -164,6 +167,7 @@ namespace LongoMatch.Gui.Component {
             this.linebutton.Remove(this.linebutton.Child);
             // Container child linebutton.Gtk.Container+ContainerChild
             this.image82 = new Gtk.Image();
+            this.image82.TooltipMarkup = "Arrow line tool";
             this.image82.Name = "image82";
             this.image82.Pixbuf = Gdk.Pixbuf.LoadFromResource("stock_draw-line-ends-with-arrow.png");
             this.linebutton.Add(this.image82);
@@ -174,6 +178,7 @@ namespace LongoMatch.Gui.Component {
             w9.YOptions = ((Gtk.AttachOptions)(4));
             // Container child toolstable.Gtk.Table+TableChild
             this.penbutton = new Gtk.RadioButton("");
+            this.penbutton.TooltipMarkup = "Pencil tool";
             this.penbutton.CanFocus = true;
             this.penbutton.Name = "penbutton";
             this.penbutton.DrawIndicator = false;
@@ -182,6 +187,7 @@ namespace LongoMatch.Gui.Component {
             this.penbutton.Remove(this.penbutton.Child);
             // Container child penbutton.Gtk.Container+ContainerChild
             this.image80 = new Gtk.Image();
+            this.image80.TooltipMarkup = "Pencil";
             this.image80.Name = "image80";
             this.image80.Pixbuf = Gdk.Pixbuf.LoadFromResource("stock_draw-freeform-line.png");
             this.penbutton.Add(this.image80);
@@ -198,6 +204,7 @@ namespace LongoMatch.Gui.Component {
             this.rectanglebutton.Remove(this.rectanglebutton.Child);
             // Container child rectanglebutton.Gtk.Container+ContainerChild
             this.image84 = new Gtk.Image();
+            this.image84.TooltipMarkup = "Rectangle tool";
             this.image84.Name = "image84";
             this.image84.Pixbuf = Gdk.Pixbuf.LoadFromResource("stock_draw-rectangle-unfilled.png");
             this.rectanglebutton.Add(this.image84);
@@ -228,6 +235,7 @@ namespace LongoMatch.Gui.Component {
             this.combobox1.AppendText(Mono.Unix.Catalog.GetString("6 px"));
             this.combobox1.AppendText(Mono.Unix.Catalog.GetString("8 px"));
             this.combobox1.AppendText(Mono.Unix.Catalog.GetString("10 px"));
+            this.combobox1.TooltipMarkup = "Change the line's width";
             this.combobox1.Name = "combobox1";
             this.combobox1.Active = 2;
             this.vbox2.Add(this.combobox1);
@@ -248,6 +256,7 @@ namespace LongoMatch.Gui.Component {
             w17.Fill = false;
             // Container child vbox2.Gtk.Box+BoxChild
             this.spinbutton1 = new Gtk.SpinButton(0, 100, 1);
+            this.spinbutton1.TooltipMarkup = "Change the drawings' transparency";
             this.spinbutton1.CanFocus = true;
             this.spinbutton1.Name = "spinbutton1";
             this.spinbutton1.Adjustment.PageIncrement = 10;
@@ -356,6 +365,7 @@ namespace LongoMatch.Gui.Component {
             w26.Fill = false;
             // Container child vbox2.Gtk.Box+BoxChild
             this.clearbutton = new Gtk.Button();
+            this.clearbutton.TooltipMarkup = "Clear all drawings";
             this.clearbutton.CanFocus = true;
             this.clearbutton.Name = "clearbutton";
             this.clearbutton.UseUnderline = true;
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.MainWindow.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.MainWindow.cs
index 6b47e8b..163109a 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.MainWindow.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.MainWindow.cs
@@ -193,7 +193,7 @@ namespace LongoMatch.Gui {
             this.ImportProjectAction.ShortLabel = Mono.Unix.Catalog.GetString("_Import Project");
             w1.Add(this.ImportProjectAction, "<Control>i");
             this.FreeCaptureModeAction = new Gtk.RadioAction("FreeCaptureModeAction", Mono.Unix.Catalog.GetString("Free Capture Mode"), null, null, 0);
-            this.FreeCaptureModeAction.Group = this.AnalyzeModeAction.Group;
+            this.FreeCaptureModeAction.Group = this.CaptureModeAction.Group;
             this.FreeCaptureModeAction.Sensitive = false;
             this.FreeCaptureModeAction.ShortLabel = Mono.Unix.Catalog.GetString("Free Capture Mode");
             w1.Add(this.FreeCaptureModeAction, null);
diff --git a/LongoMatch/gtk-gui/gui.stetic b/LongoMatch/gtk-gui/gui.stetic
index 22c88c2..d080b9d 100644
--- a/LongoMatch/gtk-gui/gui.stetic
+++ b/LongoMatch/gtk-gui/gui.stetic
@@ -4344,6 +4344,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
                 <child>
                   <widget class="Gtk.Image" id="image79">
                     <property name="MemberName" />
+                    <property name="Tooltip" translatable="yes">Circle tool</property>
                     <property name="Pixbuf">resource:stock_draw-circle-unfilled.png</property>
                   </widget>
                 </child>
@@ -4376,6 +4377,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
                 <child>
                   <widget class="Gtk.Image" id="image83">
                     <property name="MemberName" />
+                    <property name="Tooltip" translatable="yes">Cross tool</property>
                     <property name="Pixbuf">resource:stock_draw-line-45.png</property>
                   </widget>
                 </child>
@@ -4398,6 +4400,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <child>
               <widget class="Gtk.RadioButton" id="eraserbutton">
                 <property name="MemberName" />
+                <property name="Tooltip" translatable="yes">Rubber tool</property>
                 <property name="CanFocus">True</property>
                 <property name="Label" translatable="yes" />
                 <property name="DrawIndicator">False</property>
@@ -4438,6 +4441,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
                 <child>
                   <widget class="Gtk.Image" id="image82">
                     <property name="MemberName" />
+                    <property name="Tooltip" translatable="yes">Arrow line tool</property>
                     <property name="Pixbuf">resource:stock_draw-line-ends-with-arrow.png</property>
                   </widget>
                 </child>
@@ -4458,8 +4462,10 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
             <child>
               <widget class="Gtk.RadioButton" id="penbutton">
                 <property name="MemberName" />
+                <property name="Tooltip" translatable="yes">Pencil tool</property>
                 <property name="CanFocus">True</property>
                 <property name="Label" translatable="yes" />
+                <property name="Active">True</property>
                 <property name="DrawIndicator">False</property>
                 <property name="HasLabel">False</property>
                 <property name="UseUnderline">True</property>
@@ -4468,6 +4474,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
                 <child>
                   <widget class="Gtk.Image" id="image80">
                     <property name="MemberName" />
+                    <property name="Tooltip" translatable="yes">Pencil</property>
                     <property name="Pixbuf">resource:stock_draw-freeform-line.png</property>
                   </widget>
                 </child>
@@ -4496,6 +4503,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
                 <child>
                   <widget class="Gtk.Image" id="image84">
                     <property name="MemberName" />
+                    <property name="Tooltip" translatable="yes">Rectangle tool</property>
                     <property name="Pixbuf">resource:stock_draw-rectangle-unfilled.png</property>
                   </widget>
                 </child>
@@ -4537,6 +4545,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
         <child>
           <widget class="Gtk.ComboBox" id="combobox1">
             <property name="MemberName" />
+            <property name="Tooltip">Change the line's width</property>
             <property name="IsTextCombo">True</property>
             <property name="Items">2 px
 4 px
@@ -4570,6 +4579,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
         <child>
           <widget class="Gtk.SpinButton" id="spinbutton1">
             <property name="MemberName" />
+            <property name="Tooltip" translatable="yes">Change the drawings' transparency</property>
             <property name="CanFocus">True</property>
             <property name="Upper">100</property>
             <property name="PageIncrement">10</property>
@@ -4764,6 +4774,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
         <child>
           <widget class="Gtk.Button" id="clearbutton">
             <property name="MemberName" />
+            <property name="Tooltip" translatable="yes">Clear all drawings</property>
             <property name="CanFocus">True</property>
             <property name="Type">TextAndIcon</property>
             <property name="Icon">stock:gtk-clear LargeToolbar</property>
@@ -5717,4 +5728,4 @@ You can continue with the current capture, cancel it or save your project.
       </widget>
     </child>
   </widget>
-</stetic-interface>
+</stetic-interface>
\ No newline at end of file



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]