[chronojump] On encoder gravitatory analyze treeview do not show inertia moment



commit dcb32292b32a6b09bda086ec0e47d576c0efb62b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Nov 13 15:41:39 2020 +0100

    On encoder gravitatory analyze treeview do not show inertia moment

 diagrams/sqlite/chronojump_sqlite.dia | Bin 19287 -> 20115 bytes
 src/gui/app1/encoder.cs               |   2 +-
 src/gui/encoderTreeviews.cs           |  16 ++++++++++++----
 3 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/diagrams/sqlite/chronojump_sqlite.dia b/diagrams/sqlite/chronojump_sqlite.dia
index 24919b86..63f8c59a 100644
Binary files a/diagrams/sqlite/chronojump_sqlite.dia and b/diagrams/sqlite/chronojump_sqlite.dia differ
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index 7646f174..c4b550a7 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -6997,7 +6997,7 @@ public partial class ChronoJumpWindow
                                        } else {
                                                treeviewEncoderAnalyzeRemoveColumns();
                                                encoderAnalyzeListStore = new Gtk.ListStore (typeof 
(EncoderCurve));
-                                               createTreeViewEncoderAnalyze(contents);
+                                               createTreeViewEncoderAnalyze(contents, current_menuitem_mode);
                                        }
                                }
 
diff --git a/src/gui/encoderTreeviews.cs b/src/gui/encoderTreeviews.cs
index a51620fd..06e201f3 100644
--- a/src/gui/encoderTreeviews.cs
+++ b/src/gui/encoderTreeviews.cs
@@ -635,7 +635,8 @@ public partial class ChronoJumpWindow
 
        bool lastTreeviewEncoderAnalyzeIsNeuromuscular = false;
 
-       private int createTreeViewEncoderAnalyze(string contents) {
+       private int createTreeViewEncoderAnalyze(string contents, Constants.Menuitem_modes encoderMode)
+       {
                string [] columnsString = GetTreeviewEncoderAnalyzeHeaders(true); //screen
 
                ArrayList encoderAnalyzeCurves = new ArrayList ();
@@ -745,7 +746,15 @@ public partial class ChronoJumpWindow
                treeview_encoder_analyze_curves.HeadersVisible=true;
 
                int i=0;
-               foreach(string myCol in columnsString) {
+               foreach(string myCol in columnsString)
+               {
+                       //do not show inertia moment on powergravitatory
+                       if(encoderMode == Constants.Menuitem_modes.POWERGRAVITATORY && i == 6)
+                       {
+                               i ++;
+                               continue;
+                       }
+
                        Gtk.TreeViewColumn aColumn = new Gtk.TreeViewColumn ();
                        CellRendererText aCell = new CellRendererText();
                        aColumn.Title=myCol;
@@ -753,8 +762,7 @@ public partial class ChronoJumpWindow
 
                        //crt1.Foreground = "red";
                        //crt1.Background = "blue";
-               
-               
+
                        switch(i){      
                                case 0:
                                        aColumn.SetCellDataFunc (aCell, new Gtk.TreeCellDataFunc 
(RenderNAnalyze));


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