[chronojump] Added message "need reaction time device" on three reaction time modes
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Added message "need reaction time device" on three reaction time modes
- Date: Mon, 12 Feb 2018 16:48:43 +0000 (UTC)
commit 78b763108abe9debb2affa2d7bbc4d3323107a52
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Feb 12 16:38:59 2018 +0100
Added message "need reaction time device" on three reaction time modes
glade/app1.glade | 26 ++++++++++++++++++++++++++
src/gui/chronojumpIcons.cs | 2 ++
src/gui/reactionTime.cs | 15 ++++++++++++++-
3 files changed, 42 insertions(+), 1 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 8d1dcb1..0ca7110 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1586,6 +1586,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>
@@ -5376,6 +5379,26 @@ EncoderInertialCapture</property>
<property name="position">3</property>
</packing>
</child>
+ <child>
+ <widget class="GtkButton"
id="button_reaction_time_device_help">
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked"
handler="on_button_reaction_time_device_help_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkImage"
id="image_reaction_time_device_help">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-info</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="padding">20</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -22911,6 +22934,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/chronojumpIcons.cs b/src/gui/chronojumpIcons.cs
index 9faf787..098d1ab 100644
--- a/src/gui/chronojumpIcons.cs
+++ b/src/gui/chronojumpIcons.cs
@@ -67,6 +67,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_info4;
[Widget] Gtk.Image image_run_simple_with_reaction_time_help;
[Widget] Gtk.Image image_run_interval_with_reaction_time_help;
+ [Widget] Gtk.Image image_reaction_time_device_help;
[Widget] Gtk.Image image_info_sessions_info;
[Widget] Gtk.Image image_add_test1;
[Widget] Gtk.Image image_add_test2;
@@ -223,6 +224,7 @@ public partial class ChronoJumpWindow
image_info4.Pixbuf = pixbuf;
image_run_simple_with_reaction_time_help.Pixbuf = pixbuf;
image_run_interval_with_reaction_time_help.Pixbuf = pixbuf;
+ image_reaction_time_device_help.Pixbuf = pixbuf;
image_info_sessions_info.Pixbuf = pixbuf;
image_encoder_1RM_info.Pixbuf = pixbuf;
image_force_sensor_adjust_help.Pixbuf = pixbuf;
diff --git a/src/gui/reactionTime.cs b/src/gui/reactionTime.cs
index a7970d8..47a0b69 100644
--- a/src/gui/reactionTime.cs
+++ b/src/gui/reactionTime.cs
@@ -42,7 +42,9 @@ public partial class ChronoJumpWindow
[Widget] Gtk.RadioButton extra_window_radio_reaction_time_flicker;
[Widget] Gtk.RadioButton extra_window_radio_reaction_time_discriminative;
-
+ [Widget] Gtk.Button button_reaction_time_device_help;
+
+
private void on_extra_window_reaction_times_test_changed(object o, EventArgs args)
{
hbox_animation_lights.Visible = false;
@@ -69,6 +71,11 @@ public partial class ChronoJumpWindow
changeTestImage("","", "reaction_time_discriminative.png");
}
+ button_reaction_time_device_help.Visible = (
+ extra_window_radio_reaction_time_animation_lights.Active ||
+ extra_window_radio_reaction_time_flicker.Active ||
+ extra_window_radio_reaction_time_discriminative.Active );
+
currentEventType = currentReactionTimeType;
if(currentSession != null) {
@@ -101,6 +108,12 @@ public partial class ChronoJumpWindow
PrepareReactionTimeGraph(eventGraph, false); //don't animate
}
+
+ private void on_button_reaction_time_device_help_clicked (object o, EventArgs args)
+ {
+ new DialogMessage(Constants.MessageTypes.INFO, Catalog.GetString("This test needs Chronojump
reaction time device."));
+ }
+
// ---- animation lights
private void on_spinbutton_animation_lights_speed_value_changed (object o, EventArgs args) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]