[chronojump] Better sensitiveness on encoder when a jump is done
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Better sensitiveness on encoder when a jump is done
- Date: Thu, 17 Jul 2014 11:02:56 +0000 (UTC)
commit 66b2ac95ac01bc7556c43139597ba9dbe925270e
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jul 17 13:02:08 2014 +0200
Better sensitiveness on encoder when a jump is done
src/gui/chronojump.cs | 7 +++++--
src/gui/encoder.cs | 12 ++++++------
2 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 15aeb08..819bc23 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -6114,8 +6114,11 @@ Console.WriteLine("X");
frame_persons.Sensitive = true;
button_execute_test.Sensitive = true;
-
- encoderButtonsSensitive(encoderSensEnum.DONENOSIGNAL);
+
+ if(encoderCaptureCurves != null && encoderCaptureCurves.Count > 0)
+ encoderButtonsSensitive(encoderSensEnum.DONEYESSIGNAL);
+ else
+ encoderButtonsSensitive(encoderSensEnum.DONENOSIGNAL);
//hbox
hbox_jumps_test.Sensitive = true;
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index cf21568..581b89f 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -2276,7 +2276,7 @@ public partial class ChronoJumpWindow
ArrayList eeArray = SqliteEncoder.SelectEncoderExercises(false, -1, false);
EncoderExercise ex = new EncoderExercise();
-Log.WriteLine("AT ANALYZE");
+ Log.WriteLine("AT ANALYZE");
int iteratingPerson = -1;
int iteratingSession = -1;
@@ -2289,13 +2289,13 @@ Log.WriteLine("AT ANALYZE");
if(eSQL.exerciseID == eeSearch.uniqueID)
ex = eeSearch;
-Log.Write(" AT ANALYZE 1.1 ");
+ Log.Write(" AT ANALYZE 1.1 ");
//massBody change if we are comparing different persons or sessions
if(eSQL.personID != iteratingPerson || eSQL.sessionID != iteratingSession) {
iteratingMassBody = SqlitePersonSession.SelectAttribute(
true, eSQL.personID, eSQL.sessionID,
Constants.Weight);
}
-Log.Write(" AT ANALYZE 1.2 ");
+ Log.Write(" AT ANALYZE 1.2 ");
//seriesName
string seriesName = "";
@@ -2352,7 +2352,7 @@ Log.Write(" AT ANALYZE 1.2 ");
}
writer.Flush();
((IDisposable)writer).Dispose();
-Log.Write(" AT ANALYZE 2 ");
+ Log.Write(" AT ANALYZE 2 ");
Sqlite.Close();
} else { //current signal
@@ -4098,7 +4098,7 @@ Log.Write(" AT ANALYZE 2 ");
/* in some mono installations, configure_event is not called, but expose_event yes.
* Do here the initialization
*/
-// Log.WriteLine("EXPOSE");
+ //Log.WriteLine("EXPOSE");
Gdk.Rectangle allocation = encoder_capture_curves_bars_drawingarea.Allocation;
if(encoder_capture_curves_bars_pixmap == null || encoder_capture_curves_sizeChanged ||
@@ -4156,7 +4156,7 @@ Log.Write(" AT ANALYZE 2 ");
/* in some mono installations, configure_event is not called, but expose_event yes.
* Do here the initialization
*/
-// Log.WriteLine("EXPOSE");
+ //Log.WriteLine("EXPOSE");
Gdk.Rectangle allocation = encoder_capture_signal_drawingarea.Allocation;
if(encoder_capture_signal_pixmap == null || encoder_capture_signal_sizeChanged ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]