[chronojump] Added clarifying message on preferences jumps Rj show heights/times if they are displayed with non-r
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Added clarifying message on preferences jumps Rj show heights/times if they are displayed with non-r
- Date: Thu, 17 Mar 2022 12:05:51 +0000 (UTC)
commit c99b049f4286a8102a7bf6fcad9e181a2a78becc
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Mar 17 13:04:55 2022 +0100
Added clarifying message on preferences jumps Rj show heights/times if they are displayed with
non-reactive jumps.
glade/preferences_win.glade | 39 ++++++++++++++++++++++++++++++++++++---
src/gui/preferences.cs | 8 ++++++++
2 files changed, 44 insertions(+), 3 deletions(-)
---
diff --git a/glade/preferences_win.glade b/glade/preferences_win.glade
index af5f03575..450479aaa 100644
--- a/glade/preferences_win.glade
+++ b/glade/preferences_win.glade
@@ -999,11 +999,44 @@
<property name="can_focus">False</property>
<property name="spacing">8</property>
<child>
- <widget class="GtkLabel" id="label120">
+ <widget class="GtkHBox" id="hbox10">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Variables
to show at reactive jumps:</property>
+ <property name="spacing">6</property>
+ <child>
+ <widget class="GtkLabel" id="label120">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label"
translatable="yes">Variables to show at reactive jumps:</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkButton"
id="button_jumps_dj_heights_times_help">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked"
handler="on_button_jumps_dj_heights_times_help_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkImage"
id="image_button_jumps_dj_heights_times_help">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-info</property>
+ <property name="icon-size">2</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="expand">True</property>
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 5ca5e1287..7ce426965 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -100,6 +100,7 @@ public class PreferencesWindow
[Widget] Gtk.CheckButton checkbutton_stiffness;
[Widget] Gtk.Image image_jumps_power_help;
[Widget] Gtk.Image image_jumps_stiffness_help;
+ [Widget] Gtk.Image image_button_jumps_dj_heights_times_help;
[Widget] Gtk.CheckButton checkbutton_initial_speed;
[Widget] Gtk.CheckButton checkbutton_jump_rsi;
// [Widget] Gtk.CheckButton checkbutton_angle;
@@ -579,6 +580,7 @@ public class PreferencesWindow
pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_info.png");
PreferencesWindowBox.image_jumps_power_help.Pixbuf = pixbuf;
PreferencesWindowBox.image_jumps_stiffness_help.Pixbuf = pixbuf;
+ PreferencesWindowBox.image_button_jumps_dj_heights_times_help.Pixbuf = pixbuf;
PreferencesWindowBox.image_run_speed_start_help.Pixbuf = pixbuf;
PreferencesWindowBox.image_encoder_inactivity_help.Pixbuf = pixbuf;
PreferencesWindowBox.image_encoder_capture_cut_by_triggers_help.Pixbuf = pixbuf;
@@ -959,6 +961,12 @@ public class PreferencesWindow
private void on_button_jumps_stiffness_help_clicked (object o, EventArgs args) {
showHelp(Catalog.GetString("Stiffness"), helpTypes.STIFFNESS, Constants.HelpStiffnessStr());
}
+ private void on_button_jumps_dj_heights_times_help_clicked (object o, EventArgs args) {
+ showHelp(Catalog.GetString("Variables to show at reactive jumps:"), helpTypes.NORMAL,
+ Catalog.GetString("In jumps like Dj, Dja you can select to show the heights
of the jumps or the times.") + "\n\n" +
+ Catalog.GetString("But keep in mind that if you display reactive jumps with
other jumps (like CMJ, ABK), then heights will be shown."));
+ }
+
/*
* triggers stuff
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]