[chronojump] 1RM gui only mean values
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] 1RM gui only mean values
- Date: Sat, 9 Feb 2013 00:31:54 +0000 (UTC)
commit e7d953b51c6901a948e4dc402c2a98804272e83c
Author: Xavier de Blas <xaviblas gmail com>
Date: Sat Feb 9 01:08:52 2013 +0100
1RM gui only mean values
src/gui/encoder.cs | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 885b2f9..15dd809 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -1190,6 +1190,7 @@ public partial class ChronoJumpWindow
UtilGtk.ComboUpdate(combo_encoder_analyze_cross, comboAnalyzeCrossOptionsTranslated, "");
combo_encoder_analyze_cross.Active = UtilGtk.ComboMakeActive(combo_encoder_analyze_cross,
Catalog.GetString(comboAnalyzeCrossOptions[0]));
+ combo_encoder_analyze_cross.Changed += new EventHandler (on_combo_encoder_analyze_cross_changed);
//create combo analyze curve num combo
//is not an spinbutton because values can be separated: "3,4,7,21"
@@ -1234,6 +1235,16 @@ public partial class ChronoJumpWindow
*/
}
+ void on_combo_encoder_analyze_cross_changed (object o, EventArgs args)
+ {
+ if(Util.FindOnArray(':',1,0,UtilGtk.ComboGetActive(combo_encoder_analyze_cross),
+ encoderAnalyzeCrossTranslation) == "1RM Prediction") {
+ radiobutton_encoder_analyze_mean.Active = true;
+ radiobutton_encoder_analyze_max.Sensitive = false;
+ } else
+ radiobutton_encoder_analyze_max.Sensitive = true;
+ }
+
void on_button_encoder_exercise_info_clicked (object o, EventArgs args)
{
int exerciseID = Convert.ToInt32(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]