[chronojump] Initial code for jumpsRjFatigue analyze cairo graph
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Initial code for jumpsRjFatigue analyze cairo graph
- Date: Wed, 5 Aug 2020 16:30:38 +0000 (UTC)
commit 91c0611c429140f646e344572e713ace7cb13a6e
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Aug 5 18:30:15 2020 +0200
Initial code for jumpsRjFatigue analyze cairo graph
glade/app1.glade | 67 ++++++++++++++++++++++++++++++++++--------
src/Makefile.am | 1 +
src/gui/app1/jumpsRjFatigue.cs | 43 +++++++++++++++++++++++++++
3 files changed, 99 insertions(+), 12 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index f07776c4..c84be1b7 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -20308,6 +20308,15 @@ Concentric</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
+ <widget class="GtkHBox" id="hbox3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkHBox" id="hbox48">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">20</property>
+ <child>
<widget class="GtkLabel" id="label560">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -20319,6 +20328,34 @@ Concentric</property>
<property name="position">0</property>
</packing>
</child>
+ <child>
+ <widget class="GtkButton" id="button3">
+ <property name="label"
translatable="yes">button</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked"
handler="on_jumps_rj_analyze_fatigue_clicked" swapped="no"/>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="position">5</property>
@@ -24573,6 +24610,9 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -27438,6 +27478,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>
@@ -27474,18 +27526,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>
@@ -35484,6 +35524,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/Makefile.am b/src/Makefile.am
index 42538de5..2a151f17 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -13,6 +13,7 @@ SOURCES = \
gui/app1/jumpsProfile.cs\
gui/app1/jumpsDjOptimalFall.cs\
gui/app1/jumpsEvolution.cs\
+ gui/app1/jumpsRjFatigue.cs\
gui/app1/jumpsWeightFVProfile.cs\
gui/app1/contactsExercise.cs\
gui/app1/forceSensor.cs\
diff --git a/src/gui/app1/jumpsRjFatigue.cs b/src/gui/app1/jumpsRjFatigue.cs
new file mode 100644
index 00000000..e4817899
--- /dev/null
+++ b/src/gui/app1/jumpsRjFatigue.cs
@@ -0,0 +1,43 @@
+
+/*
+ * This file is part of ChronoJump
+ *
+ * Chronojump is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Chronojump is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Copyright (C) 2020 Xavier de Blas <xaviblas gmail com>
+ */
+
+
+using System;
+using Gtk;
+using Glade;
+//using Mono.Unix;
+using System.Collections.Generic; //List<T>
+
+public partial class ChronoJumpWindow
+{
+
+ private void on_jumps_rj_analyze_fatigue_clicked (object o, EventArgs args)
+ {
+ if(currentPerson == null || currentSession == null)
+ return;
+
+ List<JumpRj> l = SqliteJumpRj.SelectJumps(false, currentSession.UniqueID,
currentPerson.UniqueID, "");
+
+ LogB.Information("printing list of jumps...");
+ foreach(JumpRj jrj in l)
+ LogB.Information(jrj.ToString());
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]