[chronojump] Icon for top of force sensor mode
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Icon for top of force sensor mode
- Date: Fri, 6 Aug 2021 14:37:26 +0000 (UTC)
commit e5bfb726f08b9917057e9dd2e3851a8a283ee188
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Aug 6 16:37:13 2021 +0200
Icon for top of force sensor mode
glade/app1.glade | 27 +++++++++++++++++++++++++++
src/gui/app1/chronojump.cs | 7 +++++++
src/gui/app1/icons.cs | 1 +
3 files changed, 35 insertions(+)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 2521c8b80..face70ef3 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -5279,6 +5279,33 @@ EncoderInertialCapture</property>
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <widget class="GtkRadioButton"
id="radio_change_modes_contacts_force_sensor">
+ <property name="width_request">40</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">False</property>
+ <child>
+ <widget class="GtkEventBox"
id="eventbox_change_modes_contacts_force_sensor">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkImage"
id="image_change_modes_contacts_force_sensor">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property
name="stock">gtk-missing-image</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="expand">True</property>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index c08499775..1cd0a2cab 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -81,6 +81,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.RadioButton radio_change_modes_contacts_runs_simple;
[Widget] Gtk.RadioButton radio_change_modes_contacts_runs_intervallic;
[Widget] Gtk.RadioButton radio_change_modes_contacts_runs_encoder;
+ [Widget] Gtk.RadioButton radio_change_modes_contacts_force_sensor;
[Widget] Gtk.RadioButton radio_change_modes_encoder_gravitatory;
[Widget] Gtk.RadioButton radio_change_modes_encoder_inertial;
[Widget] Gtk.Image image_change_modes_contacts_jumps_simple;
@@ -88,6 +89,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_change_modes_contacts_runs_simple;
[Widget] Gtk.Image image_change_modes_contacts_runs_reactive;
[Widget] Gtk.Image image_change_modes_contacts_runs_intervallic;
+ [Widget] Gtk.Image image_change_modes_contacts_force_sensor;
[Widget] Gtk.Image image_change_modes_contacts_runs_encoder;
[Widget] Gtk.Image image_change_modes_encoder_gravitatory;
[Widget] Gtk.Image image_change_modes_encoder_inertial;
@@ -103,6 +105,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.EventBox eventbox_change_modes_contacts_runs_simple;
[Widget] Gtk.EventBox eventbox_change_modes_contacts_runs_intervallic;
[Widget] Gtk.EventBox eventbox_change_modes_contacts_runs_encoder;
+ [Widget] Gtk.EventBox eventbox_change_modes_contacts_force_sensor;
[Widget] Gtk.EventBox eventbox_change_modes_encoder_gravitatory;
[Widget] Gtk.EventBox eventbox_change_modes_encoder_inertial;
[Widget] Gtk.EventBox eventbox_button_show_modes_encoder;
@@ -631,6 +634,7 @@ public partial class ChronoJumpWindow
UtilGtk.EventBoxColorBackgroundActive (eventbox_change_modes_contacts_jumps_reactive,
UtilGtk.YELLOW, UtilGtk.YELLOW_LIGHT);
UtilGtk.EventBoxColorBackgroundActive (eventbox_change_modes_contacts_runs_simple,
UtilGtk.YELLOW, UtilGtk.YELLOW_LIGHT);
UtilGtk.EventBoxColorBackgroundActive (eventbox_change_modes_contacts_runs_intervallic,
UtilGtk.YELLOW, UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_change_modes_contacts_force_sensor,
UtilGtk.YELLOW, UtilGtk.YELLOW_LIGHT);
UtilGtk.EventBoxColorBackgroundActive (eventbox_change_modes_contacts_runs_encoder,
UtilGtk.YELLOW, UtilGtk.YELLOW_LIGHT);
UtilGtk.EventBoxColorBackgroundActive (eventbox_change_modes_encoder_gravitatory,
UtilGtk.YELLOW, UtilGtk.YELLOW_LIGHT);
UtilGtk.EventBoxColorBackgroundActive (eventbox_change_modes_encoder_inertial,
UtilGtk.YELLOW, UtilGtk.YELLOW_LIGHT);
@@ -3424,6 +3428,8 @@ public partial class ChronoJumpWindow
hbox_change_modes_jumps.Visible = false;
hbox_change_modes_runs.Visible = false;
+ radio_change_modes_contacts_force_sensor.Visible = false;
+
button_contacts_bells.Sensitive = false;
radio_mode_contacts_capture.Active = true; //it is safe to change to capture, because analyze
has different graphs depending on mode
@@ -3728,6 +3734,7 @@ public partial class ChronoJumpWindow
event_graph_label_graph_test.Visible = true;
vbox_contacts_simple_graph_controls.Visible = false;
+ radio_change_modes_contacts_force_sensor.Visible = true;
align_check_vbox_contacts_graph_legend.Visible = false;
vbox_contacts_graph_legend.Visible = false;
diff --git a/src/gui/app1/icons.cs b/src/gui/app1/icons.cs
index 1b34e8868..30d5d02c4 100644
--- a/src/gui/app1/icons.cs
+++ b/src/gui/app1/icons.cs
@@ -661,6 +661,7 @@ public partial class ChronoJumpWindow
image_mode_runs_intervallic_small.Pixbuf = pixbuf;
image_mode_runs_intervallic_small1.Pixbuf = pixbuf;
image_change_modes_contacts_runs_intervallic.Pixbuf = pixbuf;
+ image_change_modes_contacts_force_sensor.Pixbuf = new Pixbuf (null, Util.GetImagePath(false)
+ "force_sensor_icon.png");
pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "race_encoder_icon.png");
image_mode_race_encoder_small.Pixbuf = pixbuf;
image_change_modes_contacts_runs_encoder.Pixbuf = pixbuf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]