Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 234 → Rev 235

/DUBwise/tags/v0.51/j2me/bin/128x128/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-128x128-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-128x128-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 256853
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/128x128/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-128x128-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/128x128/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-128x128-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-128x128-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 230117
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/128x128/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-128x128-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/128x128/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-128x128-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-128x128-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 242784
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/128x128/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-128x128-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/128x128/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-128x128-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-128x128-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 204066
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/128x128/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-128x128-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/128x128/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-128x128-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-128x128-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 433109
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/128x128/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-128x128-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/176x220/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-176x220-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-176x220-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 299066
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/176x220/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-176x220-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/176x220/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-176x220-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-176x220-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 272330
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/176x220/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-176x220-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/176x220/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-176x220-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-176x220-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 284997
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/176x220/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-176x220-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/176x220/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-176x220-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-176x220-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 246279
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/176x220/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-176x220-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/176x220/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-176x220-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-176x220-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 475322
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/176x220/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-176x220-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/200x300/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-200x300-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-200x300-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 328208
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/200x300/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-200x300-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/200x300/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-200x300-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-200x300-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 301472
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/200x300/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-200x300-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/200x300/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-200x300-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-200x300-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 314139
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/200x300/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-200x300-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/200x300/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-200x300-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-200x300-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 275421
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/200x300/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-200x300-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/200x300/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-200x300-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-200x300-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 504464
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/200x300/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-200x300-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/240x320/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-240x320-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-240x320-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 298886
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/240x320/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-240x320-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/240x320/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-240x320-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-240x320-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 272150
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/240x320/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-240x320-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/240x320/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-240x320-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-240x320-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 284817
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/240x320/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-240x320-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/240x320/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-240x320-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-240x320-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 246099
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/240x320/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-240x320-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/240x320/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-240x320-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-240x320-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 475142
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/240x320/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-240x320-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/340x400/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-340x400-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-340x400-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 397435
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/340x400/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-340x400-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/340x400/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-340x400-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-340x400-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 370699
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/340x400/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-340x400-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/340x400/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-340x400-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-340x400-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 383366
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/340x400/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-340x400-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/340x400/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-340x400-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-340x400-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 344648
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/340x400/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-340x400-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/340x400/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-340x400-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-340x400-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 573691
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/340x400/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-340x400-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/480x640/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-480x640-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-480x640-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 542216
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/480x640/cldc11/de_64kbit_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-480x640-cldc11-de_64kbit_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/480x640/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-480x640-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-480x640-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 515480
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/480x640/cldc11/de_tts/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-480x640-cldc11-de_tts-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/480x640/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-480x640-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-480x640-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 528147
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/480x640/cldc11/en_speedy/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-480x640-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/480x640/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-480x640-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-480x640-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 489429
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/480x640/cldc11/no_voice/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-480x640-cldc11-no_voice-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/bin/480x640/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-480x640-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jad
0,0 → 1,8
MIDlet-Jar-URL: DUBwise-480x640-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
MIDlet-Jar-Size: 718472
MIDlet-Name: DUBwise
MIDlet-Vendor: LiGi
MIDlet-Version: 0.51
MIDlet-1: DUBwise, i.png, DUBwise
MIDletX-No-Command: true
MIDlet-Icon: i.png
/DUBwise/tags/v0.51/j2me/bin/480x640/cldc11/wav/bluetooth_on/fileapi_on/devicecontrol_on/DUBwise-480x640-cldc11-wav-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/build.props
0,0 → 1,7
devicecontrol=on
cldc11=on
fileapi=on
screensize=176x220
bluetooth=on
voice_mode=en_speedy
basename=DUBwise-176x220-cldc11-en_speedy-all_firmwares-bluetooth_on-fileapi_on-devicecontrol_on
/DUBwise/tags/v0.51/j2me/build.rb
0,0 → 1,176
#!/usr/bin/env ruby
# little ruby script to build DUBwise
#
# Author: Marcus -LiGi- Bueschleb
#
# see README for further Infos
 
 
resdir="res/"
 
 
 
 
 
 
 
if ARGV.length==2
bindir=ARGV[1]
else
bindir="bin"
end
 
 
ARGV<<"" if ARGV==[]
case ARGV[0]
when "p910"
screensizes=["200x300"]
voice_modes=["en_speedy"]
bluetooth_modes=["off"]
devicecontrol_modes=["off"]
fileapi_modes=["off"]
cldc11_modes=["off"]
 
when "test"
screensizes=["240x320"]
voice_modes=["en_speedy"]
bluetooth_modes=["on"]
devicecontrol_modes=["on"]
fileapi_modes=["on"]
cldc11_modes=["on"]
#firmware_modes=["fc_mk3mag_firmwares"]
#firmware_modes=["all_firmwares"]
firmware_modes=["no_firmwares"]
 
when "bltest"
screensizes=["240x320"]
voice_modes=["en_speedy"]
bluetooth_modes=["on"]
devicecontrol_modes=["on"]
fileapi_modes=["on"]
cldc11_modes=["on"]
firmware_modes=["all_firmwares"]
 
when "test2"
screensizes=["176x220"]
voice_modes=["en_speedy"]
bluetooth_modes=["on"]
devicecontrol_modes=["on"]
fileapi_modes=["on"]
cldc11_modes=["on"]
firmware_modes=["all_firmwares"]
 
when "off"
screensizes=["240x320"]
voice_modes=["en_speedy"]
bluetooth_modes=["off"]
devicecontrol_modes=["off"]
fileapi_modes=["off"]
cldc11_modes=["off"]
 
when "alloff"
screensizes=["128x128","176x220","200x300","240x320","340x400","480x640"]
voice_modes=["no_voice","de_tts","de_64kbit_tts","en_speedy","wav"]
bluetooth_modes=["off"]
devicecontrol_modes=["off"]
fileapi_modes=["off"]
cldc11_modes=["off"]
 
when "n80"
bluetooth_modes=["on"]
screensizes=["340x400"]
voice_modes=["en_speedy"]
fileapi_modes=["on"]
devicecontrol_modes=["on"]
cldc11_modes=["on"]
firmware_modes=["all_firmwares"]
when "common"
screensizes=["128x128","176x220","200x300","240x320","340x400","480x640"]
voice_modes=["no_voice","de_tts","de_64kbit_tts","en_speedy","wav"]
bluetooth_modes=["on"]
fileapi_modes=["on"]
devicecontrol_modes=["on"]
cldc11_modes=["on"]
firmware_modes=["all_firmwares"]
 
else
screensizes=["128x128","176x220","200x300","240x320","340x400","480x640"]
voice_modes=["no_voice","de_tts","de_64kbit_tts","en_speedy","wav"]
bluetooth_modes=["on","off"]
fileapi_modes=["on","off"]
devicecontrol_modes=["on","off"]
cldc11_modes=["on","off"]
firmware_modes=["no_firmwares","fc_mk3mag_firmware","all_firmwares"]
 
end
 
 
puts `mv build.props build.props.bak`
puts `ant clean`
#puts `rm -rf #{bindir}`
puts `mkdir #{bindir}`
 
 
propertys={}
 
firmware_modes.each {|firmware|
cldc11_modes.each { |cldc11|
devicecontrol_modes.each { |devicecontrol|
fileapi_modes.each { |fileapi|
bluetooth_modes.each { |bluetooth|
screensizes.each { |screensize|
voice_modes.each { |voice_mode|
 
p "cleaning ressources"
p `rm -rf tmp/res`
p `mkdir tmp/res`
 
p `cp -v res/images_by_screensize/#{screensize}/* tmp/res/`
p `cp -v res/firmwares/#{firmware}/* tmp/res/`
 
propertys["screensize"]=screensize
p "voice_mode" + voice_mode
p "Screensize " + screensize
 
propertys["voice_mode"]=voice_mode
propertys["bluetooth"]=bluetooth
propertys["fileapi"]=fileapi
propertys["devicecontrol"]=devicecontrol
propertys["cldc11"]=cldc11
 
 
propertys["basename"]="DUBwise-#{screensize}-#{cldc11=="on"?"cldc11":"cldc10"}-#{voice_mode}-#{firmware}-bluetooth_#{bluetooth}-fileapi_#{fileapi}-devicecontrol_#{devicecontrol}"
p `cp -v res/voice_samples_by_name/#{voice_mode}/* tmp/res/`
 
prefs_file= File.new("build.props","w")
propertys.each_pair {|name,value|
p "writing props " + name+"="+value+"\n"
prefs_file << name+"="+value+"\n"
}
prefs_file.close
 
`ant build`.each_line { |l| puts l }
 
`mkdir -p #{bindir}/#{screensize}/#{cldc11=="on"?"cldc11":"cldc10"}/#{voice_mode}/bluetooth_#{bluetooth}/fileapi_#{fileapi}/devicecontrol_#{devicecontrol}`
 
# `mv build/bin/#{propertys["basename"]}* #{bindir}/#{screensize}/#{cldc11=="on"?"cldc11":"cldc10"}/#{voice_mode}/bluetooth_#{bluetooth}/fileapi_#{fileapi}/devicecontrol_#{devicecontrol}`
 
 
 
`mkdir -p #{bindir}/#{screensize}/#{cldc11=="on"?"cldc11":"cldc10"}/#{voice_mode}/bluetooth_#{bluetooth}/fileapi_#{fileapi}/devicecontrol_#{devicecontrol}`
 
`mv build/bin/#{propertys["basename"]}* #{bindir}/#{screensize}/#{cldc11=="on"?"cldc11":"cldc10"}/#{voice_mode}/bluetooth_#{bluetooth}/fileapi_#{fileapi}/devicecontrol_#{devicecontrol}`
}
 
 
}
}
}
}
}
}
puts `mv -v build.props.bak build.props`
 
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/build.xml
0,0 → 1,78
<project name="DUBwise" basedir=".">
<property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/>
 
<property name="project_name" value="DUBwise"/> <!-- jar filename -->
<property name="project_version" value="0.51"/>
 
<property file="build.props"/>
 
<property name="res_dir" location="tmp/res"/>
<property name="build_dir" location="${basedir}/build/"/>
<property name="lib_dir" location="${basedir}/lib/"/>
<property name="src_dir" location="${basedir}/src/"/>
<property name="shrared_src_dir" location="${basedir}/../shared/src/"/>
 
<property name="preprocessed_src_dir" location="${basedir}/tmp/pp_src/"/>
 
<taskdef resource="antenna.properties" classpath="${lib_dir}/antenna.jar"/>
 
<property name="wtk.midp.version" value="2.0"/>
<property name="wtk.cldc.version" value="1.0"/>
 
<property name="wtk.midpapi" value="${lib_dir}/classes_with_fileapi.zip"/>
<target name="build">
<wtkpreprocess version="2" srcdir="${src_dir}" destdir="${preprocessed_src_dir}" symbols="VERSION=${project_version},voice_mode=${voice_mode},bluetooth=${bluetooth},fileapi=${fileapi},devicecontrol=${devicecontrol},cldc11=${cldc11},j2me=true" verbose="false"/>
<wtkpreprocess version="2" srcdir="${shrared_src_dir}" destdir="${preprocessed_src_dir}" symbols="VERSION=${project_version},voice_mode=${voice_mode},bluetooth=${bluetooth},fileapi=${fileapi},devicecontrol=${devicecontrol},cldc11=${cldc11},j2me=true" verbose="false"/>
 
 
 
<wtkbuild destdir="${build_dir}/classes" srcdir="${preprocessed_src_dir}" target="1.1" preverify="true"/>
<wtkjad
jadfile="${build_dir}/bin/${basename}.jad"
jarfile="${build_dir}/bin/${basename}.jar"
update="false"
manifest="${build_dir}/bin/MANIFEST.MF"
name="${project_name}"
vendor="LiGi"
version="${project_version}">
<attribute name="MIDletX-No-Command" value="true"/>
<attribute name="MIDlet-Icon" value="i.png"/>
<midlet name="${project_name}" class="${project_name}" icon="i.png" />
<!-- !!TODO!! Remove Icon JAD entry if no icon is there -->
</wtkjad>
<wtkpackage
jarfile="${build_dir}/bin/${basename}.jar"
jadfile="${build_dir}/bin/${basename}.jad"
basedir="${build_dir}/classes"
manifest="${build_dir}/bin/MANIFEST.MF"
obfuscate="false"
preverify="true">
<fileset dir="${res_dir}/">
<include name="*"/>
</fileset>
</wtkpackage>
 
<!-- !!TODO!! just zip if flag set -->
<zip destfile="${build_dir}/deploy.zip" basedir="${build_dir}/bin/" includes="**/*"/>
</target>
 
<target name="clean">
 
<delete dir="${build_dir}"/>
<delete dir="${preprocessed_src_dir}"/>
<tstamp/>
<mkdir dir="${preprocessed_src_dir}"/>
<mkdir dir="${build_dir}"/>
<mkdir dir="${build_dir}/classes"/>
<mkdir dir="${build_dir}/bin"/>
</target>
 
</project>
/DUBwise/tags/v0.51/j2me/lib/antenna.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/lib/antenna.jar.bak
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/lib/classes.zip
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:executable
+*
\ No newline at end of property
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/lib/classes_with_fileapi.zip
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:executable
+*
\ No newline at end of property
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/firmwares/all_firmwares/fc.bin
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/firmwares/all_firmwares/mk3.bin
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/firmwares/all_firmwares/navi.bin
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/firmwares/fc_mk3mag_firmwares/fc.bin
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/firmwares/fc_mk3mag_firmwares/mk3.bin
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/128x128/clouds.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/128x128/i.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/128x128/lcd_blue.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/128x128/lcd_green.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/128x128/preflight.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/128x128/starfield.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/128x128/symbols.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/176x220/clouds.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/176x220/i.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/176x220/lcd_blue.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/176x220/lcd_green.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/176x220/preflight.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/176x220/starfield.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/176x220/symbols.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/200x300/clouds.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/200x300/i.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/200x300/lcd_blue.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/200x300/lcd_green.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/200x300/preflight.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/200x300/starfield.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/200x300/symbols.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/240x320/clouds.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/240x320/i.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/240x320/lcd_blue.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/240x320/lcd_green.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/240x320/preflight.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/240x320/starfield.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/240x320/symbols.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/340x400/clouds.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/340x400/i.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/340x400/lcd_blue.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/340x400/lcd_green.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/340x400/preflight.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/340x400/starfield.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/340x400/symbols.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/480x640/clouds.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/480x640/i.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/480x640/lcd_blue.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/480x640/lcd_green.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/480x640/preflight.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/480x640/starfield.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/images_by_screensize/480x640/symbols.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/1.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/10.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/11.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/12.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/13.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/2.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/3.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/4.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/5.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/6.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/7.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/8.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/9.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/komma.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_64kbit_tts/volt.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/1.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/10.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/11.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/12.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/13.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/2.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/3.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/4.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/5.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/6.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/7.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/8.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/9.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/komma.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/de_tts/volt.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/1.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/10.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/11.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/12.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/13.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/2.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/3.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/4.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/5.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/6.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/7.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/8.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/9.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/komma.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/en_speedy/volt.mp3
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/1.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/10.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/11.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/12.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/13.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/2.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/3.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/4.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/5.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/6.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/7.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/8.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/9.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/komma.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/res/voice_samples_by_name/wav/volt.wav
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/DUBwise/tags/v0.51/j2me/src/BTSearcher.java
0,0 → 1,140
/***************************************
*
* searches 4 Bluetooth Devices
*
* Author: Marcus -LiGi- Bueschleb
*
* see README for further Infos
*
****************************************/
 
//package org.ligi.dubwise;
//#if bluetooth=="on"
import javax.bluetooth.*;
 
public class BTSearcher
implements DiscoveryListener
{
private LocalDevice m_LclDevice = null;
private DiscoveryAgent m_DscrAgent=null;
 
 
 
public boolean searching=true;
public boolean error=false;
public String err_log="none";
 
 
public void log(String err_str)
{
 
err_log+=err_str;
System.out.println(err_str);
}
 
public final int MAX_DEVICES=10;
 
public RemoteDevice[] remote_devices;
public int remote_device_count=0;
public String[] remote_device_name;
public String[] remote_device_mac;
 
 
public BTSearcher()
{
 
remote_devices=new RemoteDevice[MAX_DEVICES];
remote_device_name=new String[MAX_DEVICES];
remote_device_mac=new String[MAX_DEVICES];
 
remote_device_count=0;
}
 
public void search()
{
searching=true;
remote_device_count=0;
try
{
//First get the local device and obtain the discovery agent.
m_LclDevice = LocalDevice.getLocalDevice();
m_DscrAgent= m_LclDevice.getDiscoveryAgent();
m_DscrAgent.startInquiry(DiscoveryAgent.GIAC,this);
}
catch (BluetoothStateException ex)
{
error=true;
log("Problem in searching the blue tooth devices\n" + ex);
}
 
}
 
public void inquiryCompleted(int transID) {
 
try {
log("search complete with " + remote_device_count + " devices");
for(int i=0;i<remote_device_count;i++)
{
log("#" + i + " -> addr: " + remote_devices[i].getBluetoothAddress());
remote_device_mac[i]=remote_devices[i].getBluetoothAddress();
 
remote_device_name[i]=remote_devices[i].getBluetoothAddress();
try {
log("#" + i + "name:" + remote_devices[i].getFriendlyName(true));
remote_device_name[i]=remote_devices[i].getFriendlyName(true);
}
catch (Exception e)
{
log("Problem getting name of BT-Device( -> taking mac as name): " + e);
}
 
 
}
}
catch (Exception e)
{
log("Problem in searching the blue tooth devices" + e);
}
searching=false;
}
 
 
public void search_again()
{
}
 
//Called when device is found during inquiry
public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod)
{
log("found device ");
try
{
if (remote_device_count!=(MAX_DEVICES-1))
{
remote_devices[remote_device_count]=btDevice;
remote_device_count++;
}
}
catch (Exception e)
{
log("Device Discovered Error: " + e);
}
 
}
 
 
public void serviceSearchCompleted(int transID, int respCode)
{ }
 
public void servicesDiscovered(int transID, ServiceRecord[] records)
{ }
 
 
 
}
 
//#endif
/DUBwise/tags/v0.51/j2me/src/DUBwise.java
0,0 → 1,50
/***********************************************************************
*
* DUBwise == Digital UFO Broadcasting with intelligent service equipment
* main MIDLet Source file
*
* Author: Marcus -LiGi- Bueschleb
* Mailto: LiGi @at@ LiGi DOTT de
*
************************************************************************/
 
 
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
 
public class DUBwise
extends MIDlet
 
{
public Display display;
public DUBwiseCanvas canvas;
public boolean loaded=false;
 
public void log(String str)
{
// canvas.debug.log(str);
}
public void vibrate(int duration)
{
display.vibrate(duration);
}
 
protected void startApp()
throws MIDletStateChangeException
{
 
if (loaded)return;
display = Display.getDisplay(this);
canvas=new DUBwiseCanvas(this);
 
// fire up canvas
display.setCurrent(canvas);
loaded=true;
}
 
public void quit() { notifyDestroyed(); }
protected void pauseApp() {} // not needed right now
protected void destroyApp(boolean arg0) { }
 
}
/DUBwise/tags/v0.51/j2me/src/DUBwiseCanvas.java
0,0 → 1,2527
/***************************************************************
*
* User Interface ( Canvas ) of DUBwise
*
* Author: Marcus -LiGi- Bueschleb
* Mailto: LiGi @at@ LiGi DOTT de
*
***************************************************************/
 
import javax.microedition.lcdui.*;
 
import javax.microedition.media.*;
import javax.microedition.media.control.*;
 
 
 
public class DUBwiseCanvas
extends Canvas
implements Runnable,org.ligi.ufo.DUBwiseDefinitions , DUBwiseUIDefinitions
{
 
//#if fileapi=="on"
DUBwiseFileAccess file_access;
//#endif
 
String act_input_str=" ";
 
 
// for dual use of states
boolean select_paramset4edit;
boolean ipinput4proxy;
 
 
byte ipinput_pos=0;
int[] act_edit_ip;
 
int canvas_width=100;
int canvas_height=100;
 
 
int heading_offset=0;
int act_wp;
 
//#if bluetooth=="on"
private BTSearcher bt_scanner;
//#endif
 
public org.ligi.ufo.MKCommunicator mk=null;
// private MKStatistics mk_stat=null;
private MKParamsEditor params_editor=null;
private MKParamsEditor settings_editor=null;
public DUBwiseDebug debug=null;
 
//#if voice_mode!="no_voice"
public MKStatusVoice status_voice;
//#endif
 
 
private DUBwise root;
public DUBwiseSettings settings;
// public UFOProber mk.ufo_prober;
 
private Image bg_img;
private Image lcd_img;
private Image symbols_img;
private Image err_img;
 
 
int max_lines;
 
 
public byte act_motor=0;
public byte act_motor_increase=0;
public boolean motor_test_sel_all=false;
 
 
/* Graph Vars */
public final static int GRAPH_COUNT=4;
public final static int[] graph_colors={0x156315,0xCC1315,0xf8ef02,0x19194d};
public int[] graph_sources={0,1,2,3};
public String[] graph_names={"nick int","roll int","nick acc","roll acc"};
public int[][] graph_data;
public int graph_offset=0;
// public int lcd_char_width=0;
public int lcd_char_height=0;
 
public int frame_pos=0;
 
// public byte mk.user_intent=USER_INTENT_NONE;
int line_scaler=20;
 
int rawdebug_cursor_y=0;
int rawdebug_off_y=0;
 
public int line_middle_y;
public int graph_height;
 
 
boolean quit=false;
 
int bg_offset=0;
 
// variable to hold the current state
public byte state=STATEID_INITIAL;
public byte nextstate=STATEID_INITIAL;
int local_max=-1;
 
int y_off=0;
int spacer=0;
int spacer1=0;
 
int[] motor_test = {0,0,0,0};
 
String[] menu_items;
byte[] menu_actions;
int act_menu_select=0;
int[] act_menu_select_bak;
String[] lcd_lines =null;
 
 
 
// boolean expert_mode=false;
 
public void setup_main_menu()
{
byte setup_pos=0;
byte[] tmp_actions=new byte[20];
String[] tmp_items=new String[20];
 
 
tmp_actions[setup_pos]=ACTIONID_SETTINGS;
tmp_items[setup_pos++] ="Tool Settings";
 
 
tmp_actions[setup_pos]=ACTIONID_CONN_DETAILS;
tmp_items[setup_pos++] ="Connection";
 
if (settings.expert_mode)
{
tmp_actions[setup_pos]=ACTIONID_DEBUG;
tmp_items[setup_pos++] ="Debug";
 
}
 
if (mk.ufo_prober.is_mk() )
{
tmp_actions[setup_pos]=ACTIONID_MOTORTEST;
tmp_items[setup_pos++] ="Motor Test";
 
tmp_actions[setup_pos]=ACTIONID_KEYCONTROL;
tmp_items[setup_pos++] ="Key-Control";
 
tmp_actions[setup_pos]=ACTIONID_RCDATA;
tmp_items[setup_pos++] ="view RC-data";
 
tmp_actions[setup_pos]=ACTIONID_PARAM_MENU;
tmp_items[setup_pos++] ="Flight Settings";
 
tmp_actions[setup_pos] =ACTIONID_HORIZON;
tmp_items[setup_pos++] ="Artificial Horizon";
}
 
 
 
if (( mk.ufo_prober.is_navi()||mk.ufo_prober.is_mk() ))
{
tmp_actions[setup_pos]=ACTIONID_LCD;
tmp_items[setup_pos++] ="LCD";
}
 
if (( mk.ufo_prober.is_mk() ))
{
tmp_actions[setup_pos]=ACTIONID_GRAPH;
tmp_items[setup_pos++] ="Graph";
}
 
 
 
 
if (( mk.ufo_prober.is_navi()||mk.ufo_prober.is_mk()||mk.ufo_prober.is_mk3mag() ))
{
tmp_actions[setup_pos]=ACTIONID_RAWDEBUG;
tmp_items[setup_pos++] ="Debug Values";
}
 
 
if ( mk.ufo_prober.is_navi())
{
tmp_actions[setup_pos]=ACTIONID_GPSDATA;
tmp_items[setup_pos++] ="view GPS-Data";
 
tmp_actions[setup_pos]=ACTIONID_NC_ERRORS;
tmp_items[setup_pos++] ="view Errors";
 
 
tmp_actions[setup_pos]=ACTIONID_SWITCH_FC;
tmp_items[setup_pos++] ="switch to FC";
 
tmp_actions[setup_pos]=ACTIONID_SWITCH_MK3MAG;
tmp_items[setup_pos++] ="switch to MK3MAG";
 
}
 
if ((mk.ufo_prober.is_mk()||mk.ufo_prober.is_mk3mag() ))
{
tmp_actions[setup_pos]=ACTIONID_SWITCH_NC;
tmp_items[setup_pos++] ="switch to Navi";
}
 
 
//if ((settings.expert_mode)&& ( mk.ufo_prober.is_navi()||mk.ufo_prober.is_mk()||mk.ufo_prober.is_mk3mag()||mk.ufo_prober.is_incompatible() ))
if (settings.expert_mode)
{
tmp_actions[setup_pos]=ACTIONID_FLASH;
tmp_items[setup_pos++] ="Flash Firmware";
}
if ((settings.expert_mode)&& ( mk.ufo_prober.is_mk() ))
{
tmp_actions[setup_pos]=ACTIONID_CAM;
tmp_items[setup_pos++] ="Remote Cam";
}
 
 
if (!settings.expert_mode)
{
tmp_actions[setup_pos]=ACTIONID_ABOUT;
tmp_items[setup_pos++] ="About";
}
 
tmp_actions[setup_pos]=ACTIONID_QUIT;
tmp_items[setup_pos++] ="Quit";
 
 
byte[] tmp_actions_fin=new byte[setup_pos];
String[] tmp_items_fin=new String[setup_pos];
 
if (setup_pos<act_menu_select)
act_menu_select=0;
for ( int tmp_p=0;tmp_p<setup_pos;tmp_p++)
{
tmp_actions_fin[tmp_p]=tmp_actions[tmp_p];
tmp_items_fin[tmp_p] =tmp_items[tmp_p];
}
 
setup_menu(tmp_items_fin,tmp_actions_fin);
}
 
 
public void setup_menu(String[] items , byte[] actions)
{
menu_items=items;
menu_actions=actions;
lcd_lines=new String[menu_items.length];
}
 
public void paint_menu(Graphics g)
{
for ( int i=0;i<menu_items.length;i++)
{
if ((frame_pos%3)!=0)
{
lcd_lines[i]=(act_menu_select==i?">":" ") + menu_items[i];
for ( int ii=0;ii<(18-menu_items[i].length());ii++)
lcd_lines[i]+=" ";
if (act_menu_select==i)
lcd_lines[i]+="<";
}
else
lcd_lines[i]=" " + menu_items[i];
 
}
paint_lcd(g);
}
 
public void menu_keypress(int keyCode)
{
debug.log("Menu with KeyCode:"+keyCode);
switch (getGameAction (keyCode))
{
case UP:
if (act_menu_select!=0)
act_menu_select--;
else
act_menu_select=menu_items.length-1;
break;
case DOWN:
if (act_menu_select<(menu_items.length-1))
act_menu_select++;
else
act_menu_select=0;
break;
}
 
}
 
public boolean cam_condition()
{
return (mk.stick_data.stick[settings.remote_cam_stick]>100);
}
 
// int lcd_top=25;
 
public void paint_lcd(Graphics g)
{
int y;
// int lcd_top= (state==STATEID_EDIT_PARAMS?0:25);
//int lcd_top= 25;
max_lines=(canvas_height-25/*lcd_top*/)/lcd_char_height;
int spacer_left_right=(canvas_width-(20*(lcd_img.getWidth()/222)))/2;
// for(int i=0;i<lcd_lines.length;i++)
 
int display_lines=(lcd_lines.length>max_lines?max_lines:lcd_lines.length);
 
 
int lcd_off= (((state==STATEID_EDIT_PARAMS)&&(!params_editor.select_mode))?params_editor.act_y:act_menu_select)-display_lines+1;
if ( lcd_off<0) lcd_off=0;
 
for(int i=0;i<display_lines;i++)
for (int pos=0;pos<20;pos++)
{
/*if (!bottomup)
y=i*lcd_char_height;
else*/
y=canvas_height-(display_lines-i)*lcd_char_height;
 
g.setClip((lcd_img.getWidth()/222)*pos+spacer_left_right,y,(lcd_img.getWidth()/222),lcd_img.getHeight());
g.drawImage(lcd_img,spacer_left_right+(lcd_img.getWidth()/222)*pos-((pos<lcd_lines[i+lcd_off].length()?lcd_lines[i+lcd_off].charAt(pos):' ')-' ')*(lcd_img.getWidth()/222),y,g.TOP | g.LEFT);
}
}
 
public void load_skin_images()
{
try
{
bg_img=null;
lcd_img=null;
 
// load all needed images
switch (settings.act_skin)
{
case SKINID_DARK:
lcd_img=Image.createImage("/lcd_green.png");
if (settings.do_scrollbg) bg_img=Image.createImage("/starfield.jpg");
break;
case SKINID_LIGHT:
lcd_img=Image.createImage("/lcd_blue.png");
if (settings.do_scrollbg) bg_img=Image.createImage("/clouds.jpg");
break;
}
// lcd_char_width=lcd_img.getWidth()/222;
lcd_char_height=lcd_img.getHeight();
}
 
catch (Exception e)
{
debug.err(e.toString());
}
 
}
public void load_global_images()
{
try
{
symbols_img=Image.createImage("/symbols.png");
 
 
/* if (bg_img!=null)
graph_data=new int[GRAPH_COUNT][bg_img.getWidth()];
else
*/
 
}
catch (Exception e)
{
debug.err(e.toString());
}
}
 
// construct
public DUBwiseCanvas(DUBwise _root)
{
 
act_menu_select_bak=new int[STATEID_COUNT];
for (int i=0;i<STATEID_COUNT;i++)
act_menu_select_bak[i]=0;
//#if fileapi=="on"
file_access=new DUBwiseFileAccess(this);
//#endif
 
root=_root;
 
mk = new org.ligi.ufo.MKCommunicator();
 
 
//#if voice_mode!="no_voice"
status_voice=new MKStatusVoice(mk,this);
//#endif
 
settings = new DUBwiseSettings(this);
settings.load();
load_global_images();
debug = new DUBwiseDebug(this);
 
//#if bluetooth=="on"
bt_scanner = new BTSearcher();
//#endif
 
 
mk.gps_position.act_speed_format=settings.speed_format;
mk.gps_position.act_gps_format= settings.gps_format;
 
chg_state(STATEID_MAINMENU);
 
new Thread(this).start();
 
if (settings.connection_url!="")
connect_mk(settings.connection_url,settings.connection_name);
}
 
/****************************** Thread ******************/
// ticking runnable Section
public void run()
{
while(true)
{
try {
 
 
repaint();
serviceRepaints();
 
System.gc();
long loopStartTime = System.currentTimeMillis();
long sleeptime=0;
// ticked thing
frame_pos++;
 
if (mk.ufo_prober.change_notify)
{
mk.ufo_prober.change_notify=false;
if (mk.ufo_prober.is_incompatible())
{
mk.error_str="incompatible Device";
chg_state(STATEID_ERROR_MSG);
}
else
if (state==STATEID_MAINMENU)
chg_state(STATEID_MAINMENU); // reload mainmenu ( changed content )
}
 
switch(state)
{
case STATEID_RESET_PARAMS:
 
if (mk.bootloader_finish_ok)
{
mk.params.reset();
mk.watchdog.act_paramset=0;
nextstate=STATEID_PARAM_MENU;
success_msg="Param Reset Success!";
chg_state(STATEID_SUCCESS_MSG);
}
break;
case STATEID_GRAPH:
graph_offset--;
if (graph_offset==-graph_data[0].length)
graph_offset=0;
break;
 
case STATEID_CAMMODE:
try
{
if(cam_condition())
{
cam_img=null;
debug.log("get snap\n");
cam_raw = mVideoControl.getSnapshot(null);
try { Thread.sleep(4000); }
catch (Exception e)
{
debug.log("Problem Sleeping ");
}
cam_img = Image.createImage(cam_raw, 0, cam_raw.length);
}
else
{
if (cam_img==null)
;;
}
}
catch ( Exception e)
{
debug.log(e.toString());
}
break;
case STATEID_KEYCONTROL:
//mk.send_keys(keycontrol_bitfield);
break;
 
case STATEID_ERROR_MSG:
lcd_lines[0]=""+mk.error_str;
break;
case STATEID_READ_PARAMS:
if (mk.watchdog.act_paramset==5)
{
chg_state(STATEID_SELECT_PARAMSET);
select_paramset4edit=true;
}
else
{
lcd_lines[0]="Reading Settings ";
lcd_lines[1]=mk.watchdog.act_paramset+"/5 |"+ (mk.watchdog.act_paramset>0?"#":"_") + (mk.watchdog.act_paramset>1?"#":"_") + (mk.watchdog.act_paramset>2?"#":"_")+ (mk.watchdog.act_paramset>3?"#":"_")+ (mk.watchdog.act_paramset>4?"#":"_") + "| ";
if (mk.params.found_incompatible)
{
mk.error_str="incompatible params";
chg_state(STATEID_ERROR_MSG);
}
}
break;
 
case STATEID_MOTORTEST:
 
if (motor_test_sel_all)
for (int m=0;m<4;m++)
{
motor_test[m]+=act_motor_increase;
if (motor_test[m]<0)motor_test[m]=0;
if (motor_test[m]>255)motor_test[m]=255;
}
else
{
motor_test[act_motor]+=act_motor_increase;
if (motor_test[act_motor]<0) motor_test[act_motor]=0;
if (motor_test[act_motor]>255) motor_test[act_motor]=255;
}
 
mk.motor_test(motor_test);
break;
 
case STATEID_STRINGINPUT:
lcd_lines[0]=act_input_str;
for(int tmp_i=act_input_str.length();tmp_i<20;tmp_i++)
lcd_lines[0]+=(char)(0);
 
lcd_lines[1]="";
for(int foo=0;foo<20;foo++)
{
if (foo==ipinput_pos)
lcd_lines[1]+="^";
else
lcd_lines[1]+=" ";
}
break;
 
 
case STATEID_IPINPUT:
if (ipinput4proxy)
act_edit_ip=settings.act_proxy_ip;
else
act_edit_ip=settings.act_conn_ip;
lcd_lines[1]=DUBwiseHelper.ip_str(act_edit_ip,true);
 
lcd_lines[2]="";
for(int foo=0;foo<20;foo++)
{
if (foo==ipinput_pos)
lcd_lines[2]+="^";
else
lcd_lines[2]+=" ";
}
break;
 
case STATEID_MAINMENU:
 
break;
 
//#if bluetooth=="on"
case STATEID_SCANNING:
 
lcd_lines[1]="Bluetooth Devices " + idle_seq[(((frame_pos/5)%idle_seq.length))];
lcd_lines[2]="found " + bt_scanner.remote_device_count;
if (!bt_scanner.searching)
chg_state(STATEID_DEVICESELECT);
break;
//#endif
 
}
 
if (quit)
{
settings.speed_format=mk.gps_position.act_speed_format;
settings.gps_format=mk.gps_position.act_gps_format;
settings.save();
root.quit();
}
 
 
//rescan=false;
 
if (bg_img!=null)
{
bg_offset--;
if (bg_offset==-bg_img.getWidth())
bg_offset=0;
}
 
 
 
//#if devicecontrol=="on"
 
try {
if (settings.keep_lighton) com.nokia.mid.ui.DeviceControl.setLights(0,100);
//#endif
}
catch (Exception e) { }
sleeptime=1000/ 15 - (int) (System.currentTimeMillis()- loopStartTime);
 
if (sleeptime<0)
sleeptime=100; // everyone has fi sleep
try { Thread.sleep(sleeptime); }
catch (Exception e)
{
debug.log("Problem Sleeping ");
}
 
}
catch (Exception e)
{
debug.log("E!:"+e.getMessage());
 
}
}
}
 
 
boolean firstrun=true;
 
public int skin_bg_color()
{
switch (settings.act_skin)
{
case SKINID_DARK:
return 0x000000;
 
default:
case SKINID_LIGHT:
return 0xFFFFFF;
}
}
 
 
public int skin_fg_color()
{
switch (settings.act_skin)
{
case SKINID_DARK:
return 0xFFFFFF;
default:
case SKINID_LIGHT:
return 0x000000;
}
}
 
 
public int check_local_max(int val)
{
if ( val>local_max)
local_max=val;
else if (-val>local_max)
local_max=-val;
return val;
}
// drawing section
public void paint(Graphics g) {
canvas_width=this.getWidth();
canvas_height=this.getHeight();
 
 
 
if (debug.showing)
{
debug.paint(g);
return;
}
 
if (firstrun)
{
if (settings.fullscreen) setFullScreenMode(settings.fullscreen);
firstrun=false;
}
y_off=0;
 
 
 
try {
 
 
 
Font f1 = Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_MEDIUM);
Font f2 = Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL);
 
spacer=(f1.getHeight());
spacer1=(f2.getHeight());
 
//default Font
g.setFont(f1);
 
 
//draw background
if (!settings.do_scrollbg)
{
g.setColor(0xdedfff);
g.fillRect(0,0,canvas_width,symbols_img.getHeight());
 
g.setColor(skin_bg_color());
g.fillRect(0,symbols_img.getHeight(),canvas_width,canvas_height-symbols_img.getHeight());
 
 
}
else
{
g.setColor(0xFFFFFF);
g.fillRect(0,0,canvas_width,canvas_height);
g.drawImage(bg_img,bg_offset,0, g.TOP | g.LEFT);
if (bg_offset+bg_img.getWidth()<canvas_width)
g.drawImage(bg_img,bg_offset+bg_img.getWidth(),0, g.TOP | g.LEFT);
}
 
 
//int bar=0;
// for ( int bar=0;bar<3;bar++)
if (settings.do_scrollbg)
for ( int bar=0;bar<canvas_width/(symbols_img.getWidth()/10)+1;bar++)
{
g.setClip(bar*(symbols_img.getWidth()/10),0,(symbols_img.getWidth()/10),symbols_img.getHeight());;
g.drawImage(symbols_img,bar*(symbols_img.getWidth()/10),0, g.TOP | g.LEFT);
}
 
int symbol_left=0;
int symbol_spacer=5;
 
g.setClip(symbol_left,0,(symbols_img.getWidth()/10),symbols_img.getHeight());;
if (mk.connected)
{
 
if (((mk.stats.bytes_in>>3)&1)==1)
g.drawImage(symbols_img,(-2)*(symbols_img.getWidth()/10),0, g.TOP | g.LEFT);
else
g.drawImage(symbols_img,(-3)*(symbols_img.getWidth()/10),0, g.TOP | g.LEFT);
 
 
symbol_left+=symbol_spacer+(symbols_img.getWidth()/10);
 
 
}
else
g.drawImage(symbols_img,(-1)*(symbols_img.getWidth()/10),0, g.TOP | g.LEFT);
 
 
 
 
 
 
if ((mk.ufo_prober.is_navi()||mk.ufo_prober.is_mk()))
{
 
g.setClip(symbol_left,0,(symbols_img.getWidth()/10),symbols_img.getHeight());;
 
g.drawImage(symbols_img,symbol_left+(-4)*(symbols_img.getWidth()/10),0, g.TOP | g.LEFT);
g.setClip(0,0,canvas_width,canvas_height);
g.setColor(0x03035a);
 
symbol_left+=2+(symbols_img.getWidth()/10);
g.drawString("" + (mk.UBatt()/10) + "," +(mk.UBatt()%10)+"V" , symbol_left,y_off,Graphics.TOP | Graphics.LEFT);
 
 
symbol_left+= g.getFont().stringWidth("88,8V");//;
g.setClip(symbol_left,0,(symbols_img.getWidth()/10),symbols_img.getHeight());
g.drawImage(symbols_img,(-6)*(symbols_img.getWidth()/10) + symbol_left,0, g.TOP | g.LEFT);
 
g.setClip(0,0,canvas_width,canvas_height);
 
symbol_left+=2+(symbols_img.getWidth()/10);
g.drawString(""+mk.SenderOkay() ,symbol_left,y_off,Graphics.TOP | Graphics.LEFT);
 
symbol_left+= g.getFont().stringWidth("8")+symbol_spacer; //,0,(symbols_img.getWidth()/10)+2;
 
 
 
 
if (mk.ufo_prober.is_navi())
{
 
 
g.setClip(symbol_left,0,(symbols_img.getWidth()/10),symbols_img.getHeight());
g.drawImage(symbols_img,(-5)*(symbols_img.getWidth()/10) + symbol_left,0, g.TOP | g.LEFT);
g.setClip(0,0,canvas_width,canvas_height);
symbol_left+=2+(symbols_img.getWidth()/10);
g.drawString(""+mk.gps_position.SatsInUse ,symbol_left,y_off,Graphics.TOP | Graphics.LEFT);
 
}
 
}
 
 
// if (mk.connected)
 
// unclip
g.setClip(0,0,canvas_width,canvas_height);
 
y_off+=symbols_img.getHeight();
graph_height=(canvas_height-y_off)/2;
line_middle_y=graph_height+y_off;
g.setColor(skin_fg_color());
switch(state)
{
case STATEID_HORIZON:
 
g.setStrokeStyle(Graphics.SOLID);
g.setColor(0x6e4e1d);
 
int horizon_height=(canvas_height-y_off)/2;
int horizon_middle=y_off+horizon_height;
 
int horizon_roll_pixels= (mk.angle_roll*horizon_height)/600;
int horizon_roll_pixels_=horizon_roll_pixels;
 
 
int nick_bar_width=canvas_width/4;
int nick_bar_height= nick_bar_width/2;
 
int nick_size=canvas_width/4;
int nick_pixels_y=(mk.angle_nick*horizon_height)/900;
int nick_pixels_x;
if ((mk.angle_roll*mk.angle_nick)>1)
nick_pixels_x=-((int)Math.sqrt(mk.angle_roll*mk.angle_nick)*(canvas_width/2))/(900);
else
nick_pixels_x=((int)Math.sqrt(-mk.angle_roll*mk.angle_nick)*(canvas_width/2))/(900);
while (horizon_roll_pixels!=0)
{
if (horizon_roll_pixels_>0)
{
g.drawLine(0,horizon_middle+horizon_roll_pixels_,canvas_width,horizon_middle-horizon_roll_pixels);
g.drawLine(0,horizon_middle+horizon_roll_pixels_,canvas_width,horizon_middle+horizon_roll_pixels);
}
else
{
g.drawLine(0,horizon_middle+horizon_roll_pixels,canvas_width,horizon_middle-horizon_roll_pixels_);
g.drawLine(0,horizon_middle-horizon_roll_pixels,canvas_width,horizon_middle-horizon_roll_pixels_);
}
// g.drawLine(0,horizon_middle-horizon_roll_pixels_,canvas_width,horizon_middle-horizon_roll_pixels);
horizon_roll_pixels+=(horizon_roll_pixels<0)?1:-1; // go to 0
 
/*g.drawLine(0,horizon_middle-horizon_roll_pixels,canvas_width,horizon_middle+horizon_roll_pixels);
if (horizon_roll_pixels<0)
g.drawLine(0,horizon_middle-horizon_roll_pixels_,canvas_width,horizon_middle-horizon_roll_pixels);
else
g.drawLine(0,horizon_middle+horizon_roll_pixels,canvas_width,horizon_middle+horizon_roll_pixels_);
horizon_roll_pixels+=(horizon_roll_pixels<0)?1:-1; // go to 0
*/
}
 
if (horizon_roll_pixels_>0)
{
g.drawLine(0,horizon_middle+horizon_roll_pixels_,canvas_width,horizon_middle-horizon_roll_pixels);
g.drawLine(0,horizon_middle+horizon_roll_pixels_,canvas_width,horizon_middle+horizon_roll_pixels);
g.fillRect(0,horizon_middle+horizon_roll_pixels_,canvas_width,canvas_height-(horizon_middle+horizon_roll_pixels_));
}
else
{
g.drawLine(0,horizon_middle+horizon_roll_pixels,canvas_width,horizon_middle-horizon_roll_pixels_);
g.drawLine(0,horizon_middle-horizon_roll_pixels,canvas_width,horizon_middle-horizon_roll_pixels_);
g.fillRect(0,horizon_middle-horizon_roll_pixels_,canvas_width,canvas_height-(horizon_middle-horizon_roll_pixels_));
}
 
 
g.setColor(0x254d9e);
g.fillArc((canvas_width-nick_size)/2- nick_pixels_x, horizon_middle-nick_size/2+ nick_pixels_y, nick_size, nick_size, 0,360);
 
// for (i=0;i<horizon_roll_pixels
// g.fillArc(0, 0, canvas_width, canvas_width, 0,45);
/*
int start_angle=(360+mk.gps_position.angle2wp(act_wp) - ((360+mk.debug_data.analog[26]-heading_offset)%360))%360;
// start_angle=0;
start_angle=(360-start_angle +90 -(45/2))%360;
 
g.fillArc(0, 0, canvas_width, canvas_width, start_angle,45);
*/
// g.drawArc(1, 1, canvas_width-2, canvas_width-2, start_angle,45);
// g.drawArc(2, 2, canvas_width-4, canvas_width-4, start_angle ,45);
 
 
g.setColor(skin_fg_color());
 
 
 
if (settings.expert_mode)
{
g.drawString("nick => " + mk.angle_nick,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
 
g.drawString("roll => " + mk.angle_roll,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
}
break;
 
case STATEID_DATABUFF:
g.setFont(f2);
 
y_off=canvas_height-spacer1;
 
for (int pos_y=0;pos_y<(((canvas_height-spacer1)/spacer1));pos_y++)
{
g.drawString(mk.get_buff(pos_y) ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off-=spacer1;
}
break;
 
case STATEID_SUCCESS_MSG:
case STATEID_ERROR_MSG:
if (err_img!=null)
{
int err_img_left=(canvas_width-err_img.getWidth()/2)/2;
int err_img_top=(canvas_height-err_img.getHeight())/2;
if (err_img_top<0)err_img_top=0;
g.setClip(err_img_left,err_img_top,err_img.getWidth()/2,err_img.getHeight());
g.drawImage(err_img,err_img_left-((state==STATEID_SUCCESS_MSG)?0:(err_img.getWidth()/2)),err_img_top, g.TOP | g.LEFT);
}
paint_lcd(g);
 
break;
 
case STATEID_GPSVIEW:
 
g.setFont(f2);
 
g.setStrokeStyle(Graphics.SOLID);
g.setColor(0x0000ff);
 
 
// g.fillArc(0, 0, canvas_width, canvas_width, 0,45);
 
/*
int start_angle=(360+mk.gps_position.angle2wp(act_wp) - ((360+mk.debug_data.analog[26]-heading_offset)%360))%360;
// start_angle=0;
start_angle=(360-start_angle +90 -(45/2))%360;
 
g.fillArc(0, 0, canvas_width, canvas_width, start_angle,45);
*/
// g.drawArc(1, 1, canvas_width-2, canvas_width-2, start_angle,45);
// g.drawArc(2, 2, canvas_width-4, canvas_width-4, start_angle ,45);
 
 
g.setColor(skin_fg_color());
 
g.drawString("Used Sats: " + mk.gps_position.SatsInUse + " | Packages: " + mk.stats.navi_data_count ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("Lat: " + mk.gps_position.Latitude_str() ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("Long: " + mk.gps_position.Longitude_str() ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("Altitude: " + mk.gps_position.Altitude ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("GrSpeed: " + mk.gps_position.GroundSpeed_str() ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("Heading: " + mk.gps_position.Heading ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("CompasHeading: " + mk.gps_position.CompasHeading ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("Target-Lat: " + mk.gps_position.TargetLatitude_str() ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
g.drawString("Target-Long: " + mk.gps_position.TargetLongitude_str() ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("Target-Alt: " + mk.gps_position.TargetAltitude ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
 
g.drawString("Home-Lat: " + mk.gps_position.HomeLatitude_str() ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("Home-Long: " + mk.gps_position.HomeLongitude_str() ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("Home-Alt: " + mk.gps_position.HomeAltitude ,0,y_off,Graphics.TOP | Graphics.LEFT);
 
y_off+=spacer1;
g.drawString("Distance : " + mk.gps_position.Distance2Target ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
g.drawString("Angle: " + mk.gps_position.Angle2Target ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString("WayPoints: " + mk.gps_position.WayPointNumber + "/" + mk.gps_position.WayPointIndex ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
 
 
 
/*
g.drawString("" + mk.gps_position.NameWP[act_wp] ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
 
g.drawString("Lat: " + mk.gps_position.WP_Latitude_str(act_wp) ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
 
g.drawString("Long: " + mk.gps_position.WP_Longitude_str(act_wp) ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
 
 
g.drawString("Distance: " + mk.gps_position.distance2wp(act_wp) ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
 
g.drawString("Angle: " + mk.gps_position.angle2wp(act_wp) ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
 
g.drawString("Compas Heading: " + (360+mk.debug_data.analog[26]-heading_offset)%360) + "(" +mk.debug_data.analog[26] +")" ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
*/
 
break;
 
case STATEID_RESET_PARAMS:
case STATEID_FLASHING:
g.setFont(f2);
int msg_pos=0;
while (mk.flash_msgs[msg_pos]!=null)
{
g.drawString(mk.flash_msgs[msg_pos] ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
msg_pos++;
}
break;
 
case STATEID_CAMMODE:
 
if (cam_img!=null)
g.drawImage(cam_img,0,0,g.TOP | g.LEFT);
g.drawString("condition: " + cam_condition() ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.drawString("width " + cam_img.getWidth(),0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.drawString("height " + cam_img.getHeight(),0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
break;
 
case STATEID_STICKVIEW:
 
for(int tmp_y=0;tmp_y<10;tmp_y++)
{
g.drawString(""+tmp_y+"(" + mk.params.stick_names[tmp_y] + ")=>"+mk.stick_data.stick[tmp_y],0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
}
break;
 
case STATEID_KEYCONTROL:
 
y_off+=spacer;
g.drawString("UP or DOWN =>nick " + mk.extern_control[EXTERN_CONTROL_NICK],0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.drawString("LEFT or RIGHT =>roll " + mk.extern_control[EXTERN_CONTROL_ROLL],0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.drawString("1 or 4 =>altitude " + mk.extern_control[EXTERN_CONTROL_HIGHT],0,y_off,Graphics.TOP | Graphics.LEFT);
 
y_off+=spacer;
g.drawString("2 or 3 =>gier " + mk.extern_control[EXTERN_CONTROL_GIER],0,y_off,Graphics.TOP | Graphics.LEFT);
 
y_off+=spacer;
g.drawString("6 or 9 =>gas " + mk.extern_control[EXTERN_CONTROL_GAS],0,y_off,Graphics.TOP | Graphics.LEFT);
 
y_off+=spacer;
g.drawString("* and # =>exit",0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
/* g.drawString("* and Fire =>Start Engines",0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.drawString("* and 0 =>Stop Engines",0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
*/
g.drawString("sent:" + mk.stats.external_control_request_count +"confirm:" + mk.stats.external_control_confirm_frame_count,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
// g.drawString("bf1:"+ keycontrol_bitfield[0] ,0,y_off,Graphics.TOP | Graphics.LEFT);
//g.drawString("bf2:"+ keycontrol_bitfield[1] ,canvas_width/2,y_off,Graphics.TOP | Graphics.LEFT);
break;
 
case STATEID_MOTORTEST:
for (int bar=0;bar<4;bar++)
 
{
g.setColor(((bar==act_motor)|motor_test_sel_all)?0x44CC44:0x4444DD);
g.fillRect(canvas_width/(8*2)+bar*2*canvas_width/8,y_off+10,canvas_width/8,y_off+20+motor_test[bar]);
g.setColor(0x000000);
g.drawString(""+motor_test[bar] ,canvas_width/8+bar*2*canvas_width/8,y_off+10,Graphics.TOP | Graphics.HCENTER);
g.drawString(""+mk.debug_data.motor_val(bar) ,canvas_width/8+bar*2*canvas_width/8,y_off+25,Graphics.TOP | Graphics.HCENTER);
}
break;
 
case STATEID_EDIT_PARAMS:
params_editor.paint(g);
break;
 
case STATEID_SELECT_COMPORT:
g.drawString("ports: " + System.getProperty("microedition.commports"),0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
paint_menu(g);
break;
 
//#if fileapi=="on"
case STATEID_FILEOPEN:
y_off+=spacer;
g.drawString("act_path" + file_access.act_path() ,0,y_off,Graphics.TOP | Graphics.LEFT);
paint_menu(g);
break;
//#endif
 
 
case STATEID_PARAM_MENU:
paint_menu(g);
break;
case STATEID_STRINGINPUT:
case STATEID_ABOUT:
case STATEID_IPINPUT:
 
paint_lcd(g);
break;
 
case STATEID_READ_PARAMS:
paint_lcd(g);
break;
 
 
//#if bluetooth=="on"
case STATEID_SCANNING:
paint_lcd(g);
break;
//#endif
case STATEID_RAWDEBUG:
g.setFont(f2);
rawdebug_off_y=0;
if ((rawdebug_cursor_y+3)*spacer1>canvas_height)
rawdebug_off_y=((rawdebug_cursor_y+3)*spacer1-canvas_height)/spacer1;
for (int i=0;i<(canvas_height/spacer1)-1;i++)
{
if (i+rawdebug_off_y==rawdebug_cursor_y)
{
g.setColor(0x0000CC);
g.fillRect(0,y_off,canvas_width,spacer1);
 
g.setColor(skin_fg_color());
 
 
}
if (i+rawdebug_off_y<32) //todo better style
g.drawString(mk.debug_data.names[i+rawdebug_off_y] + mk.debug_data.analog[i+rawdebug_off_y] ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
}
 
 
 
break;
 
case STATEID_CONN_DETAILS:
g.setFont(f1);
g.drawString("Connection::",0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.setFont(f2);
 
g.drawString(" URL:" + mk.mk_url,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString(" Name:" + mk.name,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString(" "+mk.ufo_prober.extended_name()+ " (" + (mk.connected?("open"+((System.currentTimeMillis()- mk.connection_start_time)/1000)+"s"):"closed")+"):",0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
g.drawString(" Version:" + mk.version.str ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
g.drawString(" Slave-Addr:" + mk.slave_addr,0,y_off,Graphics.TOP | Graphics.LEFT);
 
paint_menu(g);
 
break;
 
case STATEID_TRAFFIC:
g.setFont(f1);
g.drawString("Packet Traffic (over "+mk.conn_time_in_s()+"s):",0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.setFont(f2);
g.drawString( ">>in:"+mk.stats.bytes_in+ " bytes => " + mk.stats.bytes_in/mk.conn_time_in_s() + " bytes/s",0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
 
 
 
g.drawString( " debug:"+mk.stats.debug_data_count+ " LCD:" + mk.stats.lcd_data_count + " vers:" + mk.stats.version_data_count,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
g.drawString( " rc:"+mk.stats.stick_data_count+" params:"+mk.stats.params_data_count + " GPS:"+mk.stats.navi_data_count ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
g.drawString( " debug_names:" + mk.stats.debug_names_count + " angles:" + mk.stats.angle_data_count ,0,y_off,Graphics.TOP | Graphics.LEFT);
 
 
g.drawString( " other:"+mk.stats.other_data_count,0,y_off,Graphics.TOP | Graphics.LEFT);
 
y_off+=spacer1+3;
g.drawString( "<<out:"+mk.stats.bytes_out + " bytes =>" + mk.stats.bytes_out/mk.conn_time_in_s() + "bytes/s", 0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
g.drawString( " LCD:" + mk.stats.lcd_data_request_count + " vers:" + mk.stats.version_data_request_count,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
g.drawString( " params:"+mk.stats.params_data_request_count +" rc:" + mk.stats.stick_data_request_count ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
g.drawString( " resend:"+mk.stats.resend_count ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
paint_menu(g);
break;
 
case STATEID_PROXY:
g.setFont(f1);
g.drawString("Host:",0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.setFont(f2);
g.drawString(" " + mk.proxy.url + "("+((mk.proxy.connected)?"open":"closed") +")",0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
 
break;
 
case STATEID_SETTINGSMENU:
 
settings_editor.paint(g);
break;
// falltru wanted
// case STATEID_SELECT_SPEED_FORMAT:
// case STATEID_SELECT_GPS_FORMAT:
case STATEID_MAINMENU:
 
 
 
case STATEID_SELECT_PARAMSET:
case STATEID_HANDLE_PARAMS:
case STATEID_DEVICESELECT:
 
paint_menu(g);
break;
 
case STATEID_GRAPH:
g.setClip(0,0,canvas_width,canvas_height);
 
g.setStrokeStyle(Graphics.DOTTED);
g.setColor(0xe1dddd);
g.setFont(f2);
// LEGEND
if (settings.graph_legend) for (int d=0;d<GRAPH_COUNT;d++)
{/*
g.setColor(graph_colors[d]);
g.fillRect(0,y_off +spacer1/2-2 ,20,4);
g.setColor(skin_fg_color());
g.drawString(graph_names[d] + mk.debug_data.analog[graph_sources[d]],23,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer1;
 
*/
g.setColor(graph_colors[d]);
g.fillRect(canvas_width-20,canvas_height-spacer*(d+1)+(spacer)/2-2 ,20,4);
g.setColor(skin_fg_color());
g.drawString(graph_names[d] /*+ mk.debug_data.analog[graph_sources[d]]*/,canvas_width-23,canvas_height-spacer*(d+1),Graphics.TOP | Graphics.RIGHT);
// y_off+=spacer1;
 
}
 
if (settings.graph_scale)
{
int scale=10;
// if ((10/line_scaler)<5)scale =1;
if (((10/line_scaler)*2)<(canvas_height/2) )scale =10;
if (((50/line_scaler)*2)<(canvas_height/2) )scale =50;
if (((100/line_scaler)*2)<(canvas_height/2) )scale =100;
if (((250/line_scaler)*2)<(canvas_height/2) )scale =250;
if (((500/line_scaler)*2)<(canvas_height/2) )scale =500;
if (((1000/line_scaler)*2)<(canvas_height/2) )scale =1000;
if (((10000/line_scaler)*2)<(canvas_height/2) )scale =10000;
 
 
 
 
// g.drawString("scale:"+scale + "line scaler" + line_scaler,0,y_off,Graphics.TOP | Graphics.LEFT);
 
 
int jump=0;
 
g.drawLine(0,line_middle_y,canvas_width,line_middle_y);
while ((jump/line_scaler)<graph_height)
{
g.drawString(""+jump,0,line_middle_y - jump/line_scaler,Graphics.TOP | Graphics.LEFT);
if (jump!=0)g.drawString("-"+jump,0,line_middle_y + jump/line_scaler,Graphics.TOP | Graphics.LEFT);
g.drawLine(0,line_middle_y - jump/line_scaler,canvas_width,line_middle_y - jump/line_scaler);
g.drawLine(0,line_middle_y + jump/line_scaler,canvas_width,line_middle_y + jump/line_scaler);
jump+=scale;
}
}
 
 
 
for (int gr=0;gr<GRAPH_COUNT;gr++)
{
 
 
// !!TODO checkme
g.setColor(graph_colors[gr]);
 
graph_data[gr][-graph_offset]=check_local_max(mk.debug_data.analog[graph_sources[gr]]);
 
line_scaler= local_max/graph_height+1;
 
 
for ( int x=0;x<canvas_width;x++)
{
int p= (((-graph_offset+x-canvas_width-5)));
if (p<1)
p+=graph_data[0].length;
p%=(graph_data[0].length-1);
draw_graph_part(g,x,graph_data[gr][p]/line_scaler,graph_data[gr][p+1]/line_scaler);
}
}
 
 
 
break;
 
case STATEID_FLIGHTVIEW:
/*
g.setClip(canvas_width/2-load_img.getWidth()/6+1,canvas_height/2-load_img.getHeight()/8+1, load_img.getWidth()/4,load_img.getHeight()/3);;
if (( mk.LCD.init_state!=-1)||(mk.LCD.act_mk_page!=mk.LCD.act_user_page)) g.drawImage(load_img,canvas_width/2-load_img.getWidth()/8 - ((((frame_pos/3)%12)%4)*(load_img.getWidth()/4)) ,canvas_height/2-load_img.getHeight()/6- ((((frame_pos/3)%12)/4)*(load_img.getHeight()/3)), g.TOP | g.LEFT);
 
*/
/*
// !!TODO!! check exactly which version those Datas where introduced
if (mk.version.compare(0,60)==mk.version.VERSION_PREVIOUS)
{
g.drawString("Voltage: " + (mk.debug_data.UBatt()/10) + "," +(mk.debug_data.UBatt()%10)+"V" ,0,y_off,Graphics.TOP | Graphics.LEFT);
g.drawString("Sender: " + mk.debug_data.SenderOkay(),canvas_width/2,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
}
 
g.drawString(mk.version.str+"(d"+mk.debug_data_count+ "l" + mk.lcd_data_count+ "v" + mk.version_data_count+"o"+mk.other_data_count+"p"+mk.params_data_count+")",0,y_off,Graphics.TOP | Graphics.LEFT);
 
y_off+=spacer;
 
g.drawString("n:"+mk.debug_data.nick_int() + " r:"+mk.debug_data.roll_int() + " an:"+mk.debug_data.accnick() + " ar:"+mk.debug_data.accroll() ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.drawString("m1:"+mk.debug_data.motor_val(0) + " m2:"+mk.debug_data.motor_val(1)+" m3:"+mk.debug_data.motor_val(2) + " m4:"+mk.debug_data.motor_val(3) ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
if (mk.connected)
{
g.drawString("time conn:" +((System.currentTimeMillis()- mk.connection_start_time)/1000)+"s" ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.drawString("time motor>15:" +(mk_stat.motor_on_time/1000) +"s" ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.drawString("time motor=15:" +(mk_stat.motor_stand_time/1000) +"s" ,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=spacer;
g.drawString("lcd:" + mk.LCD.act_mk_page + "/" + mk.LCD.pages + " ( wanted: " + mk.LCD.act_user_page + "state:" + mk.LCD.init_state +")" ,0,y_off,Graphics.TOP | Graphics.LEFT);
 
y_off+=spacer;
g.drawString("lcd-key:" + mk.LCD.act_key ,0,y_off,Graphics.TOP | Graphics.LEFT);
 
}
*/
int spacer_left_right=(canvas_width-(20*(lcd_img.getWidth()/222)))/2;
 
y_off=canvas_height-4*lcd_img.getHeight();
for ( int foo=0;foo<4;foo++)
{
for (int x=0;x<20;x++)
{
g.setClip(spacer_left_right+(lcd_img.getWidth()/222)*x,y_off,(lcd_img.getWidth()/222),lcd_img.getHeight());
g.drawImage(lcd_img,spacer_left_right+(lcd_img.getWidth()/222)*x-(mk.LCD.get_act_page()[foo].charAt(x)-' ')*(lcd_img.getWidth()/222),y_off, g.TOP | g.LEFT);
 
}
y_off+=lcd_img.getHeight();
}
 
g.setClip(0,0,canvas_width,canvas_height);
 
}
 
 
} catch (Exception e) {}
 
}
Player mPlayer;
VideoControl mVideoControl;
Image cam_img;
Image last_cam_img;
int cam_img_seq=0;
byte[] cam_raw;
 
private void connect_mk(String url,String name)
{
// mk.ufo_prober.bluetooth_probe(url);
settings.connection_url=url;
settings.connection_name=name;
mk.connect_to(url,name);
}
 
public void draw_graph_part(Graphics g,int x,int y1,int y2)
{
if ( canvas_width>200)
{
g.fillRect(x,line_middle_y-y1,1,1 );
if (y1>y2)
g.fillRect(x,line_middle_y-y1,1,y1-y2);
else
g.fillRect(x,line_middle_y-y2,1,y2-y1);
 
}
else
{
g.fillRect(x,line_middle_y-y1,1,1 );
if (y1>y2)
g.fillRect(x,line_middle_y-y1,1,y1-y2);
else
g.fillRect(x,line_middle_y-y2,1,y2-y1);
}
}
 
 
/*********************************************** input Section **********************************************/
 
 
 
// public final String intro_str=" Digital Ufo Broadcasting with intelligent service equipment by Marcus -LiGi- Bueschleb ; Big Up Holger&Ingo for the MikroKopter Project (http://www.mikrokopter.de) ";
 
// int intro_str_pos=0;
// int intro_str_delay=3;
// boolean init_bootloader=false;
String success_msg="";
 
public void chg_state(byte next_state)
{
settings_editor = null;
params_editor = null;
err_img=null;
graph_data=null;
 
act_menu_select_bak[state]=act_menu_select;
act_menu_select=act_menu_select_bak[next_state];
 
 
/*
// tasks on state exit
switch(next_state)
{
case STATEID_SETTINGSMENU:
 
break;
}
*/
// prepare next state
switch(next_state)
{
case STATEID_SUCCESS_MSG:
case STATEID_ERROR_MSG:
lcd_lines=new String[1];
lcd_lines[0]=""+((next_state==STATEID_SUCCESS_MSG)?success_msg:mk.error_str);
try
{
err_img=Image.createImage("/preflight.jpg");
}
catch (Exception e)
{
debug.log("problem loading error image");
}
break;
case STATEID_EDIT_PARAMS:
params_editor = new MKParamsEditor(this,mk.params,STATEID_HANDLE_PARAMS);
break;
case STATEID_STRINGINPUT:
lcd_lines=new String[2];
lcd_lines[0]=act_input_str;
lcd_lines[1]="^";
break;
case STATEID_FLIGHTVIEW:
mk.user_intent=USER_INTENT_LCD;
break;
case STATEID_RESET_PARAMS:
 
mk.bootloader_intension_flash=false;
mk.bl_retrys=0;
mk.init_bootloader=true;
break;
 
case STATEID_FLASHING:
mk.bootloader_intension_flash=true;
mk.bl_retrys=0;
mk.init_bootloader=true;
break;
 
//#if fileapi=="on"
case STATEID_FILEOPEN:
file_access.trigger();
break;
//#endif
 
case STATEID_STICKVIEW:
mk.user_intent=USER_INTENT_RCDATA;
break;
case STATEID_SELECT_COMPORT:
menu_items=new String[6];
lcd_lines=new String[6];
menu_items[0]="com0";
menu_items[1]="com1";
menu_items[2]="com2";
menu_items[3]="com3";
menu_items[4]="com4";
 
menu_items[5]="back";
break;
 
 
case STATEID_ABOUT:
lcd_lines=credits;
lcd_lines[1]=" ufo-lib: " + mk.lib_version_str();
act_menu_select=max_lines-1;
break;
case STATEID_CONN_DETAILS:
setup_menu(conn_details_menu_items,conn_details_menu_actions);
break;
 
 
case STATEID_PARAM_MENU:
setup_menu(param_menu_items,param_menu_actions);
break;
case STATEID_TRAFFIC:
setup_menu(onlyback_menu_items,back_to_conndetails_actions);
break;
case STATEID_CAMMODE:
mk.user_intent=USER_INTENT_RCDATA;
if (mVideoControl==null)
try
{
debug.log("creating player\n");
mPlayer = Manager.createPlayer("capture://video?encoding=png&width=2048&height=1536");
debug.log("realizing player\n");
mPlayer.realize();
debug.log("get_videocontrol\n");
mVideoControl = (VideoControl)mPlayer.getControl("VideoControl");
debug.log("switching Canvas\n");
mVideoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
debug.log("get snap\n");
byte[] raw = mVideoControl.getSnapshot(null);
}
catch ( Exception e)
{
debug.log(e.toString());
}
 
 
break;
case STATEID_KEYCONTROL:
mk.user_intent= USER_INTENT_EXTERNAL_CONTROL;
keycontrol_exit=0;
break;
 
 
 
case STATEID_READ_PARAMS:
mk.user_intent=USER_INTENT_PARAMS;
lcd_lines=new String[2];
lcd_lines[0]="Reading Settings ";
lcd_lines[1]=mk.watchdog.act_paramset+"/5 |"+ (mk.watchdog.act_paramset>0?"#":"_") + (mk.watchdog.act_paramset>1?"#":"_") + (mk.watchdog.act_paramset>2?"#":"_")+ (mk.watchdog.act_paramset>3?"#":"_")+ (mk.watchdog.act_paramset>4?"#":"_") + "| ";
 
break;
 
case STATEID_IPINPUT:
lcd_lines=new String[3];
lcd_lines[0]="Address (IP:Port): ";
break;
 
//#if bluetooth=="on"
case STATEID_SCANNING:
lcd_lines=new String[3];
lcd_lines[0]="Searching for";
lcd_lines[1]="Bluetooth Devices";
lcd_lines[2]="found";
 
mk.close_connections(true);
bt_scanner.search();
break;
//#endif
 
case STATEID_HANDLE_PARAMS:
menu_items=handle_params_menu_items;
menu_actions=handle_params_menu_actions;
lcd_lines=new String[menu_items.length];
 
break;
 
case STATEID_SELECT_PARAMSET:
menu_items=new String[6];
for (int i=0;i<5;i++)
menu_items[i]=""+(i+1)+": " + mk.params.getParamName(i) + ((i==mk.params.active_paramset)?"*":"");
 
menu_items[5]="back";
lcd_lines=new String[6];
break;
 
//#if bluetooth=="on"
case STATEID_DEVICESELECT:
menu_items=new String[bt_scanner.remote_device_count+2];
lcd_lines=new String[bt_scanner.remote_device_count+2];
 
for (int i=0;i<bt_scanner.remote_device_count;i++)
menu_items[i]=bt_scanner.remote_device_name[i];
menu_items[bt_scanner.remote_device_count]="scan again";
menu_items[bt_scanner.remote_device_count+1]="cancel";
 
break;
//#endif
 
case STATEID_MAINMENU:
setup_main_menu();
 
break;
 
case STATEID_SETTINGSMENU:
settings_editor = new MKParamsEditor(this,settings,STATEID_MAINMENU);
/*
menu_items=new String[settings_menu_items.length];
for(int cnt=0;cnt<settings_menu_items.length;cnt++)
menu_items[cnt]=settings_menu_items[cnt];
 
menu_items[0]+=(settings.act_skin==SKINID_DARK)?"Dark":"Light";
menu_items[1]+=(!settings.do_sound)?"Off":"On";
menu_items[2]+=(!settings.do_vibra)?"Off":"On";
menu_items[3]+=(!settings.do_scrollbg)?"Off":"On";
menu_items[4]+=(!settings.fullscreen)?"Off":"On";
menu_items[5]+=(mk.gps_position.act_gps_format==0)?" Decimal":" MinSec";
menu_items[6]+=(mk.gps_position.act_speed_format==0)?" KM/H":((mk.gps_position.act_speed_format==1)?" MP/H":"CM/S");
 
//#if devicecontrol=="on"
menu_items[7]+=(!settings.keep_lighton)?"Off":"On";
//#endif
menu_items[8]+=(!settings.expert_mode)?" Off":" On";
menu_actions=settings_menu_actions;
lcd_lines=new String[menu_items.length];*/
break;
 
case STATEID_RAWDEBUG:
mk.user_intent=USER_INTENT_RAWDEBUG;
break;
 
 
case STATEID_GRAPH:
graph_data=new int[GRAPH_COUNT][this.getWidth()*2];
for (int c=0;c<graph_data[0].length;c++)
for (int d=0;d<GRAPH_COUNT;d++)
graph_data[d][c]=-1;
mk.user_intent=USER_INTENT_GRAPH;
local_max=1;
break;
 
}
mk.watchdog.resend_timeout=0;
 
// switch state
state=next_state;
} // void chg_state
 
 
public void keyReleased(int keyCode)
{
switch(state)
{
case STATEID_MOTORTEST:
act_motor_increase=0;
break;
case STATEID_KEYCONTROL:
if (keyCode==KEY_POUND)
keycontrol_exit &= 255^1;
else
if (keyCode==KEY_STAR)
keycontrol_exit &= 255^2;
else
mod_external_control_by_keycode(keyCode,(byte)0);
 
/*
mk.send_keys(keycontrol_bitfield);
*/
break;
}
 
}
 
 
public void mod_external_control_by_keycode(int keyCode,byte mul)
{
 
if (keyCode==this.KEY_NUM2)
mk.extern_control[EXTERN_CONTROL_GIER]=(byte)(-mul*settings.default_extern_control[EXTERN_CONTROL_GIER]);
else if (keyCode==this.KEY_NUM3)
mk.extern_control[EXTERN_CONTROL_GIER]=(byte)(mul*settings.default_extern_control[EXTERN_CONTROL_GIER]);
 
else if (keyCode==this.KEY_NUM1)
mk.extern_control[EXTERN_CONTROL_HIGHT]+=mul*settings.default_extern_control[EXTERN_CONTROL_HIGHT];
else if (keyCode==this.KEY_NUM4)
mk.extern_control[EXTERN_CONTROL_HIGHT]-=mul*settings.default_extern_control[EXTERN_CONTROL_HIGHT];
 
 
else if (keyCode==this.KEY_NUM6)
{ if ( mk.extern_control[EXTERN_CONTROL_GAS]<255) mk.extern_control[EXTERN_CONTROL_GAS]+=mul*settings.default_extern_control[EXTERN_CONTROL_GAS]; }
else if (keyCode==this.KEY_NUM9)
{ if ( mk.extern_control[EXTERN_CONTROL_GAS]>0) mk.extern_control[EXTERN_CONTROL_GAS]-=mul*settings.default_extern_control[EXTERN_CONTROL_GAS]; }
 
else switch (getGameAction (keyCode))
{
case UP:
mk.extern_control[EXTERN_CONTROL_NICK]=(byte)(mul*settings.default_extern_control[EXTERN_CONTROL_NICK]);
break;
case DOWN:
mk.extern_control[EXTERN_CONTROL_NICK]=(byte)(-mul*settings.default_extern_control[EXTERN_CONTROL_NICK]);
 
break;
case LEFT:
mk.extern_control[EXTERN_CONTROL_ROLL]=(byte)(mul*settings.default_extern_control[EXTERN_CONTROL_ROLL]);
break;
case RIGHT:
mk.extern_control[EXTERN_CONTROL_ROLL]=(byte)(-mul*settings.default_extern_control[EXTERN_CONTROL_ROLL]);
break;
case FIRE:
 
break;
}
 
}
 
// to check if 2 keys are pressed
byte keycontrol_exit=0;
// public final static int[] keycontrol_bitfield={0,0};
 
 
public void pointerPressed (int pointer_x, int pointer_y)
{
if (pointer_y<lcd_img.getHeight())
keyPressed(KEY_STAR);
else
switch(state)
{
case STATEID_CONN_DETAILS:
case STATEID_SETTINGSMENU:
case STATEID_FILEOPEN:
case STATEID_TRAFFIC:
case STATEID_SELECT_COMPORT:
case STATEID_MAINMENU:
case STATEID_SELECT_PARAMSET:
case STATEID_DEVICESELECT:
if (pointer_y>canvas_height-lcd_img.getHeight()*menu_items.length)
{
act_menu_select=(pointer_y-(canvas_height-lcd_img.getHeight()*menu_items.length))/lcd_img.getHeight();
keyPressed(getKeyCode(FIRE));
}
break;
}
}
 
 
int last_keycode=-1;
int repeat_keycode=0;
public void keyPressed(int keyCode)
{
if (last_keycode==keyCode)
repeat_keycode++;
else
{
repeat_keycode=0;
last_keycode=keyCode;
}
debug.log("KeyCode:"+keyCode);
// key-actions common in all states
debug.process_key(keyCode);
if (((keyCode==KEY_STAR) || (keyCode==settings.key_back) )&&(state!=STATEID_KEYCONTROL))//&&(state!= STATEID_STRINGINPUT))
{
chg_state(STATEID_MAINMENU);
return;
}
 
 
if (((keyCode==KEY_POUND)||(keyCode==settings.key_fullscreen))&&(state!=STATEID_KEYCONTROL))
{
settings.toggle_fullscreen();
 
return;
}
 
// key actions per state
switch(state)
{
 
case STATEID_SUCCESS_MSG:
chg_state(nextstate);
break;
case STATEID_ERROR_MSG:
chg_state(STATEID_MAINMENU);
break;
case STATEID_STRINGINPUT:
if ((keyCode>=KEY_NUM2)&&(keyCode<=KEY_NUM9))
{
act_input_str=act_input_str.substring(0,ipinput_pos) +
 
 
(char)( 97 + (keyCode-KEY_NUM2)*3 + ((keyCode>KEY_NUM7)?1:0) +(repeat_keycode%(((keyCode==KEY_NUM7)||(keyCode==KEY_NUM9))?4:3)))
 
+ act_input_str.substring(ipinput_pos+1,act_input_str.length());
}
else if ((keyCode==KEY_NUM0))
{
act_input_str=act_input_str.substring(0,ipinput_pos) +
act_input_str.substring(ipinput_pos+1,act_input_str.length());
}
else
{
switch (getGameAction (keyCode))
{
 
case LEFT:
if(ipinput_pos>0) ipinput_pos--;
break;
case RIGHT:
if(ipinput_pos<19) ipinput_pos++;
break;
 
case UP:
act_input_str=act_input_str.substring(0,ipinput_pos) +
(char)((byte) act_input_str.charAt(ipinput_pos)-1) + act_input_str.substring(ipinput_pos+1,act_input_str.length());
 
break;
case DOWN:
act_input_str=act_input_str.substring(0,ipinput_pos) +
(char)((byte) act_input_str.charAt(ipinput_pos)+1) + act_input_str.substring(ipinput_pos+1,act_input_str.length());
 
break;
 
 
case FIRE:
mk.params.set_name(act_input_str);
chg_state(STATEID_HANDLE_PARAMS);
break;
}
}
if (act_input_str.length()<=ipinput_pos) act_input_str+=" ";
break;
case STATEID_IPINPUT:
if ((keyCode>=KEY_NUM0)&&(keyCode<=KEY_NUM9))
{
act_edit_ip[ipinput_pos/4]=DUBwiseHelper.mod_decimal(act_edit_ip[ipinput_pos/4],(ipinput_pos<15?2:3)-(ipinput_pos%4),0,(keyCode-KEY_NUM0),9);
 
if(ipinput_pos<19) ipinput_pos++;
if ((ipinput_pos<18)&&(((ipinput_pos+1)%4)==0))ipinput_pos++;
}
else
switch (getGameAction (keyCode))
{
case LEFT:
if(ipinput_pos>0) ipinput_pos--;
if (((ipinput_pos+1)%4)==0)ipinput_pos--;
break;
case RIGHT:
if(ipinput_pos<19) ipinput_pos++;
if(ipinput_pos<18)if (((ipinput_pos+1)%4)==0)ipinput_pos++;
break;
 
case UP:
act_edit_ip[ipinput_pos/4]=DUBwiseHelper.mod_decimal(act_edit_ip[ipinput_pos/4],(ipinput_pos<15?2:3)-(ipinput_pos%4),1,-1,9);
 
break;
 
case DOWN:
act_edit_ip[ipinput_pos/4]=DUBwiseHelper.mod_decimal(act_edit_ip[ipinput_pos/4],(ipinput_pos<15?2:3)-(ipinput_pos%4),-1,-1,9);
 
 
case FIRE:
if (ipinput4proxy)
{
settings.act_proxy_ip=act_edit_ip;
mk.do_proxy("socket://"+DUBwiseHelper.ip_str(settings.act_proxy_ip,false));
chg_state(STATEID_PROXY);
}
else
{
settings.act_conn_ip=act_edit_ip;
connect_mk("socket://"+DUBwiseHelper.ip_str(settings.act_conn_ip,false),"TCP/IP Connection");
chg_state(STATEID_CONN_DETAILS);
}
 
break;
 
}
break;
 
case STATEID_GPSVIEW:
if (keyCode == this.KEY_NUM0)
mk.set_gps_target(mk.gps_position.Latitude,mk.gps_position.Longitude);
if (keyCode == this.KEY_NUM1)
mk.gps_position.push_wp();
if (keyCode == this.KEY_NUM2)
chg_state(STATEID_FILEOPEN);
if (keyCode == this.KEY_NUM3)
mk.set_gps_target(mk.gps_position.LatWP[act_wp],mk.gps_position.LongWP[act_wp]);
 
 
if (keyCode == this.KEY_NUM5)
heading_offset= mk.debug_data.analog[26];
 
switch (getGameAction (keyCode))
{
case UP:
if (act_wp!=0) act_wp--;
break;
case DOWN:
if (act_wp<mk.gps_position.last_wp) act_wp++;
 
break;
 
 
}
 
break;
 
case STATEID_ABOUT:
switch (getGameAction (keyCode))
{
case UP:
if (act_menu_select>=max_lines)
act_menu_select--;
break;
case DOWN:
if (act_menu_select<lcd_lines.length-1)
act_menu_select++;
 
break;
 
 
}
 
break;
 
case STATEID_RAWDEBUG:
switch (getGameAction (keyCode))
{
case UP:
if (rawdebug_cursor_y==0)
rawdebug_cursor_y=31;
else
rawdebug_cursor_y--;
break;
case DOWN:
if (rawdebug_cursor_y==31)
rawdebug_cursor_y=0;
else
rawdebug_cursor_y++;
break;
 
 
}
break;
case STATEID_KEYCONTROL:
if (keyCode==KEY_POUND)
keycontrol_exit |= 1;
else
if (keyCode==KEY_STAR)
keycontrol_exit |= 2;
else
mod_external_control_by_keycode(keyCode,(byte)1);
 
 
 
if (keycontrol_exit==3)
chg_state(STATEID_MAINMENU);
 
/*
if ((keyCode >= this.KEY_NUM0) && (keyCode < this.KEY_NUM8))
keycontrol_bitfield[0]|=1<<(keyCode-this.KEY_NUM0);
else
if ((keyCode >= this.KEY_NUM8) && (keyCode <= this.KEY_NUM9))
keycontrol_bitfield[1]|=1<<(keyCode-this.KEY_NUM8);
else
switch (getGameAction (keyCode))
{
case UP:
keycontrol_bitfield[1]|=4;
break;
case DOWN:
keycontrol_bitfield[1]|=8;
break;
 
case LEFT:
keycontrol_bitfield[1]|=16;
break;
 
case RIGHT:
keycontrol_bitfield[1]|=32;
break;
case FIRE:
keycontrol_bitfield[1]|=64;
break;
 
}
else
mk.send_keys(keycontrol_bitfield);
*/
break;
 
 
case STATEID_MOTORTEST:
switch (getGameAction (keyCode))
{
case UP:
act_motor_increase=-1;
break;
case DOWN:
act_motor_increase=1;
break;
 
case FIRE:
motor_test_sel_all=!motor_test_sel_all;
break;
 
case LEFT:
act_motor--;
if (act_motor<0) {act_motor=0; chg_state(STATEID_MAINMENU); }
break;
 
case RIGHT:
act_motor++;
act_motor%=4;
break;
}
 
break;
 
case STATEID_SELECT_COMPORT:
if ( getGameAction (keyCode)==FIRE )
{
 
if (act_menu_select<menu_items.length)
connect_mk("comm:com"+act_menu_select+";baudrate=57600","com"+act_menu_select);
chg_state(STATEID_CONN_DETAILS);
}
else
menu_keypress(keyCode);
break;
 
/*
case STATEID_HANDLsE_PARAMS:
menu_keypress(keyCode);
break;
*/
/*
case STATEID_TRAFFIC:
if ( getGameAction (keyCode)==FIRE )
chg_state(STATEID_CONN_DETAILS);
else
menu_keypress(keyCode);
break;
*/
//#if fileapi=="on"
case STATEID_FILEOPEN:
if ( getGameAction (keyCode)==FIRE )
{
file_access.fire();
}
else
menu_keypress(keyCode);
break;
 
//#endif
 
case STATEID_SETTINGSMENU:
settings_editor.keypress(keyCode,getGameAction (keyCode)) ;
break;
 
// handle menue
// case STATEID_SELECT_SPEED_FORMAT:
// case STATEID_SELECT_GPS_FORMAT:
case STATEID_PARAM_MENU:
case STATEID_TRAFFIC:
case STATEID_CONN_DETAILS:
case STATEID_HANDLE_PARAMS:
 
case STATEID_MAINMENU:
 
if ( getGameAction (keyCode)==FIRE )
{
switch(menu_actions[act_menu_select])
{
case ACTIONID_PARAM_MENU:
chg_state(STATEID_PARAM_MENU);
break;
case ACTIONID_PARAM_WRITE_OK:
success_msg="Parameter Write OK";
chg_state(STATEID_SUCCESS_MSG);
break;
case ACTIONID_HORIZON:
chg_state(STATEID_HORIZON);
break;
 
case ACTIONID_RENAME_PARAMS:
act_input_str=mk.params.getParamName(mk.params.act_paramset);
ipinput_pos=0;
chg_state(STATEID_STRINGINPUT);
break;
 
 
case ACTIONID_BACK_TO_CONNDETAILS:
chg_state(STATEID_CONN_DETAILS);
break;
 
case ACTIONID_RESET_PARAMS:
chg_state(STATEID_RESET_PARAMS);
// state=STATEID_FLASHING;
 
break;
 
case ACTIONID_FLASH:
chg_state(STATEID_FLASHING);
break;
case ACTIONID_DATABUFF:
chg_state(STATEID_DATABUFF);
break;
case ACTIONID_NC_ERRORS:
chg_state(STATEID_ERROR_MSG);
break;
 
case ACTIONID_ABOUT:
chg_state(STATEID_ABOUT);
break;
 
case ACTIONID_CONN_DETAILS:
chg_state(STATEID_CONN_DETAILS);
break;
case ACTIONID_QUIT:
quit=true;
break;
 
case ACTIONID_SWITCH_NC:
mk.switch_to_navi();
break;
 
case ACTIONID_SWITCH_FC:
mk.switch_to_fc();
break;
 
case ACTIONID_SWITCH_MK3MAG:
mk.switch_to_mk3mag();
break;
case ACTIONID_GRAPH:
chg_state(STATEID_GRAPH);
break;
case ACTIONID_KEYCONTROL:
chg_state(STATEID_KEYCONTROL);
break;
case ACTIONID_LCD :
chg_state(STATEID_FLIGHTVIEW);
break;
 
case ACTIONID_PROXY:
 
chg_state(STATEID_IPINPUT);
break;
case ACTIONID_DEVICESELECT:
chg_state(STATEID_SCANNING);
break;
case ACTIONID_RAWDEBUG:
chg_state(STATEID_RAWDEBUG);
break;
case ACTIONID_SETTINGS:
chg_state(STATEID_SETTINGSMENU);
break;
 
case ACTIONID_RCDATA:
chg_state(STATEID_STICKVIEW);
break;
 
case ACTIONID_CAM:
chg_state(STATEID_CAMMODE);
break;
 
case ACTIONID_GPSDATA:
chg_state(STATEID_GPSVIEW);
break;
 
 
case ACTIONID_MOTORTEST :
chg_state(STATEID_MOTORTEST);
break;
 
case ACTIONID_EDIT_PARAMS:
chg_state(STATEID_EDIT_PARAMS);
break;
case ACTIONID_SELECT_PARAMS:
select_paramset4edit=true;
if (settings.reload_settings)
{
 
mk.watchdog.act_paramset=0;
mk.params.reset();
chg_state(STATEID_READ_PARAMS);
}
else
{
if (mk.watchdog.act_paramset!=5)
chg_state(STATEID_READ_PARAMS);
else
chg_state(STATEID_SELECT_PARAMSET);
}
break;
 
 
case ACTIONID_WRITE_PARAM_AS:
select_paramset4edit=false;
chg_state(STATEID_SELECT_PARAMSET);
break;
 
case ACTIONID_WRITE_PARAMS:
mk.write_params(mk.params.act_paramset);
success_msg="Saved Settings"; // too optimistic
nextstate=STATEID_HANDLE_PARAMS;
chg_state(STATEID_SUCCESS_MSG);
break;
 
case ACTIONID_UNDO_PARAMS:
mk.params.use_backup();
success_msg="Settings Undo OK"; // too optimistic
nextstate=STATEID_HANDLE_PARAMS;
chg_state(STATEID_SUCCESS_MSG);
 
break;
 
case ACTIONID_MAINMENU:
chg_state(STATEID_MAINMENU);
break;
 
case ACTIONID_DEBUG:
debug.showing=true;
break;
 
case ACTIONID_TRAFFIC:
chg_state(STATEID_TRAFFIC);
break;
 
case ACTIONID_CONNECT_TCP:
ipinput4proxy=false;
chg_state(STATEID_IPINPUT);
break;
 
case ACTIONID_SCAN_BT:
chg_state(STATEID_SCANNING);
break;
 
case ACTIONID_SELECT_COM:
chg_state(STATEID_SELECT_COMPORT);
break;
 
case ACTIONID_PROXY_INPUT:
ipinput4proxy=true;
chg_state(STATEID_IPINPUT);
break;
 
}
}
 
else menu_keypress(keyCode);
 
break;
 
case STATEID_SELECT_PARAMSET:
if ( getGameAction (keyCode)==FIRE )
{
if (act_menu_select==5) // back
{
if (select_paramset4edit)
chg_state(STATEID_PARAM_MENU);
else
chg_state(STATEID_HANDLE_PARAMS);
}
else
{
if (select_paramset4edit)
// if ( mk.params.field[act_menu_select]!=null)
{
mk.params.act_paramset=act_menu_select;
chg_state(STATEID_HANDLE_PARAMS);
//success_msg="Params saved";
}
else
{
mk.write_params(act_menu_select);
nextstate=STATEID_HANDLE_PARAMS;
success_msg="saved in slot " + (act_menu_select+1) ;
chg_state(STATEID_SUCCESS_MSG); // TODO - ground too optimistic way ;-)
}
 
}
}
else menu_keypress(keyCode);
break;
 
//#if bluetooth=="on"
case STATEID_DEVICESELECT:
if ( getGameAction (keyCode)==FIRE )
{
 
if (bt_scanner.remote_device_count > act_menu_select)
{
connect_mk("btspp://"+bt_scanner.remote_device_mac[act_menu_select] + ":1",bt_scanner.remote_device_name[act_menu_select]);
chg_state(STATEID_CONN_DETAILS);
}
else
{
if (bt_scanner.remote_device_count == act_menu_select)
chg_state(STATEID_SCANNING);
else
chg_state(STATEID_CONN_DETAILS);
}
}
else menu_keypress(keyCode);
break;
//#endif
 
 
case STATEID_EDIT_PARAMS:
params_editor.keypress(keyCode,getGameAction (keyCode)) ;
break;
 
case STATEID_FLIGHTVIEW:
 
if ((keyCode >= this.KEY_NUM0) && (keyCode <= this.KEY_NUM9))
mk.LCD.set_page(keyCode-this.KEY_NUM0);
else
switch (getGameAction (keyCode))
{
case LEFT:
case UP:
mk.LCD.LCD_PREVPAGE();
break;
case RIGHT:
case DOWN:
mk.LCD.LCD_NEXTPAGE();
break;
 
 
}
break;
}
 
}
 
 
 
 
 
 
 
}
 
 
/DUBwise/tags/v0.51/j2me/src/DUBwiseDebug.java
0,0 → 1,155
/***************************************************************
*
* Code for on Device Debugging of DUBwise
*
* Author: Marcus -LiGi- Bueschleb
* Mailto: LiGi @at@ LiGi DOTT de
*
***************************************************************/
 
import javax.microedition.lcdui.*;
 
 
public class DUBwiseDebug
extends Canvas
{
 
 
public boolean showing=false;
public boolean paused=false;
 
public String debug_msg="";
 
private byte[] debug_screen_sequence={KEY_POUND,KEY_NUM4,KEY_NUM2};
private byte debug_screen_sequence_pos=0;
 
public final static int DEBUG_HISTORY_LENGTH=100;
 
public String[] debug_msgs;
 
public int debug_pos=0;
public int debug_paused_pos=0;
 
 
int y_off=0;
 
 
public DUBwiseCanvas canvas;
 
public DUBwiseDebug(DUBwiseCanvas canvas_)
{
canvas=canvas_;
 
debug_msgs=new String[DEBUG_HISTORY_LENGTH];
for (int tmp_i=0;tmp_i<DEBUG_HISTORY_LENGTH;tmp_i++)
debug_msgs[tmp_i]="";
}
 
public void log(String str)
{
if (debug_pos==DEBUG_HISTORY_LENGTH)
debug_pos=0;
 
debug_msgs[debug_pos]=str;
debug_pos++;
// debug_msgs[debug_pos]=str;
}
 
 
public void err(String str)
{
if (debug_pos==DEBUG_HISTORY_LENGTH)
debug_pos=0;
 
debug_msgs[debug_pos]=str;
debug_pos++;
showing=false;
paused=true;
// debug_msgs[debug_pos]=str;
}
 
public void paint (Graphics g)
{
 
Font debug_font= Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL);
 
g.setFont(debug_font);
 
g.setColor(0x0000FF);
g.fillRect(0,0,canvas.getWidth(),canvas.getHeight());
g.setColor(0xFFFFFF);
 
y_off=0;
if (!paused) debug_paused_pos=debug_pos;
for (int tmp_pos=debug_paused_pos;((tmp_pos>0)&&(y_off<canvas.getHeight()));tmp_pos--)
{
debug_msg=debug_msgs[tmp_pos];
String tmp_str="";
 
for(int tmp_i=0;tmp_i<debug_msg.length();tmp_i++)
{
if ((debug_msg.charAt(tmp_i)=='\r')||(debug_msg.charAt(tmp_i)=='\n'))
{
g.drawString(tmp_str,5,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=debug_font.getHeight();
tmp_str="";
}
else
tmp_str+=debug_msg.charAt(tmp_i);
}
g.drawString(tmp_pos+" "+tmp_str,0,y_off,Graphics.TOP | Graphics.LEFT);
y_off+=debug_font.getHeight();
}
 
}
public void process_key(int keyCode)
{
 
 
if (!showing)
{
if (keyCode==debug_screen_sequence[debug_screen_sequence_pos])
{
debug_screen_sequence_pos++;
if(debug_screen_sequence_pos==debug_screen_sequence.length)
{
showing=true;
debug_screen_sequence_pos=0;
}
}
else
debug_screen_sequence_pos=0;
}
else
{
if (keyCode==KEY_STAR)
showing=false;
 
if (keyCode==KEY_NUM0)
paused=!paused;
 
 
switch (getGameAction (keyCode))
{
case UP:
debug_paused_pos++;
break;
case DOWN:
debug_paused_pos--;
break;
 
}
 
}
 
 
}
 
 
}
/DUBwise/tags/v0.51/j2me/src/DUBwiseDefinitions.java
0,0 → 1,194
 
public interface DUBwiseDefinitions
{
 
// id for each state - must just be uniq - order isnt important
public final static byte STATEID_SCANNING =0;
public final static byte STATEID_DEVICESELECT =1;
public final static byte STATEID_MAINMENU =2;
public final static byte STATEID_MOTORTEST =3;
public final static byte STATEID_SELECT_PARAMSET =4;
public final static byte STATEID_EDIT_PARAMS =5;
public final static byte STATEID_HANDLE_PARAMS =6;
public final static byte STATEID_FLIGHTVIEW =7;
public final static byte STATEID_RAWDEBUG =8;
public final static byte STATEID_KEYCONTROL =9;
public final static byte STATEID_SETTINGSMENU =10;
public final static byte STATEID_STICKVIEW =11;
public final static byte STATEID_CAMMODE =12;
public final static byte STATEID_READ_PARAMS =13;
public final static byte STATEID_GPSVIEW =14;
public final static byte STATEID_FILEOPEN =15;
public final static byte STATEID_GRAPH =16;
public final static byte STATEID_CONN_DETAILS =17;
public final static byte STATEID_IPINPUT =18;
public final static byte STATEID_PROXY =19;
public final static byte STATEID_TRAFFIC =20;
public final static byte STATEID_SELECT_COMPORT =21;
public final static byte STATEID_ABOUT =22;
public final static byte STATEID_NC_ERRORS =23;
public final static byte STATEID_FLASHING =24;
public final static byte STATEID_NAMEINPUT =25;
public final static byte STATEID_DATABUFF =26;
 
public final static byte STATEID_STRINGINPUT =27;
 
 
public boolean fullscreen=false;
public byte act_motor=0;
public byte act_motor_increase=0;
public boolean motor_test_sel_all=false;
 
 
 
public final static byte ACTIONID_SETTINGS = 0;
public final static byte ACTIONID_DEVICESELECT = 1;
public final static byte ACTIONID_DEBUG = 2;
public final static byte ACTIONID_CONN_DETAILS = 3;
public final static byte ACTIONID_SWITCH_NC = 4;
public final static byte ACTIONID_SWITCH_FC = 5;
 
public final static byte ACTIONID_GRAPH = 6;
public final static byte ACTIONID_LCD = 7;
public final static byte ACTIONID_RAWDEBUG = 8;
public final static byte ACTIONID_RCDATA = 9;
public final static byte ACTIONID_KEYCONTROL = 10;
public final static byte ACTIONID_MOTORTEST = 11;
public final static byte ACTIONID_EDIT_PARAMS = 12;
public final static byte ACTIONID_CAM = 13;
public final static byte ACTIONID_PROXY = 14;
public final static byte ACTIONID_GPSDATA = 15;
public final static byte ACTIONID_TRAFFIC = 16;
public final static byte ACTIONID_ABOUT = 17;
public final static byte ACTIONID_NC_ERRORS = 18;
 
 
public final static byte ACTIONID_WRITE_PARAMS = 19;
public final static byte ACTIONID_UNDO_PARAMS = 20;
public final static byte ACTIONID_MAINMENU = 21;
 
public final static byte ACTIONID_CHANGESKIN = 22;
public final static byte ACTIONID_SOUNDTOGGLE = 23;
public final static byte ACTIONID_VIBRATOGGLE = 24;
public final static byte ACTIONID_GRAPHTOGGLE = 25;
public final static byte ACTIONID_FULLSCREENTOGGLE = 26;
public final static byte ACTIONID_LIGHTTOGGLE =27;
public final static byte ACTIONID_DATABUFF =28;
 
 
public final static byte ACTIONID_SWITCH_MK3MAG = 29;
public final static byte ACTIONID_CONNECT_TCP =30;
public final static byte ACTIONID_SCAN_BT =31;
public final static byte ACTIONID_SELECT_COM =32;
public final static byte ACTIONID_PROXY_INPUT =33;
public final static byte ACTIONID_FLASH =34;
public final static byte ACTIONID_RESET_PARAMS =35;
 
public final static byte ACTIONID_BACK_TO_CONNDETAILS=36;
 
 
public final static byte ACTIONID_QUIT = 100;
 
 
public final static String[] main_menu_items_no_connection = { "Tool Settings" , "Connection" , "Debug DUBwise" , "About","Quit " };
public final static byte[] main_menu_actions_no_connection= { ACTIONID_SETTINGS , ACTIONID_CONN_DETAILS, ACTIONID_DEBUG , ACTIONID_ABOUT, ACTIONID_QUIT};
 
 
public final static String[] main_menu_items_incompatible = { "Tool Settings" , "Connection" , "Debug DUBwise" ,"Flash Firmware", "About","Quit " };
public final static byte[] main_menu_actions_incompatible= { ACTIONID_SETTINGS , ACTIONID_CONN_DETAILS, ACTIONID_DEBUG ,ACTIONID_FLASH , ACTIONID_ABOUT, ACTIONID_QUIT};
 
 
 
public final static String[] main_menu_items_mk3mag = { "Tool Settings" , "Connection" , "Flash Firmware" , "switch to NC","Debug DUBwise" , "About","Quit " };
public final static byte[] main_menu_actions_mk3mag= { ACTIONID_SETTINGS , ACTIONID_CONN_DETAILS, ACTIONID_FLASH, ACTIONID_SWITCH_NC, ACTIONID_DEBUG , ACTIONID_ABOUT, ACTIONID_QUIT};
 
 
public final static String[] main_menu_items_mk ={"Connection", "switch to NC","Sensor Graph" , "LCD","Raw Debug", "view RC-data", "MK-KeyControl", "Motor Test" , "Flight Settings","Flash Firmware","Tool Settings","Remote Cam", "Debug" ,"About", "Quit" };
 
public final static byte[] main_menu_actions_mk = { ACTIONID_CONN_DETAILS , ACTIONID_SWITCH_NC , ACTIONID_GRAPH , ACTIONID_LCD , ACTIONID_RAWDEBUG , ACTIONID_RCDATA , ACTIONID_KEYCONTROL , ACTIONID_MOTORTEST , ACTIONID_EDIT_PARAMS,ACTIONID_FLASH , ACTIONID_SETTINGS , ACTIONID_CAM , ACTIONID_DEBUG , ACTIONID_ABOUT , ACTIONID_QUIT};
 
 
public final static String[] main_menu_items_navi={"Connection" , "view Errors", "switch to FC","switch to MK3MAG","LCD","Raw Debug", "view GPS-Data" ,"Flash Firmware","Tool Settings", "Debug" ,"About", "Quit" };
 
public final static byte[] main_menu_actions_navi = { ACTIONID_CONN_DETAILS , ACTIONID_NC_ERRORS , ACTIONID_SWITCH_FC , ACTIONID_SWITCH_MK3MAG, ACTIONID_LCD , ACTIONID_RAWDEBUG , ACTIONID_GPSDATA , ACTIONID_FLASH , ACTIONID_SETTINGS , ACTIONID_DEBUG , ACTIONID_ABOUT, ACTIONID_QUIT};
 
 
 
public final static String[] handle_params_menu_items={"write to MK","don't write to MK","discard/read again","all to default"};
public final static byte[] handle_params_menu_actions={ACTIONID_WRITE_PARAMS,ACTIONID_MAINMENU,ACTIONID_UNDO_PARAMS,ACTIONID_RESET_PARAMS};
 
 
public final static String[] conn_details_menu_items={ "packet Traffic","view Data","connect via TCP/IP","connect via BT","connect via COM","set Proxy","back" };
 
 
public final static byte[] conn_details_menu_actions={ ACTIONID_TRAFFIC,ACTIONID_DATABUFF,ACTIONID_CONNECT_TCP,ACTIONID_SCAN_BT, ACTIONID_SELECT_COM,ACTIONID_PROXY_INPUT,ACTIONID_MAINMENU};
 
 
public final static String[] settings_menu_items={"Skin ","Sound ","Vibra " ,"Scrolling_BG ","FullScreen " ,
//#if devicecontrol=="on"
"Keep_BGLight " ,
//#endif
"Back" };
public final static byte SETTINGSMENU_CHANGESKIN =0;
 
public final static byte[] settings_menu_actions={ ACTIONID_CHANGESKIN,ACTIONID_SOUNDTOGGLE, ACTIONID_VIBRATOGGLE , ACTIONID_GRAPHTOGGLE , ACTIONID_FULLSCREENTOGGLE ,
//#if devicecontrol=="on"
ACTIONID_LIGHTTOGGLE,
//#endif
ACTIONID_MAINMENU };
 
 
 
public final static String[] onlyback_menu_items={"back" };
public final static byte[] back_to_conndetails_actions={ACTIONID_BACK_TO_CONNDETAILS};
 
 
public final static byte USER_INTENT_NONE=0;
public final static byte USER_INTENT_RAWDEBUG=1;
public final static byte USER_INTENT_PARAMS=2;
public final static byte USER_INTENT_GRAPH=3;
public final static byte USER_INTENT_RCDATA=4;
public final static byte USER_INTENT_LCD=5;
 
final static byte SKINID_DARK= 0;
final static byte SKINID_LIGHT = 1;
 
 
 
final static String[] credits= {
//#expand "About DUBwise v%VERSION%",
"",
"",
"Digital UFO",
"Broadcasting With ",
"Byteelligent Service",
"Equipment",
"",
"2007-2008 by ",
"Marcus LiGi B"+(char)(252)+"schleb",
"mailto:ligi"+"@"+"ligi.de",
"",
"Licence:",
"Creative Commons(CC)",
" -Attribution",
" -Noncommercial",
" -Share Alike",
" -No Violence",
" ",
"Credits: ",
" -HolgerB&IngoB",
" -CaScAdE",
" -Orion8",
" -Joko",
" -Speedy",
" -Jamiro",
"",
"More Infos:",
" www.ligi.de",
" www.mikrokopter.com"};
 
public final static int[] default_ip={192,168,1,42,4242};
}
/DUBwise/tags/v0.51/j2me/src/DUBwiseFileAccess.java
0,0 → 1,139
/***************************************************************
*
* File Access of DUBwise
*
* Author: Marcus -LiGi- Bueschleb
* Mailto: LiGi @at@ LiGi DOTT de
*
***************************************************************/
 
//#if fileapi=="on"
import javax.microedition.io.*;
import javax.microedition.midlet.*;
import javax.microedition.io.file.*;
 
import java.io.*;
import java.util.*;
 
 
public class DUBwiseFileAccess
{
public final static int MAX_FILELIST_LENGTH=100;
public final static int MAX_PATH_DEPTH=10;
 
byte act_path_depth=0;
String[] act_path_arr;
 
 
public String act_path()
{
String res="";
for (int i=0;i<act_path_depth;i++)
res+=act_path_arr[i];
return res;
}
 
String[] file_list;
int file_list_length=0;
 
DUBwiseCanvas canvas ;
public DUBwiseFileAccess(DUBwiseCanvas _canvas )
{
canvas=_canvas;
file_list= new String[MAX_FILELIST_LENGTH];
act_path_arr=new String[MAX_PATH_DEPTH];
}
 
public void fire()
{
 
if ((canvas.act_menu_select==0)&&(act_path_depth!=0))
{
act_path_depth--;
//act_path=act_path.substring(0,act_path.substring(0,act_path.length()-2).indexOf('/') );
 
//act_path=last_path;
}
else
{
//last_path=act_path;
if (act_path_depth==0)
act_path_arr[act_path_depth++]=file_list[canvas.act_menu_select];
else
act_path_arr[act_path_depth++]=file_list[canvas.act_menu_select-1];
}
canvas.act_menu_select=0;
//chg_state(STATEID_FILEOPEN);
trigger();
}
 
 
public void trigger()
{
if (act_path_depth==0)
{
Enumeration drives = FileSystemRegistry.listRoots();
int tmp_i=0;
while(drives.hasMoreElements())
{
file_list[tmp_i]= (String) drives.nextElement();
tmp_i++;
if (MAX_FILELIST_LENGTH<tmp_i)
break;
}
file_list_length=tmp_i;
String[] menu_items=new String[tmp_i];
// lcd_lines=new String[tmp_i];
for(tmp_i=0;tmp_i<file_list_length;tmp_i++)
menu_items[tmp_i]=file_list[tmp_i];
 
canvas.setup_menu(menu_items,null);
}
else
{
 
try {
FileConnection fc = (FileConnection) Connector.open("file:///"+act_path());
Enumeration filelist = fc.list("*", true);
int tmp_i=0;
while(filelist.hasMoreElements()) {
file_list[tmp_i] = (String) filelist.nextElement();
tmp_i++;
/* fc = (FileConnection)
Connector.open("file:///CFCard/" + fileName);
if(fc.isDirectory()) {
System.out.println("\tDirectory Name: " + fileName);
} else {
System.out.println
("\tFile Name: " + fileName +
"\tSize: "+fc.fileSize());
}*/
}
String[] menu_items=new String[tmp_i+1];
// lcd_lines=new String[tmp_i+1];
file_list_length=tmp_i+1;
menu_items[0]="..";
for(tmp_i=1;tmp_i<file_list_length;tmp_i++)
menu_items[tmp_i]=file_list[tmp_i-1];
 
canvas.setup_menu(menu_items,null);
fc.close();
} catch (IOException ioe) {
System.out.println(ioe.getMessage());
}
}
 
 
}
}
//#endif
/DUBwise/tags/v0.51/j2me/src/DUBwiseHelper.java
0,0 → 1,63
public final class DUBwiseHelper
{
public final static String ip_digit_zeroes(int digit)
{ return "" + digit/100 + "" + (digit/10)%10 + "" + (digit)%10; }
 
 
public final static String ip_str(int[] ip,boolean with_zeroes)
{
if(with_zeroes)
return ip_digit_zeroes(ip[0]) + "." +ip_digit_zeroes(ip[1]) + "."+ip_digit_zeroes(ip[2]) + "."+ip_digit_zeroes(ip[3]) + ":"+ip_digit_zeroes(ip[4]) ;
else
return ip[0]+"."+ip[1]+"."+ip[2]+"."+ip[3]+":"+ip[4];
}
 
public final static int pow(int val,int pow)
{
int res=1;
 
for (int p=0;p<pow;p++)
res*=val;
 
return res;
}
 
 
public final static int mod_decimal(int val,int mod_power,int modder,int setter,int clipper)
{
 
int res=0;
 
for (int power=0;power<4;power++)
{
 
int act_digit=(val/pow(10,power))%10;
 
int new_digit=act_digit;
if (power==mod_power)
{
if (setter!=-1)
new_digit=setter;
new_digit+=modder;
if(new_digit<0)
new_digit=0;
 
if(new_digit>clipper)
new_digit=clipper;
 
}
 
// new_digit=1;
res+=new_digit*pow(10,power);
}
return res;
 
 
}
 
}
/DUBwise/tags/v0.51/j2me/src/DUBwiseSettings.java
0,0 → 1,352
/***************************************************************
*
* Settings related Part of DUBwise
* ( e.g. saving to / reading from RMS )
*
* Author: Marcus -LiGi- Bueschleb
* Mailto: LiGi @at@ LiGi DOTT de
*
***************************************************************/
 
import javax.microedition.rms.*;
 
import java.io.*;
 
public class DUBwiseSettings
extends org.ligi.ufo.ParamsClass
implements org.ligi.ufo.DUBwiseDefinitions,DUBwiseUIDefinitions
{
// name/handle for the recordStore to memorize some stuff
private final static String RECORD_STORE_NAME="DUBSETT_V4";
 
/* all settings hold here */
//holds id of actual skin
public byte act_skin=SKINID_DARK;
 
 
 
public int key_back;
public int key_fullscreen;
public int key_clear;
 
public int voice_delay;
public int voice_volume;
 
 
 
public int remote_cam_stick;
 
public String connection_name="";
public String connection_url="";
 
public boolean do_vibra=true;
public boolean do_sound=true;
public boolean fullscreen=false;
public boolean do_scrollbg=false;
public boolean expert_mode=false;
 
public boolean reload_settings=false;
 
 
public boolean graph_legend;
public boolean graph_scale;
 
//#if devicecontrol=="on"
public boolean keep_lighton=false;
//#endif
 
int[] act_proxy_ip=default_ip; // { ip , ip , ip , ip , port }
int[] act_conn_ip=default_ip; // { ip , ip , ip , ip , port }
 
 
public byte gps_format=GPS_FORMAT_DECIMAL;
public byte speed_format=SPEED_FORMAT_KMH;
 
 
int[] settings_field;
 
public int get_field_from_act(int pos) { return settings_field[pos];}
public void set_field_from_act(int pos,int val){
 
settings_field[pos]=val;
field2setting(pos,val);
}
 
public void toggle_fullscreen()
{
// fullscreen=!fullscreen;
set_field_from_act(1,settings_field[1]^1);
// if (fullscreen)canvas.setFullScreenMode(true);
}
 
public final static int SETTINGS_POS_SKIN=0;
public final static int SETTINGS_POS_BITFIELD1=1;
public final static int SETTINGS_POS_GPS_FORMAT=2;
public final static int SETTINGS_POS_SPEED_FORMAT=3;
public final static int SETTINGS_POS_EXTERN_NICK=4;
public final static int SETTINGS_POS_EXTERN_ROLL=5;
public final static int SETTINGS_POS_EXTERN_GIER=6;
public final static int SETTINGS_POS_EXTERN_GAS=7;
public final static int SETTINGS_POS_EXTERN_HIGHT=8;
public final static int SETTINGS_POS_KEY_BACK=9;
public final static int SETTINGS_POS_KEY_FULL=10;
public final static int SETTINGS_POS_KEY_CLEAR=11;
public final static int SETTINGS_POS_VOICEVOLUME=12;
public final static int SETTINGS_POS_VOICEDELAY=13;
public final static int SETTINGS_POS_BITFIELD2=14;
 
 
public void field2setting(int pos,int val)
{
if (pos==SETTINGS_POS_SKIN)
{
act_skin=(byte)val;
canvas.load_skin_images();
}
 
if ((pos==SETTINGS_POS_BITFIELD1)&&((val&1)==1)&&(!fullscreen))
{
fullscreen=true;
canvas.setFullScreenMode(fullscreen);
}
 
if ((pos==SETTINGS_POS_BITFIELD1)&&((val&1)==0)&&(fullscreen))
{
fullscreen=false;
canvas.setFullScreenMode(fullscreen);
}
 
if ((pos==SETTINGS_POS_BITFIELD1)&&((val&2)==2)&&(!do_scrollbg))
{
do_scrollbg=true;
canvas.load_skin_images();
}
 
if ((pos==SETTINGS_POS_BITFIELD1)&&((val&2)==0)&&(do_scrollbg))
{
do_scrollbg=false;
canvas.load_skin_images();
}
 
if (pos==SETTINGS_POS_BITFIELD1)
do_sound=((val&4)!=0);
 
if (pos==SETTINGS_POS_BITFIELD1)
do_vibra=((val&8)!=0);
 
if (pos==SETTINGS_POS_BITFIELD1)
expert_mode=((val&16)!=0);
 
if (pos==SETTINGS_POS_BITFIELD1)
keep_lighton=((val&32)!=0);
 
if (pos==SETTINGS_POS_BITFIELD1)
graph_legend=((val&64)!=0);
 
if (pos==SETTINGS_POS_BITFIELD1)
graph_scale=((val&128)!=0);
 
 
 
if (pos==SETTINGS_POS_GPS_FORMAT)
gps_format=(byte)val;
 
if (pos==SETTINGS_POS_SPEED_FORMAT)
speed_format=(byte)val;
 
if (pos==SETTINGS_POS_EXTERN_NICK)
default_extern_control[EXTERN_CONTROL_NICK]=(byte)val;
 
if (pos==SETTINGS_POS_EXTERN_ROLL)
default_extern_control[EXTERN_CONTROL_ROLL]=(byte)val;
 
if (pos==SETTINGS_POS_EXTERN_GIER)
default_extern_control[EXTERN_CONTROL_GIER]=(byte)val;
 
if (pos==SETTINGS_POS_EXTERN_GAS)
default_extern_control[EXTERN_CONTROL_GAS]=(byte)val;
 
if (pos==SETTINGS_POS_EXTERN_HIGHT)
default_extern_control[EXTERN_CONTROL_HIGHT]=(byte)val;
 
 
if (pos==SETTINGS_POS_KEY_BACK)
key_back=val;
 
if (pos==SETTINGS_POS_KEY_FULL)
key_fullscreen=val;
 
if (pos==SETTINGS_POS_KEY_CLEAR)
key_clear=val;
 
if (pos==12)
remote_cam_stick=val;
 
 
if(pos==SETTINGS_POS_VOICEVOLUME)
{
voice_volume=val;
//#if voice_mode!="no_voice"
canvas.status_voice.volume=voice_volume;
//#endif
}
if(pos==SETTINGS_POS_VOICEDELAY)
{
voice_delay=val;
//#if voice_mode!="no_voice"
canvas.status_voice.delay=voice_delay;
//#endif
}
 
if (pos==SETTINGS_POS_BITFIELD2)
do_sound=((val&1)!=0); // TODO: FIXME - extra var
 
if (pos==SETTINGS_POS_BITFIELD2)
reload_settings=((val&2)!=0);
}
 
 
public byte[] default_extern_control;//=default_extern_keycontrol ;
 
 
/* end of all settings hold here */
 
public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Graph","Voice","Other" };
 
public String[][] _field_names={ { "Skin","Fullscreen","Scroll Background"
//#if devicecontrol=="on"
,"Permanent Light"
//#endif
} , {"GPS Format","Speed Format"},{"Nick","Roll","Gier","Gas Increase","Height Increase"},{"Back to Main-Menu","Fullscreen","Clear"},{"Legend","Scale-Grid"},{"Volts Output","Delay in Seconds","Volume"},{"Sound","Vibra","Remote Cam Stick","Always Reload Params","Expert-Mode"} };
 
public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"}} ;
public int[][] _field_positions={ {SETTINGS_POS_SKIN,8,9
//#if devicecontrol=="on"
,13
//#endif
} , {2,3} , {4,5,6,7,8} , {9,10,11},{SETTINGS_POS_BITFIELD1*8 +6,SETTINGS_POS_BITFIELD1*8 +7} ,{SETTINGS_POS_BITFIELD2*8+0,SETTINGS_POS_VOICEDELAY,SETTINGS_POS_VOICEVOLUME }, {10,11,12,SETTINGS_POS_BITFIELD2*8+1,12}};
public int[][] _field_types={ {PARAMTYPE_CHOICE+0,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH
//#if devicecontrol=="on"
,PARAMTYPE_BITSWITCH
//#endif
} , {PARAMTYPE_CHOICE+1,PARAMTYPE_CHOICE+2} , {PARAMTYPE_BYTE,PARAMTYPE_BYTE,PARAMTYPE_BYTE,PARAMTYPE_BYTE,PARAMTYPE_BYTE}, {PARAMTYPE_KEY,PARAMTYPE_KEY,PARAMTYPE_KEY} , {PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH}, {PARAMTYPE_BITSWITCH,PARAMTYPE_BYTE,PARAMTYPE_BYTE}, {PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH,PARAMTYPE_STICK,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH}};
DUBwiseCanvas canvas;
 
 
 
public final static int SETTINGS_FIELD_LENGTH=42;
public DUBwiseSettings(DUBwiseCanvas _canvas)
{
canvas= _canvas;
settings_field=new int[SETTINGS_FIELD_LENGTH];
default_extern_control=new byte[11];
// set defaults
settings_field[4]=42; // nick
settings_field[5]=42; // roll
settings_field[6]=42; // gier
settings_field[7]=1; // fas
settings_field[8]=1; // hight
 
 
settings_field[9]=-4242; // no key
settings_field[10]=-4242; // no key
settings_field[11]=-4242; // no key
 
}
public void load()
{
 
tab_names=_tab_names;
field_names=_field_names;
field_positions=_field_positions;
field_types=_field_types;
choice_strings=_choice_strings;
try
{
RecordStore recStore = RecordStore.openRecordStore(RECORD_STORE_NAME , true );
 
if (recStore.getNumRecords()==1)
{
ByteArrayInputStream bin = new ByteArrayInputStream(recStore.getRecord(1));
DataInputStream din = new DataInputStream( bin );
 
 
connection_url=din.readUTF();
connection_name=din.readUTF();
// reserve utf's
din.readUTF();
din.readUTF();
din.readUTF();
 
 
 
for ( int i=0;i<SETTINGS_FIELD_LENGTH;i++)
settings_field[i]=din.readInt();
 
for ( int i=0;i<5;i++)
 
{
act_proxy_ip[i]=din.readInt();
act_conn_ip[i]=din.readInt();
}
 
}
recStore.closeRecordStore();
}
catch (Exception e)
{ }
 
 
for ( int i=0;i<SETTINGS_FIELD_LENGTH;i++)
field2setting(i,settings_field[i]);
 
}
 
 
public void save()
{
try
{
RecordStore.deleteRecordStore(RECORD_STORE_NAME);
}
catch (Exception e)
{ }
 
try {
RecordStore recStore = RecordStore.openRecordStore(RECORD_STORE_NAME, true );
 
ByteArrayOutputStream bout = new ByteArrayOutputStream();
DataOutputStream dout = new DataOutputStream( bout );
 
dout.writeUTF(connection_url);
dout.writeUTF(connection_name);
 
dout.writeUTF("");
dout.writeUTF("");
dout.writeUTF("");
 
 
for ( int i=0;i<SETTINGS_FIELD_LENGTH;i++)
dout.writeInt(settings_field[i]);
for ( int i=0;i<5;i++)
{
dout.writeInt(act_proxy_ip[i]);
dout.writeInt(act_conn_ip[i]);
}
recStore.addRecord(bout.toByteArray(),0,bout.size());
 
recStore.closeRecordStore();
 
 
}
catch (Exception e)
{ }
 
}
 
}
/DUBwise/tags/v0.51/j2me/src/DUBwiseUIDefinitions.java
0,0 → 1,207
public interface DUBwiseUIDefinitions
{
// id for each state - must just be uniq - order isnt important
public final static byte STATEID_INITIAL =0;
public final static byte STATEID_DEVICESELECT =1;
public final static byte STATEID_MAINMENU =2;
public final static byte STATEID_MOTORTEST =3;
public final static byte STATEID_SELECT_PARAMSET =4;
public final static byte STATEID_EDIT_PARAMS =5;
public final static byte STATEID_HANDLE_PARAMS =6;
public final static byte STATEID_FLIGHTVIEW =7;
public final static byte STATEID_RAWDEBUG =8;
public final static byte STATEID_KEYCONTROL =9;
public final static byte STATEID_SETTINGSMENU =10;
public final static byte STATEID_STICKVIEW =11;
public final static byte STATEID_CAMMODE =12;
public final static byte STATEID_READ_PARAMS =13;
public final static byte STATEID_GPSVIEW =14;
public final static byte STATEID_FILEOPEN =15;
public final static byte STATEID_GRAPH =16;
public final static byte STATEID_CONN_DETAILS =17;
public final static byte STATEID_IPINPUT =18;
public final static byte STATEID_PROXY =19;
public final static byte STATEID_TRAFFIC =20;
public final static byte STATEID_SELECT_COMPORT =21;
public final static byte STATEID_ABOUT =22;
public final static byte STATEID_ERROR_MSG =23;
public final static byte STATEID_FLASHING =24;
public final static byte STATEID_NAMEINPUT =25;
public final static byte STATEID_DATABUFF =26;
public final static byte STATEID_HORIZON =27;
public final static byte STATEID_SUCCESS_MSG =28;
public final static byte STATEID_STRINGINPUT =29;
public final static byte STATEID_SCANNING =30;
public final static byte STATEID_RESET_PARAMS =31;
public final static byte STATEID_PARAM_MENU =32;
public final static byte STATEID_COUNT =33;
 
 
 
public final static byte ACTIONID_SETTINGS = 0;
public final static byte ACTIONID_DEVICESELECT = 1;
public final static byte ACTIONID_DEBUG = 2;
public final static byte ACTIONID_CONN_DETAILS = 3;
public final static byte ACTIONID_SWITCH_NC = 4;
public final static byte ACTIONID_SWITCH_FC = 5;
 
public final static byte ACTIONID_GRAPH = 6;
public final static byte ACTIONID_LCD = 7;
public final static byte ACTIONID_RAWDEBUG = 8;
public final static byte ACTIONID_RCDATA = 9;
public final static byte ACTIONID_KEYCONTROL = 10;
public final static byte ACTIONID_MOTORTEST = 11;
public final static byte ACTIONID_EDIT_PARAMS = 12;
public final static byte ACTIONID_CAM = 13;
public final static byte ACTIONID_PROXY = 14;
public final static byte ACTIONID_GPSDATA = 15;
public final static byte ACTIONID_TRAFFIC = 16;
public final static byte ACTIONID_ABOUT = 17;
public final static byte ACTIONID_NC_ERRORS = 18;
 
 
public final static byte ACTIONID_WRITE_PARAMS = 19;
public final static byte ACTIONID_UNDO_PARAMS = 20;
public final static byte ACTIONID_MAINMENU = 21;
 
public final static byte ACTIONID_HORIZON = 22;
public final static byte ACTIONID_WRITE_PARAM_AS = 23;
public final static byte ACTIONID_PARAM_WRITE_OK = 24;
public final static byte ACTIONID_PARAM_MENU = 25;
// public final static byte ACTIONID_FULLSCREENTOGGLE = 26;
// public final static byte ACTIONID_LIGHTTOGGLE =27;
public final static byte ACTIONID_DATABUFF =28;
 
 
public final static byte ACTIONID_SWITCH_MK3MAG = 29;
public final static byte ACTIONID_CONNECT_TCP =30;
public final static byte ACTIONID_SCAN_BT =31;
public final static byte ACTIONID_SELECT_COM =32;
public final static byte ACTIONID_PROXY_INPUT =33;
public final static byte ACTIONID_FLASH =34;
public final static byte ACTIONID_RESET_PARAMS =35;
 
public final static byte ACTIONID_BACK_TO_CONNDETAILS=36;
public final static byte ACTIONID_SELECT_PARAMS =37;
// public final static byte ACTIONID_SET_GPS_FORMAT_DECIMAL=38;
// public final static byte ACTIONID_SET_GPS_FORMAT_MINSEC=39;
 
 
 
//public final static byte ACTIONID_SELECT_SPEED_FORMAT=40;
//public final static byte ACTIONID_SET_SPEED_FORMAT_KMH=41;
//public final static byte ACTIONID_SET_SPEED_FORMAT_MPH=42;
//public final static byte ACTIONID_SET_SPEED_FORMAT_CMS=43;
 
public final static byte ACTIONID_RENAME_PARAMS=44;
//public final static byte ACTIONID_TOGGLE_EXPERT=45;
 
 
public final static byte ACTIONID_QUIT = 100;
 
 
public final static String[] param_menu_items={"Edit Settings","Reinitialize all","back"};
public final static byte[] param_menu_actions={ACTIONID_SELECT_PARAMS,ACTIONID_RESET_PARAMS,ACTIONID_MAINMENU};
 
 
public final static String[] handle_params_menu_items={"Edit Content","Rename","Save AS","Save","Read Again","back"};
public final static byte[] handle_params_menu_actions={ACTIONID_EDIT_PARAMS,ACTIONID_RENAME_PARAMS,ACTIONID_WRITE_PARAM_AS,ACTIONID_WRITE_PARAMS,ACTIONID_UNDO_PARAMS,ACTIONID_SELECT_PARAMS };
 
 
 
//ACTIONID_WRITE_PARAMS,ACTIONID_WRITE_PARAM_AS,ACTIONID_UNDO_PARAMS,ACTIONID_RENAME_PARAMS,ACTIONID_MAINMENU};
 
/*
public final static String[] handle_params_menu_items={"save","save as","discard/read again","rename","to Main-Menu"};
public final static byte[] handle_params_menu_actions={ACTIONID_WRITE_PARAMS,ACTIONID_WRITE_PARAM_AS,ACTIONID_UNDO_PARAMS,ACTIONID_RENAME_PARAMS,ACTIONID_MAINMENU};
*/
 
 
 
public final static String[] conn_details_menu_items={ "packet Traffic","view Data","connect via TCP/IP","connect via BT","connect via COM","set Proxy","back" };
public final static byte[] conn_details_menu_actions={ ACTIONID_TRAFFIC,ACTIONID_DATABUFF,ACTIONID_CONNECT_TCP,ACTIONID_SCAN_BT, ACTIONID_SELECT_COM,ACTIONID_PROXY_INPUT,ACTIONID_MAINMENU};
 
 
/*
public final static String[] set_gps_format_menu_items={ "Decimal" , "Min/Sec","Back" };
public final static byte[] set_gps_format_menu_actions={ ACTIONID_SET_GPS_FORMAT_DECIMAL , ACTIONID_SET_GPS_FORMAT_MINSEC,ACTIONID_MAINMENU};
 
 
 
public final static String[] set_speed_format_menu_items={ "Kilometers/Hour" , "Miles/Hour", "CM/Sec","Back" };
public final static byte[] set_speed_format_menu_actions={ ACTIONID_SET_SPEED_FORMAT_KMH , ACTIONID_SET_SPEED_FORMAT_MPH , ACTIONID_SET_SPEED_FORMAT_CMS,ACTIONID_SETTINGS};
 
 
 
public final static String[] settings_menu_items={"Skin ","Sound ","Vibra " ,"Scrolling BG ","FullScreen " ,"GPS-Format","Speed-Format",
//#if devicecontrol=="on"
"Keep BGLight " ,
//#endif
"Expert Mode",
"Back" };
 
 
public final static byte[] settings_menu_actions={ ACTIONID_CHANGESKIN,ACTIONID_SOUNDTOGGLE, ACTIONID_VIBRATOGGLE , ACTIONID_GRAPHTOGGLE , ACTIONID_FULLSCREENTOGGLE ,ACTIONID_SELECT_GPS_FORMAT,ACTIONID_SELECT_SPEED_FORMAT,
//#if devicecontrol=="on"
ACTIONID_LIGHTTOGGLE,
//#endif
ACTIONID_TOGGLE_EXPERT,
ACTIONID_MAINMENU };
 
 
*/
public final static String[] onlyback_menu_items={"back" };
public final static byte[] back_to_conndetails_actions={ACTIONID_BACK_TO_CONNDETAILS};
 
 
 
 
 
final static byte SKINID_DARK= 0;
final static byte SKINID_LIGHT = 1;
 
 
 
final static String[] credits= {
//#expand "About DUBwise v%VERSION%",
"",
"",
"Digital UFO",
"Broadcasting With ",
"Byteelligent Service",
"Equipment",
"",
"2007-2008 by ",
"Marcus LiGi B"+(char)(252)+"schleb",
"mailto:ligi"+"@"+"ligi.de",
"",
"Licence:",
"Creative Commons(CC)",
" -Attribution",
" -Noncommercial",
" -Share Alike",
" -No Violence",
" ",
"Credits: ",
" -HolgerB&IngoB",
" -CaScAdE",
" -Orion8",
" -Joko",
" -Speedy",
" -Jamiro",
"",
"More Infos:",
" www.ligi.de",
" www.mikrokopter.com"};
 
public final static char[] idle_seq={'.','_','-','='};
 
 
public final static int[] default_ip={192,168,1,42,4242};
 
 
 
 
}
/DUBwise/tags/v0.51/j2me/src/MKParamsEditor.java
0,0 → 1,281
/********************************************************
*
* class to handle Editing of MK Params via MIDP / J2ME
*
* Author: Marcus -LiGi- Bueschleb
*
********************************************************/
 
import javax.microedition.lcdui.*;
 
public class MKParamsEditor
implements org.ligi.ufo.MKParamDefinitions
{
 
public byte nextstate;
 
private int act_tab=0;
public int act_y=1;
private int act_lcd_lines=10;
 
DUBwiseCanvas canvas;
 
public String[] lcd_lines;
 
public String[] menu_items;
 
org.ligi.ufo.ParamsClass edit_source;
 
 
public MKParamsEditor(DUBwiseCanvas _canvas,org.ligi.ufo.ParamsClass _edit_source,byte _nextstate)
{
nextstate=_nextstate;
edit_source=_edit_source;
 
canvas=_canvas;
lcd_lines=new String[40];
// refresh_lcd();
}
 
 
boolean select_mode=true;
 
 
public void paint ( Graphics g)
{
if (select_mode)
{
if (canvas.menu_items[0]!=edit_source.tab_names[0]) // usefull?
{
act_y=1;
menu_items=new String[edit_source.tab_names.length+1];
for(int p=0;p<edit_source.tab_names.length;p++)
menu_items[p]=edit_source.tab_names[p];
menu_items[edit_source.tab_names.length]="back";
canvas.setup_menu(menu_items,null);
}
canvas.paint_menu(g);
}
 
else
{
refresh_lcd();
// canvas.paint_lcd(g,false);
canvas.paint_lcd(g);
}
}
 
public void refresh_lcd()
{
 
try {
act_lcd_lines=edit_source.field_names[act_tab].length*2+2;
for ( int i=0;i<act_lcd_lines;i++)
lcd_lines[i]="";
// lcd_lines[0]=(act_tab==0?" ":"< ") + edit_source.tab_names[act_tab] + (act_tab==(edit_source.tab_names.length-1)?" ":" >");
for (int i=0;i<edit_source.field_names[act_tab].length;i++)
{
lcd_lines[2*i]=edit_source.field_names[act_tab][i];
switch(edit_source.field_types[act_tab][i])
{
case PARAMTYPE_BITSWITCH:
lcd_lines[1+2*i]=" " + (((edit_source.get_field_from_act(edit_source.field_positions[act_tab][i]/8)&(1<<edit_source.field_positions[act_tab][i]%8))==0)?"off":"on" ) ;
break;
case PARAMTYPE_BYTE:
lcd_lines[1+2*i]=" "+edit_source.get_field_from_act(edit_source.field_positions[act_tab][i]);
if ((edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])>250)&&(edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])<256))
lcd_lines[2+2*i]+="[Poti"+(edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])-250) +"]"; break;
 
 
case PARAMTYPE_KEY:
if (edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])==-4242)
lcd_lines[1+2*i]="none";
else
lcd_lines[1+2*i]=" "+edit_source.get_field_from_act(edit_source.field_positions[act_tab][i]);
break;
case PARAMTYPE_STICK:
lcd_lines[1+2*i]=" "+edit_source.get_field_from_act(edit_source.field_positions[act_tab][i]);
break;
default:
lcd_lines[1+2*i]=" "+edit_source.choice_strings[edit_source.field_types[act_tab][i]-PARAMTYPE_CHOICE][edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])];
}
}
lcd_lines[act_lcd_lines-1]="back";
canvas.lcd_lines=new String[act_lcd_lines];
for ( int i=0;i<act_lcd_lines;i++)
{
lcd_lines[i]=(act_y==i?"#":" ")+lcd_lines[i];
while(lcd_lines[i].length()<20)
lcd_lines[i]+=" ";
 
canvas.lcd_lines[i]=lcd_lines[i];
}
 
}
 
catch (Exception e){}
// for(int i=0;i<act_lcd_lines;i++)
 
/*
}
else
{
canvas.lcd_lines=new String[1];
canvas.lcd_lines[0]="reading params";
}
*/
}
 
 
public final static int KEYCODE_CLEAR=-8;
public boolean editing_number=false;
 
public void keypress (int keyCode,int action)
{
 
if (select_mode)
{
if (action== Canvas.FIRE)
{
 
if (canvas.act_menu_select==(menu_items.length-1))
canvas.chg_state(nextstate);
else
 
{
act_tab=canvas.act_menu_select;
select_mode=false;
act_y=1;
}
}
else
canvas.menu_keypress(keyCode);
}
else
{
 
 
if ((act_y!=(act_lcd_lines-1))&&(((keyCode >= Canvas.KEY_NUM0) && (keyCode <= Canvas.KEY_NUM9))|| ( keyCode==KEYCODE_CLEAR)))
{
int act_pos=act_y/2;
if((edit_source.field_types[act_tab][act_pos]==edit_source.PARAMTYPE_BYTE))
{
if ((keyCode >= Canvas.KEY_NUM0) && (keyCode <= Canvas.KEY_NUM9))
{
if((editing_number)&&( Math.abs(edit_source.get_field_from_act(edit_source.field_positions[act_tab][act_pos]))*10+(keyCode - Canvas.KEY_NUM0)<1000))
edit_source.set_field_from_act(edit_source.field_positions[act_tab][act_pos] , Math.abs(edit_source.get_field_from_act(edit_source.field_positions[act_tab][act_pos]))*10+(keyCode - Canvas.KEY_NUM0));
else
edit_source.set_field_from_act(edit_source.field_positions[act_tab][act_pos] , (keyCode - Canvas.KEY_NUM0));
editing_number=true;
return;
}
else
if ( keyCode==KEYCODE_CLEAR)
edit_source.set_field_from_act(edit_source.field_positions[act_tab][act_pos],0);
}
editing_number=false;
}
 
switch (action)
{
case Canvas.DOWN:
if (act_y<(act_lcd_lines-2)) act_y+=2;
else act_y=1;
break;
case Canvas.UP:
if (act_y!=1) act_y-=2;
else act_y=act_lcd_lines-1;
break;
default:
 
 
 
if (act_y!=(act_lcd_lines-1))
{
 
//
 
int act_pos=act_y/2;
 
if((edit_source.field_types[act_tab][act_pos]==edit_source.PARAMTYPE_KEY))
edit_source.set_field_from_act(edit_source.field_positions[act_tab][act_pos],keyCode);
switch (action)
{
case Canvas.RIGHT:
switch(edit_source.field_types[act_tab][act_pos])
{
case PARAMTYPE_BITSWITCH:
edit_source.field_from_act_xor((edit_source.field_positions[act_tab][act_pos]/8),1<<(edit_source.field_positions[act_tab][act_pos]%8));
break;
case PARAMTYPE_BYTE:
case PARAMTYPE_STICK:
edit_source.field_from_act_add(edit_source.field_positions[act_tab][act_pos],1);
break;
default:
edit_source.field_from_act_add_mod(edit_source.field_positions[act_tab][act_pos],1,edit_source.choice_strings[edit_source.field_types[act_tab][act_pos]-PARAMTYPE_CHOICE].length);
break;
}
break;
case Canvas.LEFT:
switch(edit_source.field_types[act_tab][act_pos])
{
case PARAMTYPE_BITSWITCH:
edit_source.field_from_act_xor((edit_source.field_positions[act_tab][act_pos]/8),1<<(edit_source.field_positions[act_tab][act_pos]%8));
break;
case PARAMTYPE_BYTE:
case PARAMTYPE_STICK:
edit_source.field_from_act_add(edit_source.field_positions[act_tab][act_pos],-1);
break;
default:
edit_source.field_from_act_add_mod(edit_source.field_positions[act_tab][act_pos],1,edit_source.choice_strings[edit_source.field_types[act_tab][act_pos]-PARAMTYPE_CHOICE].length);
break;
}
break;
}
}
else
if (action== Canvas.FIRE)
{
act_y=1;
canvas.menu_items[0]="";
select_mode=true;
 
}
}
// if (!select_mode)refresh_lcd();
}
} // keypress
}
 
/DUBwise/tags/v0.51/j2me/src/MKStatusVoice.java
0,0 → 1,149
/******************************************
*
* Voice output for MK
*
* Author: Marcus -LiGi- Bueschleb
*
*******************************************/
 
import javax.microedition.media.*;
import javax.microedition.media.control.*;
import java.util.*;
import java.io.*;
 
 
public class MKStatusVoice
implements Runnable,PlayerListener
{
 
org.ligi.ufo.MKCommunicator mk=null;
DUBwiseCanvas canvas=null;
Player player;
public final int PLAYERSTATE_IDLE=0;
public final int PLAYERSTATE_PLAYING=1;
public final int PLAYERSTATE_FIN=2;
 
 
public int volume=100;
public int delay=5;
 
int act_player_state=PLAYERSTATE_IDLE;
VolumeControl vc;
 
public MKStatusVoice(org.ligi.ufo.MKCommunicator _mk,DUBwiseCanvas _canvas)
{
canvas=_canvas;
mk=_mk;
new Thread( this ).start(); // fire up main Thread
}
 
public void playerUpdate(Player player, String event, Object data)
{
if(event == PlayerListener.END_OF_MEDIA) {
try {
defplayer();
}
catch(MediaException me) { }
act_player_state=PLAYERSTATE_FIN;
player=null;
 
}
}
void defplayer() throws MediaException {
if (player != null) {
if(player.getState() == Player.STARTED) {
player.stop();
}
if(player.getState() == Player.PREFETCHED) {
player.deallocate();
}
if(player.getState() == Player.REALIZED || player.getState() == Player.UNREALIZED) {
player.close();
}
}
player = null;
}
 
 
public void start_playing(String name)
{
try {
try {
player = Manager.createPlayer(getClass().getResourceAsStream(name+".mp3"), "audio/mp3");
}
catch (Exception e) {
player = Manager.createPlayer(getClass().getResourceAsStream(name+".wav"), "audio/x-wav");
}
player.addPlayerListener(this);
player.realize();
act_player_state=PLAYERSTATE_PLAYING;
 
vc = (VolumeControl) player.getControl("VolumeControl");
if(vc != null) {
vc.setLevel(volume);
}
 
player.prefetch();
player.setLoopCount(1);
player.start();
}
catch (Exception e) {
}
}
public void wait_for_end()
{
while (act_player_state!=PLAYERSTATE_FIN)
{
try { Thread.sleep(5); }
catch (Exception e) { }
}
 
}
 
int info_from_debug_set=-1;
public void run()
{
while(true)
{
if (mk.connected&&(canvas.settings.do_sound)&&(mk.debug_data.UBatt()!=-1)&&(!mk.force_disconnect))
{
int ubatt=mk.debug_data.UBatt();
if (info_from_debug_set!=mk.stats.debug_data_count)
{
info_from_debug_set=mk.stats.debug_data_count;
start_playing(""+(ubatt/10));
wait_for_end();
if((ubatt%10)!=0)
{
start_playing("komma");
wait_for_end();
start_playing(""+(ubatt%10));
wait_for_end();
}
start_playing("volt");
}
}
 
try {
if (delay<1)
Thread.sleep(1000);
else
Thread.sleep(delay*1000);
}
catch (Exception e) { }
}
}
 
}
/DUBwise/tags/v0.51/j2me/.
Property changes:
Added: svn:ignore
+tmp
+build
+bin_tmp
+*.tmp
+