[chronojump] Encoder recalculate search if data file is found



commit 93616c707e6dfd0803a4848e089a5c176a380593
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Apr 9 21:08:33 2012 +0200

    Encoder recalculate search if data file is found

 encoder/pyserial_pyper.py  |    2 +-
 src/gui/encoder.cs         |    6 +++++-
 web/hardware_store_es.html |    2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/encoder/pyserial_pyper.py b/encoder/pyserial_pyper.py
index df0c408..d71f335 100644
--- a/encoder/pyserial_pyper.py
+++ b/encoder/pyserial_pyper.py
@@ -19,7 +19,7 @@
 # 
 # encoding=utf-8
 #
-# This problem is for reading data form Chronopic.
+# This program is for reading data form Chronopic.
 
 
 
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index e0355cf..b814ba5 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -72,6 +72,7 @@ public partial class ChronoJumpWindow
 
 	//TODO: check all repetitive conditions areok on pyserial and on treeview
 	//TODO: fix spinbutton on repetitive conditions (page...) to ensure decimal can be selected
+	//TODO: put chancel button
 	
 	//TODO: improve message if chronopic is not connected
 
@@ -156,7 +157,10 @@ public partial class ChronoJumpWindow
 		
 	void on_button_encoder_recalculate_clicked (object o, EventArgs args) 
 	{
-		encoderThreadStart(encoderModes.CAPTURE);
+		if (File.Exists(Util.GetEncoderDataTempFileName()))
+			encoderThreadStart(encoderModes.CAPTURE);
+		else
+			encoder_pulsebar_capture.Text = "Missing data.";
 	}
 	
 	private void encoderUpdateTreeView()
diff --git a/web/hardware_store_es.html b/web/hardware_store_es.html
index 8593a3d..f992ad6 100644
--- a/web/hardware_store_es.html
+++ b/web/hardware_store_es.html
@@ -122,7 +122,7 @@
 						<tr valign="top"><td rowspan="2">
 								<img src="images/encoder-chronojump-sized.png" alt="Linear encoder">
 								</td><td width="100%">
-								En breve a a la venta.
+								En breve a la venta.
 								</td></tr>
 								<tr><td valign="bottom">
 							</td>



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