[chronojump] Pmax graph can be only intersession



commit d66109e44e8612d9c6e249185c7164517b0e42fe
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Jan 16 16:56:11 2018 +0100

    Pmax graph can be only intersession

 src/gui/encoder.cs |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index a09dd19..a96708a 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -2474,6 +2474,19 @@ public partial class ChronoJumpWindow
                                }
                        }
                }
+
+               //TODO: also only do the graph if there's more than one session selected
+               //Pmax(F0,V0) is not translated
+               if( encoderSelectedAnalysis == "cross" &&
+                               UtilGtk.ComboGetActive(combo_encoder_analyze_cross) == "Pmax(F0,V0)" &&
+                               ! radio_encoder_analyze_individual_all_sessions.Active )
+               {
+                       new DialogMessage(Constants.MessageTypes.WARNING,
+                                       Catalog.GetString("Sorry, this graph is not supported yet.") +
+                                       "\n\nPmax(f0,V0) only works at intersession.");
+
+                       return;
+               }
        
                button_encoder_analyze.Visible = false;
                hbox_encoder_analyze_progress.Visible = true;


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