[chronojump] Overview window also show encoderConfiguration on repetitions



commit 66d0b82105f11628172a43c94bcc8969a411a63d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sat Oct 10 21:44:34 2020 +0200

    Overview window also show encoderConfiguration on repetitions

 src/gui/overview.cs   | 5 +++--
 src/sqlite/encoder.cs | 2 ++
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/overview.cs b/src/gui/overview.cs
index f68000a3..c1142970 100644
--- a/src/gui/overview.cs
+++ b/src/gui/overview.cs
@@ -247,6 +247,7 @@ public class EncoderOverviewWindow : OverviewWindow
                } else {
                        tv.AppendColumn (Catalog.GetString ("Person"), new CellRendererText(), "text", 
count++);
                        tv.AppendColumn (Catalog.GetString ("Sex"), new CellRendererText(), "text", count++);
+                       tv.AppendColumn (Catalog.GetString ("Encoder configuration"), new CellRendererText(), 
"text", count++);
                        tv.AppendColumn (Catalog.GetString ("Exercise"), new CellRendererText(), "text", 
count++);
                        if(encoderGI == Constants.EncoderGI.GRAVITATORY)
                                tv.AppendColumn (Catalog.GetString ("Extra mass"), new CellRendererText(), 
"text", count++);
@@ -266,9 +267,9 @@ public class EncoderOverviewWindow : OverviewWindow
                                s = new TreeStore(typeof (string), typeof (string), typeof (string), typeof 
(string), typeof (string), typeof (string)); //personID (hidden), person name, sex, encoderConfiguration, 
exercise, sets
                } else {
                        if(encoderGI == Constants.EncoderGI.GRAVITATORY)
-                               s = new TreeStore(typeof (string), typeof (string), typeof (string), typeof 
(string), typeof (string), typeof(string)); //personID (hidden), person name, sex, exercise, extra mass, power
+                               s = new TreeStore(typeof (string), typeof (string), typeof (string), typeof 
(string), typeof (string), typeof (string), typeof(string)); //personID (hidden), person name, sex, 
encoderConfiguration, exercise, extra mass, power
                        else
-                               s = new TreeStore(typeof (string), typeof (string), typeof (string), typeof 
(string), typeof (string)); //personID (hidden), person name, sex, exercise, power
+                               s = new TreeStore(typeof (string), typeof (string), typeof (string), typeof 
(string), typeof (string), typeof (string)); //personID (hidden), person name, sex, encoderConfiguration, 
exercise, power
                }
 
                return s;
diff --git a/src/sqlite/encoder.cs b/src/sqlite/encoder.cs
index 4efe2084..7ac07b67 100644
--- a/src/sqlite/encoder.cs
+++ b/src/sqlite/encoder.cs
@@ -573,6 +573,7 @@ class SqliteEncoder : Sqlite
                                        reader[0].ToString(),   //person uniqueID
                                        reader[1].ToString(),   //person name
                                        reader[2].ToString(),   //person sex
+                                       econf.ToStringPretty(), //encoder configuration
                                        reader[4].ToString(),   //encoder exercise name
                                        Util.ChangeDecimalSeparator(reader[5].ToString()),      //extra mass
                                        reader[6].ToString()    //power
@@ -584,6 +585,7 @@ class SqliteEncoder : Sqlite
                                        reader[0].ToString(),   //person uniqueID
                                        reader[1].ToString(),   //person name
                                        reader[2].ToString(),   //person sex
+                                       econf.ToStringPretty(), //encoder configuration
                                        reader[4].ToString(),   //encoder exercise name
                                        reader[6].ToString()    //power
                                                //TODO: speed, force


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]