[chronojump] Better signals on encoder curves edit/delete
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Better signals on encoder curves edit/delete
- Date: Thu, 27 Feb 2014 15:55:48 +0000 (UTC)
commit b0c43f42629bc0299a20d9e9d2bd1a8244abddcb
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Feb 27 14:29:41 2014 +0100
Better signals on encoder curves edit/delete
src/gui/encoder.cs | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 042352a..aa10dc3 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -816,6 +816,7 @@ public partial class ChronoJumpWindow
//update on database the curves that have been selected/deselected
int count = 0;
+ int countActive = 0;
Sqlite.Open();
foreach(EncoderSQL eSQL in data) {
@@ -823,7 +824,11 @@ public partial class ChronoJumpWindow
eSQL.status = checkboxes[count];
SqliteEncoder.Update(true, eSQL);
}
+
count ++;
+
+ if(eSQL.status == "active")
+ countActive ++;
}
Sqlite.Close();
@@ -837,7 +842,8 @@ public partial class ChronoJumpWindow
genericWin.HideAndNull();
- encoderButtonsSensitive(encoderSensEnumStored);
+ //encoderButtonsSensitive(encoderSensEnumStored);
+ button_encoder_analyze.Sensitive = (countActive > 0);
}
protected void on_encoder_show_curves_row_edit (object o, EventArgs args) {
@@ -860,6 +866,7 @@ public partial class ChronoJumpWindow
}
genericWin.ShowCombo(false);
+ updateUserCurvesLabelsAndCombo();
}
protected void on_encoder_show_curves_row_delete (object o, EventArgs args) {
@@ -2302,7 +2309,7 @@ Log.WriteLine(str);
int rows = UtilGtk.CountRows(encoderCaptureListStore);
//button_encoder_analyze.Sensitive = encoderTimeStamp != null;
-
+
bool analyze_sensitive = (rows > 0);
if(analyze_sensitive && radiobutton_encoder_analyze_side.Active) {
analyze_sensitive = curvesNumOkToSideCompare();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]