[chronojump] code clean



commit 0e87e10d9994b289f3f3adae02e54e62c867cf0e
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Feb 21 19:23:31 2013 +0100

    code clean

 src/gui/chronopic.cs |   11 -----------
 src/gui/helpPorts.cs |   19 ++++++++++---------
 2 files changed, 10 insertions(+), 20 deletions(-)
---
diff --git a/src/gui/chronopic.cs b/src/gui/chronopic.cs
index 3d80037..ac10719 100644
--- a/src/gui/chronopic.cs
+++ b/src/gui/chronopic.cs
@@ -462,15 +462,6 @@ Log.WriteLine("bbb");
        }
        
        private void info() {
-//             string saferPorts = "";
-//             if(Util.IsWindows())
-               /*
-                       saferPorts =
-                               "\n" + Catalog.GetString("If you have problems connecting with Chronopic, 
ensure you have the driver installed at 'Windows Start Menu / Chronojump / Install Chronopic driver'.") + 
"\n" + 
-                               Catalog.GetString("Ports above COM4 may not work.") + "\n" + 
-                               Catalog.GetString("If you want a safer port, press help button and press 
'Force Chronopic to port COM1 - COM4'.");
-                               */
-
                textview_ports_found_explanation.Buffer = UtilGtk.TextViewPrint(
                                Catalog.GetString("If you just plugged Chronopic cable and expected port is 
not listed, close and open again this window.") + "\n" + 
                                Catalog.GetString("If you have problems connecting with Chronopic, press help 
button.")  
@@ -522,8 +513,6 @@ Log.WriteLine("bbb");
        private void chronopicInit (out Chronopic myCp, out SerialPort mySp, Chronopic.Plataforma myPS, 
string myPort, out string returnString, out bool success) 
        {
                Log.WriteLine ( Catalog.GetString ("starting connection with chronopic") );
-               //if(isWindows)
-               //      Log.WriteLine ( Catalog.GetString ("If you have previously used the modem via a 
serial port (in a GNU/Linux session, and you selected serial port), Chronojump will crash.") );
 
                success = true;
                
diff --git a/src/gui/helpPorts.cs b/src/gui/helpPorts.cs
index 50d8a9c..ffdff9c 100644
--- a/src/gui/helpPorts.cs
+++ b/src/gui/helpPorts.cs
@@ -67,8 +67,8 @@ public class HelpPorts
                } else {
                        messageInfo = Constants.PortNamesLinux;
                        messageDetected = Util.DetectPortsLinux(true); //formatting
-//                     button_check_port.Hide();
-//                     button_force_port.Hide();
+                       button_check_port.Hide();
+                       button_force_port.Hide();
                }
                
                label_info.Text = messageInfo;
@@ -76,13 +76,14 @@ public class HelpPorts
                label_detected.Text = messageDetected;
                label_detected.UseMarkup = true;
        
-//             if(Util.IsWindows())
-               label_help_info.Text = 
-                       Catalog.GetString("If you have problems connecting with Chronopic, ensure you have 
the <b>driver</b> installed at 'Windows Start Menu / Chronojump / Install Chronopic driver'.") + "\n\n" + 
-                       Catalog.GetString("Ports above COM4 may not work.") + "\n" + 
-                       Catalog.GetString("If you want a safer port, press:") + "\n" +
-                       Catalog.GetString("Force Chronopic to port <b>COM1 - COM4</b>'.");
-               label_help_info.UseMarkup = true;
+               if(Util.IsWindows()) {
+                       label_help_info.Text = 
+                               Catalog.GetString("If you have problems connecting with Chronopic, ensure you 
have the <b>driver</b> installed at 'Windows Start Menu / Chronojump / Install Chronopic driver'.") + "\n\n" 
+ 
+                               Catalog.GetString("Ports above COM4 may not work.") + "\n" + 
+                               Catalog.GetString("If you want a safer port, press:") + "\n" +
+                               Catalog.GetString("Force Chronopic to port <b>COM1 - COM4</b>'.");
+                       label_help_info.UseMarkup = true;
+               }
 
                label_help_manual.Text = 
                        Catalog.GetString("More information on <b>Chronojump Manual</b>") + "\n" +


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