[chronojump] force sensor analyze has its own label



commit fd241a05709d2319d2cd56e6bc95ba72e0ccbc1b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Nov 9 12:28:16 2017 +0100

    force sensor analyze has its own label

 glade/app1.glade       |   21 +++++++++++++++++++++
 src/gui/forceSensor.cs |    4 +++-
 2 files changed, 24 insertions(+), 1 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 1a1514e..9ba91a3 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1451,6 +1451,9 @@
                                                             <placeholder/>
                                                             </child>
                                                             <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkLabel" 
id="label_start_selector_jumps">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -14940,6 +14943,7 @@ Concentric</property>
                                                       <widget class="GtkHBox" id="hbox182">
                                                         <property name="visible">True</property>
                                                         <property name="can_focus">False</property>
+                                                        <property name="spacing">12</property>
                                                         <child>
                                                           <widget class="GtkButton" 
id="button_force_sensor_analyze_load">
                                                             <property name="label" translatable="yes">Load 
file</property>
@@ -14954,6 +14958,20 @@ Concentric</property>
                                                             <property name="position">0</property>
                                                           </packing>
                                                         </child>
+                                                        <child>
+                                                          <widget class="GtkLabel" 
id="label_force_sensor_analyze">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="use_markup">True</property>
+                                                            <property name="ellipsize">end</property>
+                                                            <property name="single_line_mode">True</property>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                          </packing>
+                                                        </child>
                                                       </widget>
                                                       <packing>
                                                         <property name="expand">False</property>
@@ -21879,6 +21897,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/forceSensor.cs b/src/gui/forceSensor.cs
index 6e73b74..18c6308 100644
--- a/src/gui/forceSensor.cs
+++ b/src/gui/forceSensor.cs
@@ -79,6 +79,7 @@ public partial class ChronoJumpWindow
 
        //analyze tab
        [Widget] Gtk.Button button_force_sensor_analyze_load;
+       [Widget] Gtk.Label label_force_sensor_analyze;
        [Widget] Gtk.Image image_force_sensor_graph;
        [Widget] Gtk.Viewport viewport_force_sensor_graph;
        [Widget] Gtk.Button button_force_sensor_image_save_rfd;
@@ -446,6 +447,7 @@ public partial class ChronoJumpWindow
                label_force_sensor_value_max.Text = "0";
                label_force_sensor_value.Text = "0";
                label_force_sensor_value_min.Text = "0";
+               label_force_sensor_analyze.Text = "";
 
                forceProcessFinish = false;
                forceProcessCancel = false;
@@ -856,7 +858,7 @@ LogB.Information(" fc R ");
 
                if(! success)
                {
-                       event_execute_label_message.Text = "Error doing RFD graph.";
+                       label_force_sensor_analyze.Text = Catalog.GetString("Error doing graph.");
                        return;
                }
 


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