[chronojump] Dja and DJna from More jumps no more show "technique"
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Dja and DJna from More jumps no more show "technique"
- Date: Wed, 23 Feb 2011 13:27:47 +0000 (UTC)
commit 57dae45fe39b4c6504dfbb0f9aa1b0200c1c874e
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Feb 23 14:17:12 2011 +0100
Dja and DJna from More jumps no more show "technique"
src/gui/jump.cs | 29 ++++++-----------------------
1 files changed, 6 insertions(+), 23 deletions(-)
---
diff --git a/src/gui/jump.cs b/src/gui/jump.cs
index eea84e5..fbdda14 100644
--- a/src/gui/jump.cs
+++ b/src/gui/jump.cs
@@ -826,25 +826,6 @@ public class JumpExtraWindow
JumpExtraWindowBox = new JumpExtraWindow (parent);
}
- /*
- if(myJumpType.Name == Constants.RunAnalysisName) {
- hideRepetitiveData();
- hideWeightData();
- distance = 100; //100cm
-
- JumpExtraWindowBox.spinbutton_fall.Value = distance;
- JumpExtraWindowBox.label_fall.Text = Catalog.GetString("Distance between photocells");
-
- JumpExtraWindowBox.spinbutton_fall.Sensitive = true;
- JumpExtraWindowBox.label_fall.Sensitive = true;
- JumpExtraWindowBox.label_cm.Sensitive = true;
-
- JumpExtraWindowBox.jump_extra.Show ();
-
- return JumpExtraWindowBox;
- }
- */
-
if(myJumpType.IsRepetitive && myJumpType.FixedValue >= 0) {
string jumpsName = Catalog.GetString("jumps");
string secondsName = Catalog.GetString("seconds");
@@ -866,13 +847,15 @@ public class JumpExtraWindow
if(! myJumpType.HasWeight) {
hideWeightData();
}
- if(myJumpType.StartIn || myJumpType.Name == Constants.TakeOffName || myJumpType.Name == Constants.TakeOffWeightName)
- hideFallData();
+ if(myJumpType.StartIn || myJumpType.Name == Constants.TakeOffName ||
+ myJumpType.Name == Constants.TakeOffWeightName)
+ hideFallData();
//show technique (arms) only in DJ
+ //on DJa and DJna (coming from More jumps) don't need to show technique data
if(myJumpType.StartIn || myJumpType.IsRepetitive ||
- myJumpType.Name == Constants.TakeOffName ||
- myJumpType.Name == Constants.TakeOffWeightName)
+ myJumpType.Name == "DJa" || myJumpType.Name == "DJna" ||
+ myJumpType.Name == Constants.TakeOffName || myJumpType.Name == Constants.TakeOffWeightName)
hideTechniqueArmsData();
JumpExtraWindowBox.check_dj_arms.Active = arms;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]