[chronojump] Runs exercise selection with left/right buttons
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Runs exercise selection with left/right buttons
- Date: Sun, 4 Apr 2021 20:43:04 +0000 (UTC)
commit 2762c44e59e92aeb7ce01b315994b8f084bdfcaa
Author: Xavier de Blas <xaviblas gmail com>
Date: Sun Apr 4 22:35:38 2021 +0200
Runs exercise selection with left/right buttons
glade/app1.glade | 84 +++++++++++++++++++++++++++++++++++++++++++++--------
src/gui/app1/run.cs | 13 +++++++++
2 files changed, 85 insertions(+), 12 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index d9577100..0553d3f4 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -12537,6 +12537,33 @@ EncoderInertialCapture</property>
<property name="can_focus">False</property>
<property name="spacing">12</property>
<child>
+ <widget class="GtkHBox" id="hbox503">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">10</property>
+ <child>
+ <widget class="GtkButton"
id="button_combo_runs_exercise_capture_left">
+ <property name="width_request">40</property>
+ <property name="visible">True</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked"
handler="on_button_combo_runs_exercise_capture_left_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkArrow" id="arrow35">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="arrow_type">left</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
<widget class="GtkHBox"
id="hbox_combo_select_runs">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -12545,6 +12572,33 @@ EncoderInertialCapture</property>
</child>
</widget>
<packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkButton"
id="button_combo_runs_exercise_capture_right">
+ <property name="width_request">40</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked"
handler="on_button_combo_runs_exercise_capture_right_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkArrow" id="arrow36">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </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">False</property>
<property name="fill">False</property>
<property name="position">0</property>
@@ -24871,6 +24925,9 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -31038,6 +31095,18 @@ Concentric</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
+ <widget class="GtkLabel"
id="label_video_encoder_tests_will_be_filmed">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Tests
will be filmed</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
<widget class="GtkHBox"
id="hbox_video_encoder_capturing">
<property name="can_focus">False</property>
<property name="spacing">4</property>
@@ -31074,18 +31143,6 @@ Concentric</property>
</packing>
</child>
<child>
- <widget class="GtkLabel"
id="label_video_encoder_tests_will_be_filmed">
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Tests
will be filmed</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
<widget class="GtkHBox"
id="hbox_video_encoder_no_capturing">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -39514,6 +39571,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/app1/run.cs b/src/gui/app1/run.cs
index f144dd33..f1ea5d2f 100644
--- a/src/gui/app1/run.cs
+++ b/src/gui/app1/run.cs
@@ -33,6 +33,8 @@ using Mono.Unix;
public partial class ChronoJumpWindow
{
//options runs
+ [Widget] Gtk.Button button_combo_runs_exercise_capture_left;
+ [Widget] Gtk.Button button_combo_runs_exercise_capture_right;
[Widget] Gtk.Button button_run_type_delete_simple;
[Widget] Gtk.CheckButton check_run_simple_with_reaction_time;
[Widget] Gtk.Button button_runs_simple_track_distance;
@@ -75,6 +77,17 @@ public partial class ChronoJumpWindow
return t;
}
+ //left-right buttons on runs combo exercise selection
+ private void on_button_combo_runs_exercise_capture_left_clicked (object o, EventArgs args)
+ {
+ contacts_exercise_left_button (combo_select_runs,
+ button_combo_runs_exercise_capture_left,
button_combo_jumps_exercise_capture_right);
+ }
+ private void on_button_combo_runs_exercise_capture_right_clicked (object o, EventArgs args)
+ {
+ contacts_exercise_right_button (combo_select_runs,
+ button_combo_runs_exercise_capture_left,
button_combo_jumps_exercise_capture_right);
+ }
private void on_extra_window_runs_test_changed(object o, EventArgs args)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]