[chronojump] Icons for force sensor link (chain) slides
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Icons for force sensor link (chain) slides
- Date: Thu, 11 Feb 2021 18:54:47 +0000 (UTC)
commit 1a329f725dd957b861a0bfd5f0b538575a2e95e3
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Feb 11 19:20:25 2021 +0100
Icons for force sensor link (chain) slides
glade/app1.glade | 37 +++++++++++++++++++++++++++++++++----
images/md/link.png | Bin 0 -> 5566 bytes
images/md/link_off.png | Bin 0 -> 5702 bytes
src/Makefile.am | 2 ++
src/gui/app1/forceSensorAnalyze.cs | 3 ++-
src/gui/app1/icons.cs | 5 +++++
6 files changed, 42 insertions(+), 5 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index bc68f34e..9657904d 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -21403,7 +21403,7 @@ Concentric</property>
<property name="n_rows">2</property>
<property name="n_columns">3</property>
<property name="column_spacing">16</property>
- <property name="row_spacing">2</property>
+ <property name="row_spacing">4</property>
<child>
<widget class="GtkHBox"
id="hbox_force_sensor_ai_a">
<property name="visible">True</property>
@@ -21802,14 +21802,43 @@ Concentric</property>
<widget class="GtkHBox"
id="hbox_force_sensor_ai_ab">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="spacing">8</property>
<child>
<widget class="GtkCheckButton"
id="check_force_sensor_ai_chained">
- <property name="label">A+B</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property
name="receives_default">False</property>
- <property name="draw_indicator">True</property>
+ <property name="draw_indicator">False</property>
<signal name="clicked"
handler="on_check_force_sensor_ai_chained_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkHBox" id="hbox464">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkImage"
id="image_force_sensor_ai_chained_link_off">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property
name="stock">gtk-missing-image</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkImage"
id="image_force_sensor_ai_chained_link">
+ <property name="can_focus">False</property>
+ <property
name="stock">gtk-missing-image</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -21870,7 +21899,7 @@ Concentric</property>
<widget class="GtkHBox" id="hbox182">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="spacing">6</property>
+ <property name="spacing">4</property>
<child>
<widget class="GtkButton"
id="button_force_sensor_analyze_back_to_signal">
<property name="label"
translatable="yes">Back</property>
diff --git a/images/md/link.png b/images/md/link.png
new file mode 100644
index 00000000..64140757
Binary files /dev/null and b/images/md/link.png differ
diff --git a/images/md/link_off.png b/images/md/link_off.png
new file mode 100644
index 00000000..0a1b87c9
Binary files /dev/null and b/images/md/link_off.png differ
diff --git a/src/Makefile.am b/src/Makefile.am
index 02b1df2d..32a7d35a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -603,6 +603,8 @@ RESOURCES = \
../images/import-csv-headers.png,import-csv-headers.png \
../images/import-csv-name-1-column.png,import-csv-name-1-column.png \
../images/import-csv-name-2-columns.png,import-csv-name-2-columns.png \
+ ../images/md/link.png,link.png \
+ ../images/md/link_off.png,link_off.png \
../images/calendar.png,calendar.png \
../images/chronojump-logo-transparent.png,chronojump-logo-transparent.png \
../images/chronojump-logo-transparent-40h.png,chronojump-logo-transparent-40h.png \
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index c1e7ffe9..80e55c81 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -1752,7 +1752,8 @@ public partial class ChronoJumpWindow
private void on_check_force_sensor_ai_chained_clicked (object o, EventArgs args)
{
- //TODO: change on SQL
+ image_force_sensor_ai_chained_link.Visible = check_force_sensor_ai_chained.Active;
+ image_force_sensor_ai_chained_link_off.Visible = ! check_force_sensor_ai_chained.Active;
}
private void forceSensorAnalyzeGeneralButtonHscaleZoomSensitiveness()
diff --git a/src/gui/app1/icons.cs b/src/gui/app1/icons.cs
index fab046a0..a4487778 100644
--- a/src/gui/app1/icons.cs
+++ b/src/gui/app1/icons.cs
@@ -181,6 +181,8 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_force_sensor_laterality_r;
[Widget] Gtk.Image image_force_sensor_laterality_l;
[Widget] Gtk.Image image_force_sensor_export_cancel;
+ [Widget] Gtk.Image image_force_sensor_ai_chained_link;
+ [Widget] Gtk.Image image_force_sensor_ai_chained_link_off;
//race encoder
[Widget] Gtk.Image image_run_encoder_exercise_edit;
@@ -892,5 +894,8 @@ public partial class ChronoJumpWindow
//pixbuf = new Pixbuf (null, Util.GetImagePath(false) + Constants.FileNameLogo320); //changed
to 270 for the presentation
//image_presentation_logo.Pixbuf = pixbuf;
+
+ image_force_sensor_ai_chained_link.Pixbuf = new Pixbuf(null, Util.GetImagePath(false) +
"link.png");
+ image_force_sensor_ai_chained_link_off.Pixbuf = new Pixbuf(null, Util.GetImagePath(false) +
"link_off.png");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]