[chronojump] Added runWireless to chronopicRegister window
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Added runWireless to chronopicRegister window
- Date: Tue, 21 Jul 2020 16:32:56 +0000 (UTC)
commit b5bdad171a1e27f81383ff25f0f76fad986c8903
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jul 21 18:30:33 2020 +0200
Added runWireless to chronopicRegister window
src/Makefile.am | 1 +
src/chronopicRegister.cs | 4 +++-
src/gui/chronopicRegister.cs | 3 ++-
src/gui/networks.cs | 2 +-
4 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index ad45a175..4fd00ef1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -323,6 +323,7 @@ RESOURCES = \
../images/board-arduino-force.png,board-arduino-force.png \
../images/board-arduino-run-encoder.png,board-arduino-run-encoder.png \
../images/board-accelerometer.png,board-accelerometer.png \
+ ../images/board-run-wireless.png,board-run-wireless.png \
../images/chronojump-jumps-small.png,chronojump-jumps-small.png \
../images/chronojump-runs-small.png,chronojump-runs-small.png \
../images/chronojump-encoder-small.png,chronojump-encoder-small.png \
diff --git a/src/chronopicRegister.cs b/src/chronopicRegister.cs
index 463ff835..fab88345 100644
--- a/src/chronopicRegister.cs
+++ b/src/chronopicRegister.cs
@@ -34,7 +34,7 @@ public class ChronopicRegisterPort
public string Port;
public bool FTDI;
public string SerialNumber;
- public enum Types { UNKNOWN, CONTACTS, ENCODER, ARDUINO_RFID, ARDUINO_FORCE, ARDUINO_RUN_ENCODER,
ACCELEROMETER }
+ public enum Types { UNKNOWN, CONTACTS, ENCODER, ARDUINO_RFID, ARDUINO_FORCE, ARDUINO_RUN_ENCODER,
ACCELEROMETER, RUN_WIRELESS }
public Types Type;
public bool ConnectedReal; //if connexion has been done by ChronopicInit.Do
@@ -81,6 +81,8 @@ public class ChronopicRegisterPort
return "Race encoder";
else if(typeStatic == Types.ACCELEROMETER)
return "Accelerometer";
+ else if(typeStatic == Types.RUN_WIRELESS)
+ return "Races (wireless)";
return Catalog.GetString("Unknown");
}
diff --git a/src/gui/chronopicRegister.cs b/src/gui/chronopicRegister.cs
index bc5f6920..77150484 100644
--- a/src/gui/chronopicRegister.cs
+++ b/src/gui/chronopicRegister.cs
@@ -27,7 +27,7 @@ using Mono.Unix;
public class TypePix
{
- public ChronopicRegisterPort.Types Type; //public enum Types { UNKNOWN, CONTACTS, ENCODER,
ARDUINO_FORCE, ARDUINO_RFID, ARDUINO_RUN_ENCODER, ACCELEROMETER }
+ public ChronopicRegisterPort.Types Type;
public Pixbuf Pix;
public TypePix(ChronopicRegisterPort.Types type, Pixbuf pix)
@@ -53,6 +53,7 @@ public static class TypePixList
l.Add(new TypePix(ChronopicRegisterPort.Types.ENCODER, new Pixbuf (null,
Util.GetImagePath(false) + "board-encoder.png")));
l.Add(new TypePix(ChronopicRegisterPort.Types.ARDUINO_RFID, new Pixbuf (null,
Util.GetImagePath(false) + "board-arduino-rfid.png")));
//l.Add(new TypePix(ChronopicRegisterPort.Types.ACCELEROMETER, new Pixbuf (null,
Util.GetImagePath(false) + "board-accelerometer.png")));
+ l.Add(new TypePix(ChronopicRegisterPort.Types.RUN_WIRELESS, new Pixbuf (null,
Util.GetImagePath(false) + "board-run-wireless.png")));
}
public static Pixbuf GetPix(ChronopicRegisterPort.Types type)
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 84abfe8f..5d96677a 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -100,7 +100,7 @@ public partial class ChronoJumpWindow
//[Widget] Gtk.Button button_menu_outside_menu;
//[Widget] Gtk.Button button_menu_outside_menu1;
- private enum linuxTypeEnum { NOTLINUX, LINUX, RASPBERRY, NETWORKS }
+ //private enum linuxTypeEnum { NOTLINUX, LINUX, RASPBERRY, NETWORKS }
private bool encoderUpdateTreeViewWhileCapturing = true;
static Thread threadRFID;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]