summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanut <manut@58fc9717-fb00-483d-b79c-3a878c4e3be5>2007-08-12 11:39:18 +0000
committermanut <manut@58fc9717-fb00-483d-b79c-3a878c4e3be5>2007-08-12 11:39:18 +0000
commit1caba29952307e005eae662fcace54b2252b8c97 (patch)
tree57a5977cedc20b92a9878916c1095cb152fc79e5
InitialHEADmaster
git-svn-id: svn+ssh://mecka.net/home/svn/geoc@1 58fc9717-fb00-483d-b79c-3a878c4e3be5
-rwxr-xr-xtrunk/build.xml80
-rwxr-xr-xtrunk/build/.timestamp1
-rwxr-xr-xtrunk/build/before-obfuscation.jarbin0 -> 33109 bytes
-rwxr-xr-xtrunk/build/compiled/gui/geoc.classbin0 -> 7703 bytes
-rwxr-xr-xtrunk/build/compiled/nav/locListener.classbin0 -> 1009 bytes
-rwxr-xr-xtrunk/build/compiled/nav/navigate.classbin0 -> 3061 bytes
-rwxr-xr-xtrunk/build/compiled/nav/processLoc.classbin0 -> 2618 bytes
-rwxr-xr-xtrunk/build/compiled/nav/processState.classbin0 -> 909 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/AbstractInfoScreen.classbin0 -> 5943 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/SimpleTableModel.classbin0 -> 4617 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$1.classbin0 -> 241 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.classbin0 -> 1501 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen.classbin0 -> 3132 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/TableItem.classbin0 -> 14621 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/TableModel.classbin0 -> 434 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/TableModelListener.classbin0 -> 227 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$1.classbin0 -> 675 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.classbin0 -> 1159 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.classbin0 -> 1786 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen.classbin0 -> 3918 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/laf/ColorSchema.classbin0 -> 2718 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/laf/SystemColorSchema.classbin0 -> 1770 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/lcdui/laf/UserColorSchema.classbin0 -> 2132 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/util/CancellableTask.classbin0 -> 262 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/util/Executable.classbin0 -> 204 bytes
-rwxr-xr-xtrunk/build/compiled/org/netbeans/microedition/util/SimpleCancellableTask.classbin0 -> 1395 bytes
-rwxr-xr-xtrunk/build/manifest.mf6
-rwxr-xr-xtrunk/build/obfuscated.jarbin0 -> 33109 bytes
-rwxr-xr-xtrunk/build/obfuscated/META-INF/MANIFEST.MF4
-rwxr-xr-xtrunk/build/obfuscated/gui/geoc.classbin0 -> 7703 bytes
-rwxr-xr-xtrunk/build/obfuscated/nav/locListener.classbin0 -> 1009 bytes
-rwxr-xr-xtrunk/build/obfuscated/nav/navigate.classbin0 -> 3061 bytes
-rwxr-xr-xtrunk/build/obfuscated/nav/processLoc.classbin0 -> 2618 bytes
-rwxr-xr-xtrunk/build/obfuscated/nav/processState.classbin0 -> 909 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/AbstractInfoScreen.classbin0 -> 5943 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/SimpleTableModel.classbin0 -> 4617 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen$1.classbin0 -> 241 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.classbin0 -> 1501 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen.classbin0 -> 3132 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/TableItem.classbin0 -> 14621 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/TableModel.classbin0 -> 434 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/TableModelListener.classbin0 -> 227 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$1.classbin0 -> 675 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.classbin0 -> 1159 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.classbin0 -> 1786 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen.classbin0 -> 3918 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/ColorSchema.classbin0 -> 2718 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/SystemColorSchema.classbin0 -> 1770 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/UserColorSchema.classbin0 -> 2132 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/util/CancellableTask.classbin0 -> 262 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/util/Executable.classbin0 -> 204 bytes
-rwxr-xr-xtrunk/build/obfuscated/org/netbeans/microedition/util/SimpleCancellableTask.classbin0 -> 1395 bytes
-rwxr-xr-xtrunk/build/preprocessed/gui/geoc.java469
-rwxr-xr-xtrunk/build/preprocessed/nav/locListener.java35
-rwxr-xr-xtrunk/build/preprocessed/nav/navigate.java93
-rwxr-xr-xtrunk/build/preprocessed/nav/processLoc.java104
-rwxr-xr-xtrunk/build/preprocessed/nav/processState.java50
-rwxr-xr-xtrunk/build/preverified/gui/geoc.classbin0 -> 8275 bytes
-rwxr-xr-xtrunk/build/preverified/nav/locListener.classbin0 -> 1009 bytes
-rwxr-xr-xtrunk/build/preverified/nav/navigate.classbin0 -> 3168 bytes
-rwxr-xr-xtrunk/build/preverified/nav/processLoc.classbin0 -> 2749 bytes
-rwxr-xr-xtrunk/build/preverified/nav/processState.classbin0 -> 973 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/AbstractInfoScreen.classbin0 -> 5943 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/SimpleTableModel.classbin0 -> 4617 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen$1.classbin0 -> 241 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.classbin0 -> 1501 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen.classbin0 -> 3132 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/TableItem.classbin0 -> 14621 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/TableModel.classbin0 -> 434 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/TableModelListener.classbin0 -> 227 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$1.classbin0 -> 675 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.classbin0 -> 1159 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.classbin0 -> 1786 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen.classbin0 -> 3918 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/laf/ColorSchema.classbin0 -> 2718 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/laf/SystemColorSchema.classbin0 -> 1770 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/lcdui/laf/UserColorSchema.classbin0 -> 2132 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/util/CancellableTask.classbin0 -> 262 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/util/Executable.classbin0 -> 204 bytes
-rwxr-xr-xtrunk/build/preverified/org/netbeans/microedition/util/SimpleCancellableTask.classbin0 -> 1395 bytes
-rwxr-xr-xtrunk/dist/geoc.jad8
-rwxr-xr-xtrunk/dist/geoc.jarbin0 -> 33448 bytes
-rwxr-xr-xtrunk/nbproject/build-impl.xml413
-rwxr-xr-xtrunk/nbproject/genfiles.properties8
-rwxr-xr-xtrunk/nbproject/private/private.properties3
-rwxr-xr-xtrunk/nbproject/project.properties67
-rwxr-xr-xtrunk/nbproject/project.xml10
-rwxr-xr-xtrunk/src/gui/geoc.java469
-rwxr-xr-xtrunk/src/gui/geoc.mvd202
-rwxr-xr-xtrunk/src/nav/locListener.java35
-rwxr-xr-xtrunk/src/nav/navigate.java93
-rwxr-xr-xtrunk/src/nav/processLoc.java104
-rwxr-xr-xtrunk/src/nav/processState.java50
93 files changed, 2304 insertions, 0 deletions
diff --git a/trunk/build.xml b/trunk/build.xml
new file mode 100755
index 0000000..c442465
--- /dev/null
+++ b/trunk/build.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- You may freely edit this file. See commented blocks below for -->
+<!-- some examples of how to customize the build. -->
+<!-- (If you delete it and reopen the project it will be recreated.) -->
+<project name="" default="jar" basedir=".">
+ <description>Builds, tests, and runs the project .</description>
+ <import file="nbproject/build-impl.xml"/>
+ <!--
+
+ There exist several targets which are by default empty and which can be
+ used for execution of your tasks. These targets are usually executed
+ before and after some main targets. They are:
+
+ pre-init: called before initialization of project properties
+ post-init: called after initialization of project properties
+ pre-preprocess: called before text preprocessing of sources
+ post-preprocess: called after text preprocessing of sources
+ pre-compile: called before source compilation
+ post-compile: called after source compilation
+ pre-obfuscate: called before obfuscation
+ post-obfuscate: called after obfuscation
+ pre-preverify: called before preverification
+ post-preverify: called after preverification
+ pre-jar: called before jar building
+ post-jar: called after jar building
+ pre-clean: called before cleaning build products
+ post-clean: called after cleaning build products
+
+ Example of pluging a my-special-task after the compilation could look like
+
+ <target name="post-compile">
+ <my-special-task>
+ <fileset dir="${build.classes.dir}"/>
+ </my-special-task>
+ </target>
+
+ For list of available properties check the imported
+ nbproject/build-impl.xml file.
+
+ Other way how to customize the build is by overriding existing main targets.
+ The target of interest are:
+
+ preprocess: preprocessing
+ extract-libs: extraction of libraries and resources
+ compile: compilation
+ create-jad: construction of jad and jar manifest source
+ obfuscate: obfuscation
+ preverify: preverification
+ jar: jar archive building
+ run: execution
+ debug: execution in debug mode
+ javadoc: javadoc generation
+
+ Example of overriding the target for project execution could look like
+
+ <target name="run" depends="init,jar">
+ <my-special-exec jadfile="${dist.dir}/${dist.jad}"/>
+ </target>
+
+ Be careful about correct dependencies when overriding original target.
+ Again, for list of available properties which you can use check the target
+ you are overriding in nbproject/build-impl.xml file.
+
+ A special target for-all-configs can be used to run some specific targets for
+ all project configurations in a sequence. File nbproject/build-impl.xml
+ already contains some "for-all" targets:
+
+ jar-all
+ javadoc-all
+ clean-all
+
+ Example of definition of target iterating over all project configurations:
+
+ <target name="jar-all">
+ <property name="target.to.call" value="jar"/>
+ <antcall target="for-all-configs"/>
+ </target>
+
+ -->
+</project>
diff --git a/trunk/build/.timestamp b/trunk/build/.timestamp
new file mode 100755
index 0000000..999b584
--- /dev/null
+++ b/trunk/build/.timestamp
@@ -0,0 +1 @@
+ignore me \ No newline at end of file
diff --git a/trunk/build/before-obfuscation.jar b/trunk/build/before-obfuscation.jar
new file mode 100755
index 0000000..5253e17
--- /dev/null
+++ b/trunk/build/before-obfuscation.jar
Binary files differ
diff --git a/trunk/build/compiled/gui/geoc.class b/trunk/build/compiled/gui/geoc.class
new file mode 100755
index 0000000..d3fd335
--- /dev/null
+++ b/trunk/build/compiled/gui/geoc.class
Binary files differ
diff --git a/trunk/build/compiled/nav/locListener.class b/trunk/build/compiled/nav/locListener.class
new file mode 100755
index 0000000..f09faa3
--- /dev/null
+++ b/trunk/build/compiled/nav/locListener.class
Binary files differ
diff --git a/trunk/build/compiled/nav/navigate.class b/trunk/build/compiled/nav/navigate.class
new file mode 100755
index 0000000..48844e4
--- /dev/null
+++ b/trunk/build/compiled/nav/navigate.class
Binary files differ
diff --git a/trunk/build/compiled/nav/processLoc.class b/trunk/build/compiled/nav/processLoc.class
new file mode 100755
index 0000000..8fdeffe
--- /dev/null
+++ b/trunk/build/compiled/nav/processLoc.class
Binary files differ
diff --git a/trunk/build/compiled/nav/processState.class b/trunk/build/compiled/nav/processState.class
new file mode 100755
index 0000000..002cefa
--- /dev/null
+++ b/trunk/build/compiled/nav/processState.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/AbstractInfoScreen.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/AbstractInfoScreen.class
new file mode 100755
index 0000000..bf256b3
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/AbstractInfoScreen.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/SimpleTableModel.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/SimpleTableModel.class
new file mode 100755
index 0000000..bb39f3c
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/SimpleTableModel.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$1.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$1.class
new file mode 100755
index 0000000..3f52272
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$1.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class
new file mode 100755
index 0000000..1aa4582
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen.class
new file mode 100755
index 0000000..930d603
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/SplashScreen.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/TableItem.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/TableItem.class
new file mode 100755
index 0000000..b4a0d58
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/TableItem.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/TableModel.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/TableModel.class
new file mode 100755
index 0000000..c06fca0
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/TableModel.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/TableModelListener.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/TableModelListener.class
new file mode 100755
index 0000000..8d0fdf2
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/TableModelListener.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$1.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$1.class
new file mode 100755
index 0000000..e79f14d
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$1.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class
new file mode 100755
index 0000000..e34fd5d
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class
new file mode 100755
index 0000000..b86b82e
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen.class
new file mode 100755
index 0000000..cf6d48a
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/WaitScreen.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/laf/ColorSchema.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/laf/ColorSchema.class
new file mode 100755
index 0000000..0d7f3f5
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/laf/ColorSchema.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class
new file mode 100755
index 0000000..a702d96
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/lcdui/laf/UserColorSchema.class b/trunk/build/compiled/org/netbeans/microedition/lcdui/laf/UserColorSchema.class
new file mode 100755
index 0000000..cd1ac73
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/lcdui/laf/UserColorSchema.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/util/CancellableTask.class b/trunk/build/compiled/org/netbeans/microedition/util/CancellableTask.class
new file mode 100755
index 0000000..97d6936
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/util/CancellableTask.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/util/Executable.class b/trunk/build/compiled/org/netbeans/microedition/util/Executable.class
new file mode 100755
index 0000000..83cb718
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/util/Executable.class
Binary files differ
diff --git a/trunk/build/compiled/org/netbeans/microedition/util/SimpleCancellableTask.class b/trunk/build/compiled/org/netbeans/microedition/util/SimpleCancellableTask.class
new file mode 100755
index 0000000..0ab8538
--- /dev/null
+++ b/trunk/build/compiled/org/netbeans/microedition/util/SimpleCancellableTask.class
Binary files differ
diff --git a/trunk/build/manifest.mf b/trunk/build/manifest.mf
new file mode 100755
index 0000000..f288e61
--- /dev/null
+++ b/trunk/build/manifest.mf
@@ -0,0 +1,6 @@
+MIDlet-1: geoc,,gui.geoc
+MIDlet-Vendor: manut.de
+MIDlet-Version: 0.1
+MIDlet-Name: geoc
+MicroEdition-Configuration: CLDC-1.1
+MicroEdition-Profile: MIDP-2.0
diff --git a/trunk/build/obfuscated.jar b/trunk/build/obfuscated.jar
new file mode 100755
index 0000000..5253e17
--- /dev/null
+++ b/trunk/build/obfuscated.jar
Binary files differ
diff --git a/trunk/build/obfuscated/META-INF/MANIFEST.MF b/trunk/build/obfuscated/META-INF/MANIFEST.MF
new file mode 100755
index 0000000..e88e935
--- /dev/null
+++ b/trunk/build/obfuscated/META-INF/MANIFEST.MF
@@ -0,0 +1,4 @@
+Manifest-Version: 1.0
+Ant-Version: Apache Ant 1.6.5
+Created-By: 1.5.0_10-b03 (Sun Microsystems Inc.)
+
diff --git a/trunk/build/obfuscated/gui/geoc.class b/trunk/build/obfuscated/gui/geoc.class
new file mode 100755
index 0000000..d3fd335
--- /dev/null
+++ b/trunk/build/obfuscated/gui/geoc.class
Binary files differ
diff --git a/trunk/build/obfuscated/nav/locListener.class b/trunk/build/obfuscated/nav/locListener.class
new file mode 100755
index 0000000..f09faa3
--- /dev/null
+++ b/trunk/build/obfuscated/nav/locListener.class
Binary files differ
diff --git a/trunk/build/obfuscated/nav/navigate.class b/trunk/build/obfuscated/nav/navigate.class
new file mode 100755
index 0000000..48844e4
--- /dev/null
+++ b/trunk/build/obfuscated/nav/navigate.class
Binary files differ
diff --git a/trunk/build/obfuscated/nav/processLoc.class b/trunk/build/obfuscated/nav/processLoc.class
new file mode 100755
index 0000000..8fdeffe
--- /dev/null
+++ b/trunk/build/obfuscated/nav/processLoc.class
Binary files differ
diff --git a/trunk/build/obfuscated/nav/processState.class b/trunk/build/obfuscated/nav/processState.class
new file mode 100755
index 0000000..002cefa
--- /dev/null
+++ b/trunk/build/obfuscated/nav/processState.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/AbstractInfoScreen.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/AbstractInfoScreen.class
new file mode 100755
index 0000000..bf256b3
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/AbstractInfoScreen.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SimpleTableModel.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SimpleTableModel.class
new file mode 100755
index 0000000..bb39f3c
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SimpleTableModel.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen$1.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen$1.class
new file mode 100755
index 0000000..3f52272
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen$1.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class
new file mode 100755
index 0000000..1aa4582
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen.class
new file mode 100755
index 0000000..930d603
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/SplashScreen.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/TableItem.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/TableItem.class
new file mode 100755
index 0000000..b4a0d58
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/TableItem.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/TableModel.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/TableModel.class
new file mode 100755
index 0000000..c06fca0
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/TableModel.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/TableModelListener.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/TableModelListener.class
new file mode 100755
index 0000000..8d0fdf2
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/TableModelListener.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$1.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$1.class
new file mode 100755
index 0000000..e79f14d
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$1.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class
new file mode 100755
index 0000000..e34fd5d
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class
new file mode 100755
index 0000000..b86b82e
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen.class
new file mode 100755
index 0000000..cf6d48a
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/WaitScreen.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/ColorSchema.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/ColorSchema.class
new file mode 100755
index 0000000..0d7f3f5
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/ColorSchema.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class
new file mode 100755
index 0000000..a702d96
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/UserColorSchema.class b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/UserColorSchema.class
new file mode 100755
index 0000000..cd1ac73
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/lcdui/laf/UserColorSchema.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/util/CancellableTask.class b/trunk/build/obfuscated/org/netbeans/microedition/util/CancellableTask.class
new file mode 100755
index 0000000..97d6936
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/util/CancellableTask.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/util/Executable.class b/trunk/build/obfuscated/org/netbeans/microedition/util/Executable.class
new file mode 100755
index 0000000..83cb718
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/util/Executable.class
Binary files differ
diff --git a/trunk/build/obfuscated/org/netbeans/microedition/util/SimpleCancellableTask.class b/trunk/build/obfuscated/org/netbeans/microedition/util/SimpleCancellableTask.class
new file mode 100755
index 0000000..0ab8538
--- /dev/null
+++ b/trunk/build/obfuscated/org/netbeans/microedition/util/SimpleCancellableTask.class
Binary files differ
diff --git a/trunk/build/preprocessed/gui/geoc.java b/trunk/build/preprocessed/gui/geoc.java
new file mode 100755
index 0000000..ba54077
--- /dev/null
+++ b/trunk/build/preprocessed/gui/geoc.java
@@ -0,0 +1,469 @@
+/*
+ * geoc.java
+ *
+ * Created on July 14, 2007, 1:29 AM
+ */
+
+package gui;
+
+import javax.microedition.midlet.*;
+import javax.microedition.lcdui.*;
+import javax.microedition.location.LocationException;
+import java.util.Timer;
+import nav.*;
+
+/**
+ *
+ * @author manut
+ */
+public class geoc extends MIDlet implements CommandListener {
+
+ private navigate nav;
+
+ /**
+ * Creates a new instance of geoc
+ */
+ public geoc() {
+
+ try {
+
+ nav = new navigate(this);
+
+ } catch (LocationException e) {
+
+ this.get_stringItemHead1().setText("no GPS!/n");
+
+ }
+ }
+
+ private Form editForm;//GEN-BEGIN:MVDFields
+ private StringItem stringItemHead1;
+ private Command exitCommand;
+ private TextField textFieldEnterNorth;
+ private TextField textFieldEnterEast;
+ private Spacer spacer1;
+ private StringItem stringItemEnterDest;
+ private Command screenCommand1;
+ private Command exitCommand1;
+ private Command exitCommand2;
+ private Command itemCommand1;
+ private Command itemCommand2;
+ private Form navForm;
+ private Command exitCommand3;
+ private Command exitCommand4;
+ private Command screenCommand2;
+ private StringItem stringItemHead2;
+ private Spacer spacer2;
+ private StringItem stringItemCourse;
+ private StringItem stringItemDistance;
+ private StringItem stringItemActNorth;
+ private StringItem stringItemActEast;
+ private StringItem stringItemActHeight;
+ private StringItem stringItemDestination;
+ private StringItem stringItemDestNorth;
+ private StringItem stringItemDestEast;
+ private Command okCommand1;//GEN-END:MVDFields
+
+//GEN-LINE:MVDMethods
+
+ /** This method initializes UI of the application.//GEN-BEGIN:MVDInitBegin
+ */
+ private void initialize() {//GEN-END:MVDInitBegin
+ // Insert pre-init code here
+ navForm = new Form(null, new Item[] {//GEN-BEGIN:MVDInitInit
+ get_stringItemHead2(),
+ get_spacer2(),
+ get_stringItemCourse(),
+ get_stringItemDistance(),
+ get_stringItemActNorth(),
+ get_stringItemActEast(),
+ get_stringItemActHeight(),
+ get_stringItemDestination(),
+ get_stringItemDestNorth(),
+ get_stringItemDestEast()
+ });
+ navForm.addCommand(get_exitCommand4());
+ navForm.addCommand(get_screenCommand2());
+ navForm.setCommandListener(this);
+ editForm = new Form(null, new Item[] {
+ get_stringItemHead1(),
+ get_spacer1(),
+ get_stringItemEnterDest(),
+ get_textFieldEnterNorth(),
+ get_textFieldEnterEast()
+ });
+ editForm.addCommand(get_exitCommand());
+ editForm.addCommand(get_okCommand1());
+ editForm.setCommandListener(this);
+ getDisplay().setCurrent(editForm);//GEN-END:MVDInitInit
+ // Insert post-init code here
+ }//GEN-LINE:MVDInitEnd
+
+ /** Called by the system to indicate that a command has been invoked on a particular displayable.//GEN-BEGIN:MVDCABegin
+ * @param command the Command that ws invoked
+ * @param displayable the Displayable on which the command was invoked
+ */
+ public void commandAction(Command command, Displayable displayable) {//GEN-END:MVDCABegin
+ // Insert global pre-action code here
+ if (displayable == editForm) {//GEN-BEGIN:MVDCABody
+ if (command == exitCommand) {//GEN-END:MVDCABody
+ // Insert pre-action code here
+ exitMIDlet();//GEN-LINE:MVDCAAction3
+ // Insert post-action code here at gui.geoc.<init>(geoc.java:34)
+ } else if (command == okCommand1) {//GEN-LINE:MVDCACase3
+ // Insert pre-action code here
+ javax.microedition.lcdui.Alert al = new javax.microedition.lcdui.Alert("Error");
+ al.setString("Coord. parsing failed\nor no gps!");
+ try {
+ nav.setDestination(get_textFieldEnterNorth().getString(), get_textFieldEnterEast().getString());
+ } catch(Exception ae) {
+ getDisplay().setCurrent(al, navForm);
+ }
+ getDisplay().setCurrent(navForm);
+ /*
+getDisplay ().setCurrent (navForm);//GEN-LINE:MVDCAAction43
+ // Iert post-action code here
+ */
+ }//GEN-BEGIN:MVDCACase43
+ } else if (displayable == navForm) {
+ if (command == exitCommand4) {//GEN-END:MVDCACase43
+ // Insert pre-action code here
+ exitMIDlet();//GEN-LINE:MVDCAAction24
+ // Insert post-action code here
+ } else if (command == screenCommand2) {//GEN-LINE:MVDCACase24
+ // Insert pre-action code here
+ getDisplay().setCurrent(editForm);//GEN-LINE:MVDCAAction26
+ // Insert post-action code here
+ }//GEN-BEGIN:MVDCACase26
+ }//GEN-END:MVDCACase26
+ // Insert global post-action code here
+}//GEN-LINE:MVDCAEnd
+
+ /**
+ * This method should return an instance of the display.
+ */
+ public Display getDisplay() {//GEN-FIRST:MVDGetDisplay
+ return Display.getDisplay(this);
+ }//GEN-LAST:MVDGetDisplay
+
+ /**
+ * This method should exit the midlet.
+ */
+ public void exitMIDlet() {//GEN-FIRST:MVDExitMidlet
+ getDisplay().setCurrent(null);
+ destroyApp(true);
+ notifyDestroyed();
+ }//GEN-LAST:MVDExitMidlet
+
+
+ /** This method returns instance for stringItemHead1 component and should be called instead of accessing stringItemHead1 field directly.//GEN-BEGIN:MVDGetBegin4
+ * @return Instance for stringItemHead1 component
+ */
+ public StringItem get_stringItemHead1() {
+ if (stringItemHead1 == null) {//GEN-END:MVDGetBegin4
+ // Insert pre-init code here
+ stringItemHead1 = new StringItem("geoc", "v0.1");//GEN-LINE:MVDGetInit4
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd4
+ return stringItemHead1;
+ }//GEN-END:MVDGetEnd4
+
+ /** This method returns instance for exitCommand component and should be called instead of accessing exitCommand field directly.//GEN-BEGIN:MVDGetBegin5
+ * @return Instance for exitCommand component
+ */
+ public Command get_exitCommand() {
+ if (exitCommand == null) {//GEN-END:MVDGetBegin5
+ // Insert pre-init code here
+ exitCommand = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit5
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd5
+ return exitCommand;
+ }//GEN-END:MVDGetEnd5
+
+ /** This method returns instance for textFieldEnterNorth component and should be called instead of accessing textFieldEnterNorth field directly.//GEN-BEGIN:MVDGetBegin6
+ * @return Instance for textFieldEnterNorth component
+ */
+ public TextField get_textFieldEnterNorth() {
+ if (textFieldEnterNorth == null) {//GEN-END:MVDGetBegin6
+ // Insert pre-init code here
+ textFieldEnterNorth = new TextField("North", "47:42.466", 120, TextField.ANY);//GEN-LINE:MVDGetInit6
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd6
+ return textFieldEnterNorth;
+ }//GEN-END:MVDGetEnd6
+
+ /** This method returns instance for textFieldEnterEast component and should be called instead of accessing textFieldEnterEast field directly.//GEN-BEGIN:MVDGetBegin7
+ * @return Instance for textFieldEnterEast component
+ */
+ public TextField get_textFieldEnterEast() {
+ if (textFieldEnterEast == null) {//GEN-END:MVDGetBegin7
+ // Insert pre-init code here
+ textFieldEnterEast = new TextField("East", "9:36.620", 120, TextField.ANY);//GEN-LINE:MVDGetInit7
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd7
+ return textFieldEnterEast;
+ }//GEN-END:MVDGetEnd7
+
+ /** This method returns instance for spacer1 component and should be called instead of accessing spacer1 field directly.//GEN-BEGIN:MVDGetBegin9
+ * @return Instance for spacer1 component
+ */
+ public Spacer get_spacer1() {
+ if (spacer1 == null) {//GEN-END:MVDGetBegin9
+ // Insert pre-init code here
+ spacer1 = new Spacer(1000, 1);//GEN-LINE:MVDGetInit9
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd9
+ return spacer1;
+ }//GEN-END:MVDGetEnd9
+
+ /** This method returns instance for stringItemEnterDest component and should be called instead of accessing stringItemEnterDest field directly.//GEN-BEGIN:MVDGetBegin10
+ * @return Instance for stringItemEnterDest component
+ */
+ public StringItem get_stringItemEnterDest() {
+ if (stringItemEnterDest == null) {//GEN-END:MVDGetBegin10
+ // Insert pre-init code here
+ stringItemEnterDest = new StringItem("\nEnter Destination", "");//GEN-LINE:MVDGetInit10
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd10
+ return stringItemEnterDest;
+ }//GEN-END:MVDGetEnd10
+
+ /** This method returns instance for screenCommand1 component and should be called instead of accessing screenCommand1 field directly.//GEN-BEGIN:MVDGetBegin11
+ * @return Instance for screenCommand1 component
+ */
+ public Command get_screenCommand1() {
+ if (screenCommand1 == null) {//GEN-END:MVDGetBegin11
+ // Insert pre-init code here
+ screenCommand1 = new Command("go to", Command.SCREEN, 1);//GEN-LINE:MVDGetInit11
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd11
+ return screenCommand1;
+ }//GEN-END:MVDGetEnd11
+
+ /** This method returns instance for exitCommand1 component and should be called instead of accessing exitCommand1 field directly.//GEN-BEGIN:MVDGetBegin15
+ * @return Instance for exitCommand1 component
+ */
+ public Command get_exitCommand1() {
+ if (exitCommand1 == null) {//GEN-END:MVDGetBegin15
+ // Insert pre-init code here
+ exitCommand1 = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit15
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd15
+ return exitCommand1;
+ }//GEN-END:MVDGetEnd15
+
+ /** This method returns instance for exitCommand2 component and should be called instead of accessing exitCommand2 field directly.//GEN-BEGIN:MVDGetBegin16
+ * @return Instance for exitCommand2 component
+ */
+ public Command get_exitCommand2() {
+ if (exitCommand2 == null) {//GEN-END:MVDGetBegin16
+ // Insert pre-init code here
+ exitCommand2 = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit16
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd16
+ return exitCommand2;
+ }//GEN-END:MVDGetEnd16
+
+ /** This method returns instance for itemCommand1 component and should be called instead of accessing itemCommand1 field directly.//GEN-BEGIN:MVDGetBegin18
+ * @return Instance for itemCommand1 component
+ */
+ public Command get_itemCommand1() {
+ if (itemCommand1 == null) {//GEN-END:MVDGetBegin18
+ // Insert pre-init code here
+ itemCommand1 = new Command("Item", Command.ITEM, 1);//GEN-LINE:MVDGetInit18
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd18
+ return itemCommand1;
+ }//GEN-END:MVDGetEnd18
+
+ /** This method returns instance for itemCommand2 component and should be called instead of accessing itemCommand2 field directly.//GEN-BEGIN:MVDGetBegin19
+ * @return Instance for itemCommand2 component
+ */
+ public Command get_itemCommand2() {
+ if (itemCommand2 == null) {//GEN-END:MVDGetBegin19
+ // Insert pre-init code here
+ itemCommand2 = new Command("Edit Coord.", Command.ITEM, 1);//GEN-LINE:MVDGetInit19
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd19
+ return itemCommand2;
+ }//GEN-END:MVDGetEnd19
+
+ /** This method returns instance for exitCommand3 component and should be called instead of accessing exitCommand3 field directly.//GEN-BEGIN:MVDGetBegin22
+ * @return Instance for exitCommand3 component
+ */
+ public Command get_exitCommand3() {
+ if (exitCommand3 == null) {//GEN-END:MVDGetBegin22
+ // Insert pre-init code here
+ exitCommand3 = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit22
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd22
+ return exitCommand3;
+ }//GEN-END:MVDGetEnd22
+
+ /** This method returns instance for exitCommand4 component and should be called instead of accessing exitCommand4 field directly.//GEN-BEGIN:MVDGetBegin23
+ * @return Instance for exitCommand4 component
+ */
+ public Command get_exitCommand4() {
+ if (exitCommand4 == null) {//GEN-END:MVDGetBegin23
+ // Insert pre-init code here
+ exitCommand4 = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit23
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd23
+ return exitCommand4;
+ }//GEN-END:MVDGetEnd23
+
+ /** This method returns instance for screenCommand2 component and should be called instead of accessing screenCommand2 field directly.//GEN-BEGIN:MVDGetBegin25
+ * @return Instance for screenCommand2 component
+ */
+ public Command get_screenCommand2() {
+ if (screenCommand2 == null) {//GEN-END:MVDGetBegin25
+ // Insert pre-init code here
+ screenCommand2 = new Command("edit Coord.", Command.SCREEN, 1);//GEN-LINE:MVDGetInit25
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd25
+ return screenCommand2;
+ }//GEN-END:MVDGetEnd25
+
+ /** This method returns instance for stringItemHead2 component and should be called instead of accessing stringItemHead2 field directly.//GEN-BEGIN:MVDGetBegin27
+ * @return Instance for stringItemHead2 component
+ */
+ public StringItem get_stringItemHead2() {
+ if (stringItemHead2 == null) {//GEN-END:MVDGetBegin27
+ // Insert pre-init code here
+ stringItemHead2 = new StringItem("geoc", "v0.1");//GEN-LINE:MVDGetInit27
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd27
+ return stringItemHead2;
+ }//GEN-END:MVDGetEnd27
+
+ /** This method returns instance for spacer2 component and should be called instead of accessing spacer2 field directly.//GEN-BEGIN:MVDGetBegin28
+ * @return Instance for spacer2 component
+ */
+ public Spacer get_spacer2() {
+ if (spacer2 == null) {//GEN-END:MVDGetBegin28
+ // Insert pre-init code here
+ spacer2 = new Spacer(1000, 1);//GEN-LINE:MVDGetInit28
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd28
+ return spacer2;
+ }//GEN-END:MVDGetEnd28
+
+ /** This method returns instance for stringItemCourse component and should be called instead of accessing stringItemCourse field directly.//GEN-BEGIN:MVDGetBegin29
+ * @return Instance for stringItemCourse component
+ */
+ public StringItem get_stringItemCourse() {
+ if (stringItemCourse == null) {//GEN-END:MVDGetBegin29
+ // Insert pre-init code here
+ stringItemCourse = new StringItem("\nCourse", "0");//GEN-LINE:MVDGetInit29
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd29
+ return stringItemCourse;
+ }//GEN-END:MVDGetEnd29
+
+ /** This method returns instance for stringItemDistance component and should be called instead of accessing stringItemDistance field directly.//GEN-BEGIN:MVDGetBegin34
+ * @return Instance for stringItemDistance component
+ */
+ public StringItem get_stringItemDistance() {
+ if (stringItemDistance == null) {//GEN-END:MVDGetBegin34
+ // Insert pre-init code here
+ stringItemDistance = new StringItem("Distance", "0");//GEN-LINE:MVDGetInit34
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd34
+ return stringItemDistance;
+ }//GEN-END:MVDGetEnd34
+
+ /** This method returns instance for stringItemActNorth component and should be called instead of accessing stringItemActNorth field directly.//GEN-BEGIN:MVDGetBegin35
+ * @return Instance for stringItemActNorth component
+ */
+ public StringItem get_stringItemActNorth() {
+ if (stringItemActNorth == null) {//GEN-END:MVDGetBegin35
+ // Insert pre-init code here
+ stringItemActNorth = new StringItem("\nNorth", "0");//GEN-LINE:MVDGetInit35
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd35
+ return stringItemActNorth;
+ }//GEN-END:MVDGetEnd35
+
+ /** This method returns instance for stringItemActEast component and should be called instead of accessing stringItemActEast field directly.//GEN-BEGIN:MVDGetBegin36
+ * @return Instance for stringItemActEast component
+ */
+ public StringItem get_stringItemActEast() {
+ if (stringItemActEast == null) {//GEN-END:MVDGetBegin36
+ // Insert pre-init code here
+ stringItemActEast = new StringItem("East", "0");//GEN-LINE:MVDGetInit36
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd36
+ return stringItemActEast;
+ }//GEN-END:MVDGetEnd36
+
+ /** This method returns instance for stringItemActHeight component and should be called instead of accessing stringItemActHeight field directly.//GEN-BEGIN:MVDGetBegin37
+ * @return Instance for stringItemActHeight component
+ */
+ public StringItem get_stringItemActHeight() {
+ if (stringItemActHeight == null) {//GEN-END:MVDGetBegin37
+ // Insert pre-init code here
+ stringItemActHeight = new StringItem("Height", "0");//GEN-LINE:MVDGetInit37
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd37
+ return stringItemActHeight;
+ }//GEN-END:MVDGetEnd37
+
+ /** This method returns instance for stringItemDestination component and should be called instead of accessing stringItemDestination field directly.//GEN-BEGIN:MVDGetBegin38
+ * @return Instance for stringItemDestination component
+ */
+ public StringItem get_stringItemDestination() {
+ if (stringItemDestination == null) {//GEN-END:MVDGetBegin38
+ // Insert pre-init code here
+ stringItemDestination = new StringItem("\nDestination", "");//GEN-LINE:MVDGetInit38
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd38
+ return stringItemDestination;
+ }//GEN-END:MVDGetEnd38
+
+ /** This method returns instance for stringItemDestNorth component and should be called instead of accessing stringItemDestNorth field directly.//GEN-BEGIN:MVDGetBegin40
+ * @return Instance for stringItemDestNorth component
+ */
+ public StringItem get_stringItemDestNorth() {
+ if (stringItemDestNorth == null) {//GEN-END:MVDGetBegin40
+ // Insert pre-init code here
+ stringItemDestNorth = new StringItem("North", "0");//GEN-LINE:MVDGetInit40
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd40
+ return stringItemDestNorth;
+ }//GEN-END:MVDGetEnd40
+
+ /** This method returns instance for stringItemDestEast component and should be called instead of accessing stringItemDestEast field directly.//GEN-BEGIN:MVDGetBegin41
+ * @return Instance for stringItemDestEast component
+ */
+ public StringItem get_stringItemDestEast() {
+ if (stringItemDestEast == null) {//GEN-END:MVDGetBegin41
+ // Insert pre-init code here
+ stringItemDestEast = new StringItem("East", "0");//GEN-LINE:MVDGetInit41
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd41
+ return stringItemDestEast;
+ }//GEN-END:MVDGetEnd41
+
+ /** This method returns instance for okCommand1 component and should be called instead of accessing okCommand1 field directly.//GEN-BEGIN:MVDGetBegin42
+ * @return Instance for okCommand1 component
+ */
+ public Command get_okCommand1() {
+ if (okCommand1 == null) {//GEN-END:MVDGetBegin42
+ // Insert pre-init code here
+ okCommand1 = new Command("goto", Command.OK, 1);//GEN-LINE:MVDGetInit42
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd42
+ return okCommand1;
+ }//GEN-END:MVDGetEnd42
+
+ public void startApp() {
+ initialize();
+ }
+
+ public void pauseApp() {
+ }
+
+ public void destroyApp(boolean unconditional) {
+ }
+
+}
diff --git a/trunk/build/preprocessed/nav/locListener.java b/trunk/build/preprocessed/nav/locListener.java
new file mode 100755
index 0000000..54ff7db
--- /dev/null
+++ b/trunk/build/preprocessed/nav/locListener.java
@@ -0,0 +1,35 @@
+/*
+ * locListener.java
+ *
+ * Created on July 14, 2007, 4:20 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package nav;
+
+import javax.microedition.location.*;
+
+/**
+ *
+ * @author manut
+ */
+public class locListener implements LocationListener {
+
+ private navigate nav;
+
+ /** Creates a new instance of locListener */
+ public locListener(navigate _nav) {
+ nav = _nav;
+ }
+
+ public void providerStateChanged(LocationProvider prov, int newState){
+ nav.setNewState(newState);
+ }
+
+ public void locationUpdated(LocationProvider prov, Location location){
+ nav.setNewLoc(location);
+ }
+
+}
diff --git a/trunk/build/preprocessed/nav/navigate.java b/trunk/build/preprocessed/nav/navigate.java
new file mode 100755
index 0000000..eeaffce
--- /dev/null
+++ b/trunk/build/preprocessed/nav/navigate.java
@@ -0,0 +1,93 @@
+/*
+ * navigate.java
+ *
+ * Created on July 14, 2007, 2:18 AM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package nav;
+
+import javax.microedition.location.*;
+import gui.geoc;
+import java.lang.Thread;
+
+/**
+ *
+ * @author manut
+ */
+public class navigate {
+
+ private geoc gui;
+ private LocationProvider pos;
+ private int provState;
+
+ private Location actLoc;
+ private Landmark dest;
+
+ private processLoc pLoc;
+ private processState pState;
+
+ /** Creates a new instance of navigate */
+ public navigate(geoc _gui) throws LocationException {
+
+ pos = LocationProvider.getInstance(null);
+ if (pos == null)
+ throw new LocationException();
+
+ gui = _gui;
+ pLoc = new processLoc(gui);
+ pState = new processState(gui);
+ }
+
+ /** sets destination */
+ public void setDestination ( String north, String east )
+ throws IllegalArgumentException {
+
+ double latitude, longitude;
+ float altitude, hAcc, vAcc;
+
+ latitude = Coordinates.convert(north);
+ longitude = Coordinates.convert(east);
+
+ altitude = Float.NaN;
+ hAcc = 0;
+ vAcc = 0;
+
+ QualifiedCoordinates coord;
+ coord = new QualifiedCoordinates( latitude,
+ longitude,
+ altitude, hAcc, vAcc
+ );
+
+ if(dest == null){
+ AddressInfo info = new AddressInfo();
+ dest = new Landmark("destination", "stageX", coord, info);
+ } else
+ dest.setQualifiedCoordinates(coord);
+
+
+ locListener locList = new locListener(this);
+ int interval = -1;
+
+ gui.get_stringItemDestNorth().setText(north);
+ gui.get_stringItemDestEast().setText(east);
+
+ pos.setLocationListener(locList, interval, 0, 0);
+
+ }
+
+ public void setNewLoc(Location loc){
+ actLoc = loc;
+ pLoc.set(loc, dest);
+ pLoc.run();
+ }
+
+ public void setNewState(int state){
+ provState = state;
+ pState.set(state);
+ pState.run();
+ }
+
+}
diff --git a/trunk/build/preprocessed/nav/processLoc.java b/trunk/build/preprocessed/nav/processLoc.java
new file mode 100755
index 0000000..fdcd863
--- /dev/null
+++ b/trunk/build/preprocessed/nav/processLoc.java
@@ -0,0 +1,104 @@
+/*
+ * processLoc.java
+ *
+ * Created on July 14, 2007, 4:59 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package nav;
+
+import java.lang.Thread;
+import javax.microedition.location.*;
+
+import gui.*;
+
+/**
+ *
+ * @author manut
+ */
+public class processLoc extends Thread {
+
+ private geoc gui;
+ private Landmark dest;
+ private Location loc;
+ private Coordinates lastloc;
+ private Coordinates north;
+
+ /** Creates a new instance of processLoc */
+ public processLoc(geoc _gui) {
+ gui = _gui;
+ north = new Coordinates(90, 0, 0);
+ lastloc = null;
+ }
+
+ public void set(Location _loc, Landmark _dest){
+
+ loc = _loc;
+ dest = _dest;
+
+ }
+
+ private double arcsin(double azimuth){
+ double calc;
+ double last_calc = 0;
+
+ for(double i = -1; i <= 1; i=i+0.001){
+ calc = java.lang.Math.sin(i);
+ if ( calc == azimuth ){
+ return i;
+ } else if (last_calc <= azimuth && calc > azimuth){
+ return i;
+ } else
+ last_calc = calc;
+ }
+ return -2;
+ }
+
+ public void run(){
+ // calc course, distance
+ // A = LastPosition
+ // B = Destination
+ // C = Northpole
+ // D = ActPosition
+ // E = going further on straight forward, until you meet BC
+ //
+ // alphaI = arcsin( ( CD * sin(gammaI) ) / AB )
+ // betaI = arcsin( ( CD * sin(gammaII)) / BD )
+ // deltaI = 180 - alphaI - gammaI
+ // deltaII = 180 - deltaI
+ // epsilI = 180 - deltaII - gammaII
+ // epsilII = 180 - epsilI
+ // gesucht = 180 - epsilII - betaI
+ // --> courseCorrection = - 180 - arcsin( (CD * sin(gammaI)) / AB ) - gammaI - gammaII - arcsin( CD * (sin(gammaII)) / BD )
+
+ if( (lastloc!= null) && loc.isValid())
+ {
+
+ float gammaI = lastloc.azimuthTo(loc.getQualifiedCoordinates());
+ float gammaII = loc.getQualifiedCoordinates().azimuthTo(dest.getQualifiedCoordinates());
+ float AB = lastloc.distance(dest.getQualifiedCoordinates());
+ float BD = loc.getQualifiedCoordinates().distance(dest.getQualifiedCoordinates());
+ float CD = loc.getQualifiedCoordinates().distance(north);
+
+ double actC = ( - 180 - arcsin( (CD * java.lang.Math.sin(gammaI)) / AB ) - gammaI - gammaII - arcsin( CD * (java.lang.Math.sin(gammaII)) / BD ) ) % 360;
+ int actCourse = (int) actC;
+ if (actCourse < 0)
+ actCourse = actCourse+360;
+
+ // set GUI
+ gui.get_stringItemActNorth().setText(Coordinates.convert(loc.getQualifiedCoordinates().getLatitude(), 2));
+ gui.get_stringItemActEast().setText(Coordinates.convert(loc.getQualifiedCoordinates().getLongitude(), 2));
+ gui.get_stringItemActHeight().setText(String.valueOf(loc.getQualifiedCoordinates().getAltitude()));
+ if ( (actCourse != 112) )
+ gui.get_stringItemCourse().setText(String.valueOf(actCourse));
+ gui.get_stringItemDistance().setText(String.valueOf(BD));
+
+ }
+
+ if ( loc.isValid() )
+ lastloc = loc.getQualifiedCoordinates();
+ }
+
+}
diff --git a/trunk/build/preprocessed/nav/processState.java b/trunk/build/preprocessed/nav/processState.java
new file mode 100755
index 0000000..9c7d756
--- /dev/null
+++ b/trunk/build/preprocessed/nav/processState.java
@@ -0,0 +1,50 @@
+/*
+ * processState.java
+ *
+ * Created on July 14, 2007, 5:02 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package nav;
+
+import gui.*;
+import java.lang.Thread;
+import javax.microedition.location.*;
+
+/**
+ *
+ * @author manut
+ */
+public class processState extends Thread{
+
+ private geoc gui;
+ private int state;
+
+ /** Creates a new instance of processState */
+ public processState(geoc _gui) {
+ gui = _gui;
+ }
+
+ public void set(int _state){
+ state = _state;
+ }
+
+ public void run(){
+ switch(state){
+ case LocationProvider.AVAILABLE:
+ gui.get_stringItemHead2().setLabel("GPS available");
+ break;
+ case LocationProvider.OUT_OF_SERVICE:
+ gui.get_stringItemHead2().setLabel("no GPS!");
+ break;
+ case LocationProvider.TEMPORARILY_UNAVAILABLE:
+ gui.get_stringItemHead2().setLabel("weak GPS signal");
+ break;
+ default:
+ gui.get_stringItemHead2().setLabel("Location API Error");
+ }
+ }
+
+}
diff --git a/trunk/build/preverified/gui/geoc.class b/trunk/build/preverified/gui/geoc.class
new file mode 100755
index 0000000..7b2e137
--- /dev/null
+++ b/trunk/build/preverified/gui/geoc.class
Binary files differ
diff --git a/trunk/build/preverified/nav/locListener.class b/trunk/build/preverified/nav/locListener.class
new file mode 100755
index 0000000..f09faa3
--- /dev/null
+++ b/trunk/build/preverified/nav/locListener.class
Binary files differ
diff --git a/trunk/build/preverified/nav/navigate.class b/trunk/build/preverified/nav/navigate.class
new file mode 100755
index 0000000..badcd48
--- /dev/null
+++ b/trunk/build/preverified/nav/navigate.class
Binary files differ
diff --git a/trunk/build/preverified/nav/processLoc.class b/trunk/build/preverified/nav/processLoc.class
new file mode 100755
index 0000000..ced561b
--- /dev/null
+++ b/trunk/build/preverified/nav/processLoc.class
Binary files differ
diff --git a/trunk/build/preverified/nav/processState.class b/trunk/build/preverified/nav/processState.class
new file mode 100755
index 0000000..f9f222d
--- /dev/null
+++ b/trunk/build/preverified/nav/processState.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/AbstractInfoScreen.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/AbstractInfoScreen.class
new file mode 100755
index 0000000..bf256b3
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/AbstractInfoScreen.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/SimpleTableModel.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/SimpleTableModel.class
new file mode 100755
index 0000000..bb39f3c
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/SimpleTableModel.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen$1.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen$1.class
new file mode 100755
index 0000000..3f52272
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen$1.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class
new file mode 100755
index 0000000..1aa4582
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen.class
new file mode 100755
index 0000000..930d603
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/SplashScreen.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/TableItem.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/TableItem.class
new file mode 100755
index 0000000..b4a0d58
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/TableItem.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/TableModel.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/TableModel.class
new file mode 100755
index 0000000..c06fca0
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/TableModel.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/TableModelListener.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/TableModelListener.class
new file mode 100755
index 0000000..8d0fdf2
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/TableModelListener.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$1.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$1.class
new file mode 100755
index 0000000..e79f14d
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$1.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class
new file mode 100755
index 0000000..e34fd5d
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class
new file mode 100755
index 0000000..b86b82e
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen.class
new file mode 100755
index 0000000..cf6d48a
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/WaitScreen.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/laf/ColorSchema.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/laf/ColorSchema.class
new file mode 100755
index 0000000..0d7f3f5
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/laf/ColorSchema.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class
new file mode 100755
index 0000000..a702d96
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/lcdui/laf/UserColorSchema.class b/trunk/build/preverified/org/netbeans/microedition/lcdui/laf/UserColorSchema.class
new file mode 100755
index 0000000..cd1ac73
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/lcdui/laf/UserColorSchema.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/util/CancellableTask.class b/trunk/build/preverified/org/netbeans/microedition/util/CancellableTask.class
new file mode 100755
index 0000000..97d6936
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/util/CancellableTask.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/util/Executable.class b/trunk/build/preverified/org/netbeans/microedition/util/Executable.class
new file mode 100755
index 0000000..83cb718
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/util/Executable.class
Binary files differ
diff --git a/trunk/build/preverified/org/netbeans/microedition/util/SimpleCancellableTask.class b/trunk/build/preverified/org/netbeans/microedition/util/SimpleCancellableTask.class
new file mode 100755
index 0000000..0ab8538
--- /dev/null
+++ b/trunk/build/preverified/org/netbeans/microedition/util/SimpleCancellableTask.class
Binary files differ
diff --git a/trunk/dist/geoc.jad b/trunk/dist/geoc.jad
new file mode 100755
index 0000000..aff48af
--- /dev/null
+++ b/trunk/dist/geoc.jad
@@ -0,0 +1,8 @@
+MIDlet-1: geoc,,gui.geoc
+MIDlet-Jar-Size: 33448
+MIDlet-Jar-URL: geoc.jar
+MIDlet-Name: geoc
+MIDlet-Vendor: manut.de
+MIDlet-Version: 0.1
+MicroEdition-Configuration: CLDC-1.1
+MicroEdition-Profile: MIDP-2.0
diff --git a/trunk/dist/geoc.jar b/trunk/dist/geoc.jar
new file mode 100755
index 0000000..987c335
--- /dev/null
+++ b/trunk/dist/geoc.jar
Binary files differ
diff --git a/trunk/nbproject/build-impl.xml b/trunk/nbproject/build-impl.xml
new file mode 100755
index 0000000..a2a8c8a
--- /dev/null
+++ b/trunk/nbproject/build-impl.xml
@@ -0,0 +1,413 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
+<project name="-impl" default="jar" basedir=".." xmlns:projdeps2="http://www.netbeans.org/ns/ant-project-references/2">
+ <target name="pre-init"/>
+ <target name="pre-load-properties" depends="pre-init">
+ <property file="nbproject/private/private.properties"/>
+ <property name="deployment.number" value="0.0.1"/>
+ <property name="deployment.counter" value="000002"/>
+ <property name="user.properties.file" location="${netbeans.user}/build.properties"/>
+ <available property="user.properties.file.exists" file="${user.properties.file}"/>
+ </target>
+ <target name="exists.config.active" depends="pre-load-properties" unless="config.active">
+ <echo level="warning" message="Active configuration (config.active property) is not set - using default."/>
+ <property value="" name="config.active"/>
+ </target>
+ <target name="exists.netbeans.user" depends="pre-load-properties" unless="netbeans.user">
+ <echo level="warning" message="NetBeans IDE user directory (netbeans.user property) is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: ant-ext library home, ...). You could also open this project in the NetBeans IDE - in this case this property would be set automatically."/>
+ </target>
+ <target name="exists.user.properties.file" depends="pre-load-properties" unless="user.properties.file.exists">
+ <echo level="warning" message="User properties file (user.properties.file) property is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: libraries, platforms, ...)."/>
+ </target>
+ <target name="load-properties" depends="pre-load-properties,exists.config.active,exists.netbeans.user,exists.user.properties.file">
+ <loadproperties srcfile="nbproject/project.properties">
+ <filterchain>
+ <containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
+ <concatfilter prepend="nbproject/project.properties"/>
+ <containsregex pattern="^platform.active=|^deployment.method="/>
+ </filterchain>
+ </loadproperties>
+ <loadproperties srcfile="${user.properties.file}">
+ <filterchain>
+ <replaceregex pattern="^platforms\.${platform.active}\." replace="platform."/>
+ <replaceregex pattern="^deployment\.${deployment.method}\.scriptfile=" replace="deployment.scriptfile="/>
+ </filterchain>
+ </loadproperties>
+ <loadproperties srcfile="nbproject/project.properties">
+ <filterchain>
+ <containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
+ <concatfilter prepend="nbproject/project.properties"/>
+ </filterchain>
+ </loadproperties>
+ </target>
+ <target name="exists.platform.active" depends="load-properties" unless="platform.active">
+ <echo level="warning" message="Active platform (platform.active property) in not set. If you set this and user.properties.file property, many properties required by the project will be automatically evaluated (e.g.: platform home, platform classpath, ...)."/>
+ </target>
+ <target name="exists.platform.configuration" unless="platform.configuration" depends="load-properties">
+ <echo level="warning" message="Platform configuration (platform.configuration) is not set. Using default (CLDC-1.0) configuration."/>
+ <property name="platform.configuration" value="CLDC-1.0"/>
+ </target>
+ <target name="exists.platform.profile" unless="platform.profile" depends="load-properties">
+ <echo level="warning" message="Platform profile (platform.profile) is not set. Using default (MIDP-1.0) profile."/>
+ <property name="platform.profile" value="MIDP-1.0"/>
+ </target>
+ <target name="init" depends="pre-init,load-properties,exists.platform.active,exists.platform.configuration,exists.platform.profile">
+ <fail unless="libs.j2me_ant_ext.classpath">Classpath to J2ME Ant extension library (libs.j2me_ant_ext.classpath property) is not set. For example: location of mobility/modules/org-netbeans-modules-kjava-antext.jar file in the IDE installation directory.</fail>
+ <fail unless="platform.home">Platform home (platform.home property) is not set. Value of this property should be ${platform.active.description} emulator home directory location.</fail>
+ <fail unless="platform.bootclasspath">Platform boot classpath (platform.bootclasspath property) is not set. Value of this property should be ${platform.active.description} emulator boot classpath containing all J2ME classes provided by emulator.</fail>
+ <fail unless="src.dir">Must set src.dir</fail>
+ <fail unless="build.dir">Must set build.dir</fail>
+ <fail unless="build.classes.dir">Must set build.classes.dir</fail>
+ <fail unless="preprocessed.dir">Must set preprocessed.dir</fail>
+ <fail unless="preverify.classes.dir">Must set preverify.classes.dir</fail>
+ <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
+ <fail unless="dist.dir">Must set dist.dir</fail>
+ <fail unless="dist.jar">Must set dist.jar</fail>
+ <fail unless="dist.jad">Must set dist.jad</fail>
+ <fail unless="obfuscator.srcjar">Must set obfuscator.srcjar</fail>
+ <fail unless="obfuscator.destjar">Must set obfuscator.destjar</fail>
+ <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
+ <property name="abilities" value=""/>
+ <property name="debug.level" value="debug"/>
+ <property name="obfuscator.classpath" value=""/>
+ <property name="kjava.configuration" value=""/>
+ <property name="platform.type" value="UEI-1.0"/>
+ <property name="platform.device" value=""/>
+ <property name="obfuscation.level" value="0"/>
+ <property name="sign.enabled" value="false"/>
+ <property name="dist.jad.url" value="file://"/>
+ <property name="javac.source" value="1.3"/>
+ <property name="javac.target" value="1.1"/>
+ <property name="javac.encoding" value="${file.encoding}"/>
+ <property name="run.cmd.options" value=""/>
+ <condition property="no.deps">
+ <istrue value="${no.dependencies}"/>
+ </condition>
+ <condition property="no.javadoc.preview">
+ <isfalse value="${javadoc.preview}"/>
+ </condition>
+ <condition property="filter.excludes.evaluated" value="${filter.excludes},**/*Test.java,**/test,**/test/**">
+ <istrue value="${filter.exclude.tests}"/>
+ </condition>
+ <property name="filter.excludes.evaluated" value="${filter.excludes}"/>
+ <condition property="evaluated.run.security.domain" value="">
+ <isfalse value="${run.use.security.domain}"/>
+ </condition>
+ <condition property="deployment.do.override.jarurl" value="">
+ <istrue value="${deployment.override.jarurl}"/>
+ </condition>
+ <property name="evaluated.run.security.domain" value="${run.security.domain}"/>
+ <condition property="config.active.name" value="DefaultConfiguration">
+ <length string="${config.active}" trim="true" length="0"/>
+ </condition>
+ <property name="config.active.name" value="${config.active}"/>
+ <taskdef resource="org/netbeans/modules/kjava/antext/defs.properties">
+ <classpath>
+ <pathelement path="${libs.j2me_ant_ext.classpath}"/>
+ </classpath>
+ </taskdef>
+ <uptodate property="no.clean.before.build" targetfile="${build.dir}/.timestamp">
+ <srcfiles dir="nbproject">
+ <include name="project.properties"/>
+ <include name="build-impl.xml"/>
+ </srcfiles>
+ </uptodate>
+ <condition property="skip.deployment">
+ <equals arg1="${deployment.method}" arg2="NONE" casesensitive="false" trim="true"/>
+ </condition>
+ <condition property="skip-sign-keystore-password-input">
+ <or>
+ <isfalse value="${sign.enabled}"/>
+ <and>
+ <isset property="sign.keystore"/>
+ <isset property="sign.keystore.password"/>
+ <not>
+ <equals arg1="${sign.keystore}" arg2="" trim="true"/>
+ </not>
+ <not>
+ <equals arg1="${sign.keystore.password}" arg2="" trim="true"/>
+ </not>
+ </and>
+ </or>
+ </condition>
+ <condition property="skip-sign-alias-password-input">
+ <or>
+ <isfalse value="${sign.enabled}"/>
+ <and>
+ <isset property="sign.keystore"/>
+ <isset property="sign.alias"/>
+ <isset property="sign.alias.password"/>
+ <not>
+ <equals arg1="${sign.keystore}" arg2="" trim="true"/>
+ </not>
+ <not>
+ <equals arg1="${sign.alias}" arg2="" trim="true"/>
+ </not>
+ <not>
+ <equals arg1="${sign.alias.password}" arg2="" trim="true"/>
+ </not>
+ </and>
+ </or>
+ </condition>
+ <antcall target="post-init" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="post-init"/>
+ <target name="deps-jar" depends="init" unless="no.deps"/>
+ <target name="conditional-clean" depends="init" unless="no.clean.before.build" description="Clean project in case its meta information has changed.">
+ <antcall inheritrefs="true" inheritall="true" target="do-clean"/>
+ </target>
+ <target name="pre-preprocess"/>
+ <target name="preprocess" depends="init,pre-preprocess,deps-jar,conditional-clean" description="Preprocess project sources.">
+ <mkdir dir="${preprocessed.dir}"/>
+ <echo message="ignore me" file="${build.dir}/.timestamp"/>
+ <nb-prep destdir="${preprocessed.dir}" preprocessfor="${config.active.name},${abilities},DebugLevel=${debug.level}" encoding="${javac.encoding}">
+ <fileset dir="${src.dir}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated}"/>
+ </nb-prep>
+ <copy todir="${preprocessed.dir}">
+ <fileset dir="${src.dir}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
+ </copy>
+ <antcall target="post-preprocess" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="post-preprocess"/>
+ <target name="extract-libs" depends="init,deps-jar,conditional-clean" description="Extracts all bundled libraries.">
+ <mkdir dir="${build.classes.dir}"/>
+ <nb-extract dir="${build.classes.dir}" excludeManifest="true">
+ <classpath>
+ <path path="${libs.classpath}"/>
+ </classpath>
+ </nb-extract>
+ </target>
+ <target name="pre-compile"/>
+ <target name="compile" depends="init,preprocess,extract-libs,pre-compile" description="Compile project classes.">
+ <mkdir dir="${build.classes.dir}"/>
+ <javac includeantruntime="false" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" debug="${javac.debug}" destdir="${build.classes.dir}" srcdir="${preprocessed.dir}" bootclasspath="${platform.bootclasspath}" encoding="${javac.encoding}">
+ <classpath>
+ <path path="${libs.classpath}"/>
+ </classpath>
+ </javac>
+ <copy todir="${build.classes.dir}">
+ <fileset dir="${preprocessed.dir}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
+ </copy>
+ <antcall target="post-compile" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="post-compile"/>
+ <target name="pre-compile-single"/>
+ <target name="compile-single" depends="init,preprocess,extract-libs,pre-compile-single" description="Compile selected project classes.">
+ <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
+ <mkdir dir="${build.classes.dir}"/>
+ <javac includeantruntime="false" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" debug="${javac.debug}" srcdir="${preprocessed.dir}" destdir="${build.classes.dir}" bootclasspath="${platform.bootclasspath}" includes="${javac.includes}" encoding="${javac.encoding}">
+ <classpath>
+ <path path="${libs.classpath}"/>
+ </classpath>
+ </javac>
+ <antcall target="post-compile-single" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="post-compile-single"/>
+ <target name="create-jad" depends="init">
+ <mkdir dir="${build.dir}"/>
+ <dirname file="${dist.dir}/${dist.jad}" property="dist.jad.dir"/>
+ <mkdir dir="${dist.jad.dir}"/>
+ <condition property="evaluated.manifest.apipermissions" value="${manifest.apipermissions}">
+ <not>
+ <equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
+ </not>
+ </condition>
+ <condition property="evaluated.manifest.pushregistry" value="${manifest.pushregistry}">
+ <not>
+ <equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
+ </not>
+ </condition>
+ <condition property="contains.manifest.configuration">
+ <contains substring="MicroEdition-Configuration: " string="${manifest.others}"/>
+ </condition>
+ <condition property="contains.manifest.profile">
+ <contains substring="MicroEdition-Profile: " string="${manifest.others}"/>
+ </condition>
+ <property value="" name="evaluated.manifest.apipermissions"/>
+ <property value="" name="evaluated.manifest.pushregistry"/>
+ <property name="manifest.jad" value=""/>
+ <property name="manifest.manifest" value=""/>
+ <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.jad}</nb-output>
+ <nb-output file="${build.dir}/manifest.mf" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.manifest}</nb-output>
+ <antcall target="add-configuration" inheritall="true" inheritrefs="true"/>
+ <antcall target="add-profile" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="add-configuration" unless="contains.manifest.configuration">
+ <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
+</nb-output>
+ <nb-output file="${build.dir}/manifest.mf" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
+</nb-output>
+ </target>
+ <target name="add-profile" unless="contains.manifest.profile">
+ <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
+</nb-output>
+ <nb-output file="${build.dir}/manifest.mf" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
+</nb-output>
+ </target>
+ <target name="pre-obfuscate"/>
+ <target name="obfuscate-check" depends="init,compile" description="Up-to-date check before obfuscation.">
+ <uptodate property="no.obfusc" targetfile="${obfuscator.destjar}">
+ <srcfiles dir="${build.classes.dir}"/>
+ </uptodate>
+ </target>
+ <target name="obfuscate" depends="init,compile,obfuscate-check,pre-obfuscate" description="Obfuscate project classes." unless="no.obfusc">
+ <dirname file="${obfuscator.srcjar}" property="obfuscator.srcjar.dir"/>
+ <dirname file="${obfuscator.destjar}" property="obfuscator.destjar.dir"/>
+ <mkdir dir="${obfuscator.srcjar.dir}"/>
+ <mkdir dir="${obfuscator.destjar.dir}"/>
+ <jar jarfile="${obfuscator.srcjar}" basedir="${build.classes.dir}"/>
+ <property name="obfuscation.custom" value=""/>
+ <nb-obfuscate srcjar="${obfuscator.srcjar}" destjar="${obfuscator.destjar}" obfuscatorclasspath="${obfuscator.classpath}" classpath="${platform.bootclasspath}" obfuscationLevel="${obfuscation.level}" extraScript="${obfuscation.custom}"/>
+ <mkdir dir="${obfuscated.classes.dir}"/>
+ <unjar src="${obfuscator.destjar}" dest="${obfuscated.classes.dir}"/>
+ <antcall target="post-obfuscate" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="post-obfuscate"/>
+ <target name="pre-preverify"/>
+ <target name="preverify" depends="init,compile,obfuscate,pre-preverify" description="Preverify project classes.">
+ <mkdir dir="${preverify.classes.dir}"/>
+ <nb-preverify srcdir="${obfuscated.classes.dir}" destdir="${preverify.classes.dir}" classpath="${platform.bootclasspath}" configuration="${platform.configuration}" platformhome="${platform.home}" platformtype="${platform.type}" commandline="${platform.preverifycommandline}"/>
+ <antcall target="post-preverify" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="post-preverify"/>
+ <target name="set-keystore-password" depends="init" if="netbeans.home" unless="skip-sign-keystore-password-input">
+ <nb-enter-password keystore="${sign.keystore}" passwordproperty="sign.keystore.password"/>
+ </target>
+ <target name="set-alias-password" depends="init" if="netbeans.home" unless="skip-sign-alias-password-input">
+ <nb-enter-password keystore="${sign.keystore}" keyalias="${sign.alias}" passwordproperty="sign.alias.password"/>
+ </target>
+ <target name="pre-jar"/>
+ <target name="jar" depends="init,preverify,create-jad,set-keystore-password,set-alias-password,pre-jar" description="Build jar and application descriptor.">
+ <dirname file="${dist.dir}/${dist.jar}" property="dist.jar.dir"/>
+ <mkdir dir="${dist.jar.dir}"/>
+ <jar compress="${jar.compress}" jarfile="${dist.dir}/${dist.jar}" manifest="${build.dir}/manifest.mf" manifestencoding="UTF-8">
+ <fileset dir="${preverify.classes.dir}"/>
+ <fileset dir="${obfuscated.classes.dir}">
+ <exclude name="**/*.class"/>
+ </fileset>
+ </jar>
+ <nb-jad jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" url="${dist.jar}" sign="${sign.enabled}" keystore="${sign.keystore}" keystorepassword="${sign.keystore.password}" alias="${sign.alias}" aliaspassword="${sign.alias.password}" encoding="${javac.encoding}"/>
+ <antcall target="post-jar" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="post-jar"/>
+ <target name="rebuild" depends="init,clean,jar" description="Rebuild the application."/>
+ <target name="run" depends="init,jar" description="Run MIDlet suite.">
+ <nb-run jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" jadurl="${dist.jad.url}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" execmethod="${run.method}" securitydomain="${evaluated.run.security.domain}" commandline="${platform.runcommandline}" classpath="${platform.bootclasspath}:${dist.dir}/${dist.jar}" cmdoptions="${run.cmd.options}"/>
+ </target>
+ <target name="run-no-build" depends="init" description="Quick Run already built MIDlet suite.">
+ <nb-run jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" jadurl="${dist.jad.url}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" execmethod="${run.method}" securitydomain="${evaluated.run.security.domain}" commandline="${platform.runcommandline}" classpath="${platform.bootclasspath}:${dist.dir}/${dist.jar}" cmdoptions="${run.cmd.options}"/>
+ </target>
+ <target name="debug" description="Debug project." depends="init,clean,jar">
+ <delete file="${build.dir}/.timestamp"/>
+ <parallel>
+ <nb-run debug="true" debugsuspend="true" debugserver="true" debuggeraddressproperty="jpda.port" platformtype="${platform.type}" platformhome="${platform.home}" device="${platform.device}" jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" execmethod="${run.method}" securitydomain="${evaluated.run.security.domain}" commandline="${platform.debugcommandline}" classpath="${platform.bootclasspath}:${dist.dir}/${dist.jar}" cmdoptions="${run.cmd.options}"/>
+ <sequential>
+ <sleep seconds="5"/>
+ <antcall target="nbdebug"/>
+ </sequential>
+ </parallel>
+ </target>
+ <target name="nbdebug" description="Start NetBeans debugger" if="netbeans.home">
+ <nb-kjava-debug address="${jpda.port}" name="${app.codename}" timeout="30000" period="2000">
+ <bootclasspath>
+ <path path="${platform.bootclasspath}"/>
+ </bootclasspath>
+ <classpath>
+ <path path="${dist.dir}/${dist.jar}"/>
+ </classpath>
+ <sourcepath>
+ <path path="${src.dir}"/>
+ <path path="${libs.src.path}"/>
+ </sourcepath>
+ </nb-kjava-debug>
+ </target>
+ <target name="javadoc" depends="init,preprocess">
+ <mkdir dir="${dist.javadoc.dir}"/>
+ <javadoc source="${javac.source}" destdir="${dist.javadoc.dir}" bootclasspath="${platform.bootclasspath}" notree="${javadoc.notree}" use="${javadoc.use}" nonavbar="${javadoc.nonavbar}" noindex="${javadoc.noindex}" splitindex="${javadoc.splitindex}" author="${javadoc.author}" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}" private="${javadoc.private}">
+ <classpath>
+ <path path="${libs.classpath}"/>
+ </classpath>
+ <sourcepath>
+ <pathelement location="${preprocessed.dir}"/>
+ </sourcepath>
+ <fileset dir="${preprocessed.dir}"/>
+ </javadoc>
+ <antcall target="browse-javadoc"/>
+ </target>
+ <target name="browse-javadoc" if="netbeans.home" unless="no.javadoc.preview">
+ <nbbrowse file="${dist.javadoc.dir}/index.html"/>
+ </target>
+ <target name="pre-clean"/>
+ <target name="clean" depends="init,conditional-clean" if="no.clean.before.build" description="Clean build products.">
+ <antcall target="do-clean" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="do-clean" depends="pre-clean">
+ <delete dir="${preprocessed.dir}"/>
+ <delete dir="${build.classes.dir}"/>
+ <delete file="${obfuscator.srcjar}"/>
+ <delete file="${obfuscator.destjar}"/>
+ <delete dir="${obfuscated.classes.dir}"/>
+ <delete dir="${preverify.classes.dir}"/>
+ <delete file="${build.dir}/.timestamp"/>
+ <delete file="${build.dir}/manifest.mf"/>
+ <delete file="${dist.dir}/${dist.jar}"/>
+ <delete file="${dist.dir}/${dist.jad}"/>
+ <delete dir="${dist.javadoc.dir}"/>
+ <antcall target="post-clean" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="post-clean"/>
+ <target name="pre-deploy"/>
+ <target name="override-jad" depends="init,jar,pre-deploy" if="deployment.do.override.jarurl">
+ <property name="deployment.jarurl" value="${dist.jar}"/>
+ <nb-jad jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" url="${deployment.jarurl}" sign="${sign.enabled}" keystore="${sign.keystore}" keystorepassword="${sign.keystore.password}" alias="${sign.alias}" aliaspassword="${sign.alias.password}" encoding="${javac.encoding}"/>
+ </target>
+ <target name="deploy" depends="init,jar,override-jad,pre-deploy" if="deployment.method" unless="skip.deployment">
+ <fail unless="deployment.scriptfile">Property deployment.${deployment.method}.scriptfile not set. The property should point to an Ant script providing ${deployment.method} deployment.</fail>
+ <ant antfile="${deployment.scriptfile}" inheritall="true" inheritrefs="true">
+ <property name="deployment.jad" location="${dist.dir}/${dist.jad}"/>
+ <property name="deployment.jar" location="${dist.dir}/${dist.jar}"/>
+ </ant>
+ <propertyfile file="nbproject/private/private.properties">
+ <entry key="deployment.counter" type="int" operation="+" default="2" pattern="000000"/>
+ <entry key="deployment.number" value="${deployment.counter}"/>
+ </propertyfile>
+ <property name="deployment.number.pattern" value="\2\3.\5\6.\8\9"/>
+ <replaceregexp byline="true" file="nbproject/private/private.properties" match="^deployment.number=[0-9]*(0|([1-9]))([0-9])(0|([1-9]))([0-9])(0|([1-9]))([0-9])$" replace="deployment.number=${deployment.number.pattern}"/>
+ <antcall target="post-deploy" inheritall="true" inheritrefs="true"/>
+ </target>
+ <target name="post-deploy"/>
+ <target name="for-all-configs">
+ <antcall target="${target.to.call}" inheritall="false" inheritrefs="false">
+ <param name="config.active" value=""/>
+ </antcall>
+ </target>
+ <target name="jar-all">
+ <antcall target="for-all-configs">
+ <param name="target.to.call" value="jar"/>
+ </antcall>
+ </target>
+ <target name="javadoc-all">
+ <antcall target="for-all-configs">
+ <param name="target.to.call" value="javadoc"/>
+ </antcall>
+ </target>
+ <target name="deploy-all">
+ <antcall target="for-all-configs">
+ <param name="target.to.call" value="deploy"/>
+ </antcall>
+ </target>
+ <target name="rebuild-all">
+ <antcall target="for-all-configs">
+ <param name="target.to.call" value="rebuild"/>
+ </antcall>
+ </target>
+ <target name="clean-all" depends="load-properties">
+ <fail unless="build.root.dir">Property build.root.dir is not set. By default its value should be \"build\".</fail>
+ <fail unless="dist.root.dir">Property dist.root.dir is not set. By default its value should be \"dist\".</fail>
+ <delete dir="${build.root.dir}"/>
+ <delete dir="${dist.root.dir}"/>
+ <antcall target="for-all-configs">
+ <param name="target.to.call" value="clean"/>
+ </antcall>
+ </target>
+</project>
diff --git a/trunk/nbproject/genfiles.properties b/trunk/nbproject/genfiles.properties
new file mode 100755
index 0000000..2c80b6b
--- /dev/null
+++ b/trunk/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=287f2d3f
+build.xml.script.CRC32=7593e195
+build.xml.stylesheet.CRC32=790018fc
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=287f2d3f
+nbproject/build-impl.xml.script.CRC32=036a5e16
+nbproject/build-impl.xml.stylesheet.CRC32=a16fb29f
diff --git a/trunk/nbproject/private/private.properties b/trunk/nbproject/private/private.properties
new file mode 100755
index 0000000..5b481a1
--- /dev/null
+++ b/trunk/nbproject/private/private.properties
@@ -0,0 +1,3 @@
+config.active=
+javadoc.preview=true
+netbeans.user=/root/.netbeans/5.5.1
diff --git a/trunk/nbproject/project.properties b/trunk/nbproject/project.properties
new file mode 100755
index 0000000..76ae6fe
--- /dev/null
+++ b/trunk/nbproject/project.properties
@@ -0,0 +1,67 @@
+abilities=JSR234=1.0,WMA=2.0,SATSACRYPTO=1.0,OBEX=1.0,MMAPI=1.1,JSR211=1.0,JSR172=1.0,ScreenWidth=240,JSR239=1.0,ScreenColorDepth=8,JSR177=1.0,ColorScreen,JSR238=1.0,JSR179=1.0.1,JSR226=1.0,JSR75=1.0,ScreenHeight=320,CLDC=1.1,J2MEWS=1.0,J2MEXMLRPC=1.0,SATSAAPDU=1.0,JSR229=1.1.0,JSR180=1.0.1,SATSAJCRMI=1.0,JSR184=1.1,SATSAPKI=1.0,MIDP=2.1,JSR82=1.1,
+build.classes.dir=${build.dir}/compiled
+build.classes.excludes=**/*.java,**/*.form,**/*.class,**/.nbintdb,**/*.mvd,**/*.wsclient
+build.dir=build/${config.active}
+build.root.dir=build
+debug.level=debug
+deployment.copy.target=deploy
+deployment.jarurl=${dist.jar}
+deployment.method=NONE
+deployment.override.jarurl=false
+dist.dir=dist/${config.active}
+dist.jad=geoc.jad
+dist.jar=geoc.jar
+dist.javadoc.dir=${dist.dir}/doc
+dist.root.dir=dist
+filter.exclude.tests=false
+filter.excludes=
+filter.use.standard=true
+jar.compress=true
+javac.debug=true
+javac.deprecation=false
+javac.encoding=ANSI_X3.4-1968
+javac.optimize=false
+javac.source=1.3
+javac.target=1.1
+javadoc.author=false
+javadoc.encoding=
+javadoc.noindex=false
+javadoc.nonavbar=false
+javadoc.notree=false
+javadoc.private=false
+javadoc.splitindex=true
+javadoc.use=true
+javadoc.version=false
+javadoc.windowtitle=
+libs.classpath=${libs.NetBeans MIDP Components.classpath}
+manifest.apipermissions=
+manifest.jad=
+manifest.manifest=
+manifest.midlets=MIDlet-1: geoc,,gui.geoc\n
+manifest.others=MIDlet-Vendor: manut.de\nMIDlet-Version: 0.1\nMIDlet-Name: geoc\n
+manifest.pushregistry=
+name=geoc
+no.dependencies=false
+obfuscated.classes.dir=${build.dir}/obfuscated
+obfuscation.custom=
+obfuscation.level=0
+obfuscator.destjar=${build.dir}/obfuscated.jar
+obfuscator.srcjar=${build.dir}/before-obfuscation.jar
+platform.active=Sun_Java_TM__Wireless_Toolkit_2_5_1_for_CLDC
+platform.active.description=Sun Java(TM) Wireless Toolkit 2.5.1 for CLDC
+platform.apis=JSR234-1.0,SATSA-APDU-1.0,JSR211-1.0,JSR75-1.0,J2ME-WS-1.0,JSR172-1.0,J2ME-XMLRPC-1.0,JSR82-1.1,SATSA-JCRMI-1.0,SATSA-CRYPTO-1.0,JSR239-1.0,JSR179-1.0.1,JSR184-1.1,JSR238-1.0,MMAPI-1.1,OBEX-1.0,JSR229-1.1.0,SATSA-PKI-1.0,JSR180-1.0.1,JSR226-1.0,JSR177-1.0,WMA-2.0
+platform.bootclasspath=${platform.home}/lib/wma20.jar:${platform.home}/lib/jsr082.jar:${platform.home}/lib/j2me-xmlrpc.jar:${platform.home}/lib/satsa-jcrmi.jar:${platform.home}/lib/satsa-apdu.jar:${platform.home}/lib/satsa-crypto.jar:${platform.home}/lib/jsr179.jar:${platform.home}/lib/satsa-pki.jar:${platform.home}/lib/jsr75.jar:${platform.home}/lib/jsr180.jar:${platform.home}/lib/jsr238.jar:${platform.home}/lib/jsr229.jar:${platform.home}/lib/j2me-ws.jar:${platform.home}/lib/jsr234.jar:${platform.home}/lib/jsr226.jar:${platform.home}/lib/jsr184.jar:${platform.home}/lib/mmapi.jar:${platform.home}/lib/jsr239.jar:${platform.home}/lib/jsr211.jar:${platform.home}/lib/cldcapi11.jar:${platform.home}/lib/midpapi20.jar
+platform.configuration=CLDC-1.1
+platform.device=DefaultColorPhone
+platform.profile=MIDP-2.0
+preprocessed.dir=${build.dir}/preprocessed
+preverify.classes.dir=${build.dir}/preverified
+run.cmd.options=
+run.method=STANDARD
+run.security.domain=trusted
+run.use.security.domain=false
+sign.alias=
+sign.enabled=false
+sign.keystore=
+src.dir=src
+use.emptyapis=true
diff --git a/trunk/nbproject/project.xml b/trunk/nbproject/project.xml
new file mode 100755
index 0000000..ef09392
--- /dev/null
+++ b/trunk/nbproject/project.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+ <type>org.netbeans.modules.kjava.j2meproject</type>
+ <configuration>
+ <data xmlns="http://www.netbeans.org/ns/j2me-project">
+ <name>geoc</name>
+ <minimum-ant-version>1.6</minimum-ant-version>
+ </data>
+ </configuration>
+</project>
diff --git a/trunk/src/gui/geoc.java b/trunk/src/gui/geoc.java
new file mode 100755
index 0000000..ba54077
--- /dev/null
+++ b/trunk/src/gui/geoc.java
@@ -0,0 +1,469 @@
+/*
+ * geoc.java
+ *
+ * Created on July 14, 2007, 1:29 AM
+ */
+
+package gui;
+
+import javax.microedition.midlet.*;
+import javax.microedition.lcdui.*;
+import javax.microedition.location.LocationException;
+import java.util.Timer;
+import nav.*;
+
+/**
+ *
+ * @author manut
+ */
+public class geoc extends MIDlet implements CommandListener {
+
+ private navigate nav;
+
+ /**
+ * Creates a new instance of geoc
+ */
+ public geoc() {
+
+ try {
+
+ nav = new navigate(this);
+
+ } catch (LocationException e) {
+
+ this.get_stringItemHead1().setText("no GPS!/n");
+
+ }
+ }
+
+ private Form editForm;//GEN-BEGIN:MVDFields
+ private StringItem stringItemHead1;
+ private Command exitCommand;
+ private TextField textFieldEnterNorth;
+ private TextField textFieldEnterEast;
+ private Spacer spacer1;
+ private StringItem stringItemEnterDest;
+ private Command screenCommand1;
+ private Command exitCommand1;
+ private Command exitCommand2;
+ private Command itemCommand1;
+ private Command itemCommand2;
+ private Form navForm;
+ private Command exitCommand3;
+ private Command exitCommand4;
+ private Command screenCommand2;
+ private StringItem stringItemHead2;
+ private Spacer spacer2;
+ private StringItem stringItemCourse;
+ private StringItem stringItemDistance;
+ private StringItem stringItemActNorth;
+ private StringItem stringItemActEast;
+ private StringItem stringItemActHeight;
+ private StringItem stringItemDestination;
+ private StringItem stringItemDestNorth;
+ private StringItem stringItemDestEast;
+ private Command okCommand1;//GEN-END:MVDFields
+
+//GEN-LINE:MVDMethods
+
+ /** This method initializes UI of the application.//GEN-BEGIN:MVDInitBegin
+ */
+ private void initialize() {//GEN-END:MVDInitBegin
+ // Insert pre-init code here
+ navForm = new Form(null, new Item[] {//GEN-BEGIN:MVDInitInit
+ get_stringItemHead2(),
+ get_spacer2(),
+ get_stringItemCourse(),
+ get_stringItemDistance(),
+ get_stringItemActNorth(),
+ get_stringItemActEast(),
+ get_stringItemActHeight(),
+ get_stringItemDestination(),
+ get_stringItemDestNorth(),
+ get_stringItemDestEast()
+ });
+ navForm.addCommand(get_exitCommand4());
+ navForm.addCommand(get_screenCommand2());
+ navForm.setCommandListener(this);
+ editForm = new Form(null, new Item[] {
+ get_stringItemHead1(),
+ get_spacer1(),
+ get_stringItemEnterDest(),
+ get_textFieldEnterNorth(),
+ get_textFieldEnterEast()
+ });
+ editForm.addCommand(get_exitCommand());
+ editForm.addCommand(get_okCommand1());
+ editForm.setCommandListener(this);
+ getDisplay().setCurrent(editForm);//GEN-END:MVDInitInit
+ // Insert post-init code here
+ }//GEN-LINE:MVDInitEnd
+
+ /** Called by the system to indicate that a command has been invoked on a particular displayable.//GEN-BEGIN:MVDCABegin
+ * @param command the Command that ws invoked
+ * @param displayable the Displayable on which the command was invoked
+ */
+ public void commandAction(Command command, Displayable displayable) {//GEN-END:MVDCABegin
+ // Insert global pre-action code here
+ if (displayable == editForm) {//GEN-BEGIN:MVDCABody
+ if (command == exitCommand) {//GEN-END:MVDCABody
+ // Insert pre-action code here
+ exitMIDlet();//GEN-LINE:MVDCAAction3
+ // Insert post-action code here at gui.geoc.<init>(geoc.java:34)
+ } else if (command == okCommand1) {//GEN-LINE:MVDCACase3
+ // Insert pre-action code here
+ javax.microedition.lcdui.Alert al = new javax.microedition.lcdui.Alert("Error");
+ al.setString("Coord. parsing failed\nor no gps!");
+ try {
+ nav.setDestination(get_textFieldEnterNorth().getString(), get_textFieldEnterEast().getString());
+ } catch(Exception ae) {
+ getDisplay().setCurrent(al, navForm);
+ }
+ getDisplay().setCurrent(navForm);
+ /*
+getDisplay ().setCurrent (navForm);//GEN-LINE:MVDCAAction43
+ // Iert post-action code here
+ */
+ }//GEN-BEGIN:MVDCACase43
+ } else if (displayable == navForm) {
+ if (command == exitCommand4) {//GEN-END:MVDCACase43
+ // Insert pre-action code here
+ exitMIDlet();//GEN-LINE:MVDCAAction24
+ // Insert post-action code here
+ } else if (command == screenCommand2) {//GEN-LINE:MVDCACase24
+ // Insert pre-action code here
+ getDisplay().setCurrent(editForm);//GEN-LINE:MVDCAAction26
+ // Insert post-action code here
+ }//GEN-BEGIN:MVDCACase26
+ }//GEN-END:MVDCACase26
+ // Insert global post-action code here
+}//GEN-LINE:MVDCAEnd
+
+ /**
+ * This method should return an instance of the display.
+ */
+ public Display getDisplay() {//GEN-FIRST:MVDGetDisplay
+ return Display.getDisplay(this);
+ }//GEN-LAST:MVDGetDisplay
+
+ /**
+ * This method should exit the midlet.
+ */
+ public void exitMIDlet() {//GEN-FIRST:MVDExitMidlet
+ getDisplay().setCurrent(null);
+ destroyApp(true);
+ notifyDestroyed();
+ }//GEN-LAST:MVDExitMidlet
+
+
+ /** This method returns instance for stringItemHead1 component and should be called instead of accessing stringItemHead1 field directly.//GEN-BEGIN:MVDGetBegin4
+ * @return Instance for stringItemHead1 component
+ */
+ public StringItem get_stringItemHead1() {
+ if (stringItemHead1 == null) {//GEN-END:MVDGetBegin4
+ // Insert pre-init code here
+ stringItemHead1 = new StringItem("geoc", "v0.1");//GEN-LINE:MVDGetInit4
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd4
+ return stringItemHead1;
+ }//GEN-END:MVDGetEnd4
+
+ /** This method returns instance for exitCommand component and should be called instead of accessing exitCommand field directly.//GEN-BEGIN:MVDGetBegin5
+ * @return Instance for exitCommand component
+ */
+ public Command get_exitCommand() {
+ if (exitCommand == null) {//GEN-END:MVDGetBegin5
+ // Insert pre-init code here
+ exitCommand = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit5
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd5
+ return exitCommand;
+ }//GEN-END:MVDGetEnd5
+
+ /** This method returns instance for textFieldEnterNorth component and should be called instead of accessing textFieldEnterNorth field directly.//GEN-BEGIN:MVDGetBegin6
+ * @return Instance for textFieldEnterNorth component
+ */
+ public TextField get_textFieldEnterNorth() {
+ if (textFieldEnterNorth == null) {//GEN-END:MVDGetBegin6
+ // Insert pre-init code here
+ textFieldEnterNorth = new TextField("North", "47:42.466", 120, TextField.ANY);//GEN-LINE:MVDGetInit6
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd6
+ return textFieldEnterNorth;
+ }//GEN-END:MVDGetEnd6
+
+ /** This method returns instance for textFieldEnterEast component and should be called instead of accessing textFieldEnterEast field directly.//GEN-BEGIN:MVDGetBegin7
+ * @return Instance for textFieldEnterEast component
+ */
+ public TextField get_textFieldEnterEast() {
+ if (textFieldEnterEast == null) {//GEN-END:MVDGetBegin7
+ // Insert pre-init code here
+ textFieldEnterEast = new TextField("East", "9:36.620", 120, TextField.ANY);//GEN-LINE:MVDGetInit7
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd7
+ return textFieldEnterEast;
+ }//GEN-END:MVDGetEnd7
+
+ /** This method returns instance for spacer1 component and should be called instead of accessing spacer1 field directly.//GEN-BEGIN:MVDGetBegin9
+ * @return Instance for spacer1 component
+ */
+ public Spacer get_spacer1() {
+ if (spacer1 == null) {//GEN-END:MVDGetBegin9
+ // Insert pre-init code here
+ spacer1 = new Spacer(1000, 1);//GEN-LINE:MVDGetInit9
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd9
+ return spacer1;
+ }//GEN-END:MVDGetEnd9
+
+ /** This method returns instance for stringItemEnterDest component and should be called instead of accessing stringItemEnterDest field directly.//GEN-BEGIN:MVDGetBegin10
+ * @return Instance for stringItemEnterDest component
+ */
+ public StringItem get_stringItemEnterDest() {
+ if (stringItemEnterDest == null) {//GEN-END:MVDGetBegin10
+ // Insert pre-init code here
+ stringItemEnterDest = new StringItem("\nEnter Destination", "");//GEN-LINE:MVDGetInit10
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd10
+ return stringItemEnterDest;
+ }//GEN-END:MVDGetEnd10
+
+ /** This method returns instance for screenCommand1 component and should be called instead of accessing screenCommand1 field directly.//GEN-BEGIN:MVDGetBegin11
+ * @return Instance for screenCommand1 component
+ */
+ public Command get_screenCommand1() {
+ if (screenCommand1 == null) {//GEN-END:MVDGetBegin11
+ // Insert pre-init code here
+ screenCommand1 = new Command("go to", Command.SCREEN, 1);//GEN-LINE:MVDGetInit11
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd11
+ return screenCommand1;
+ }//GEN-END:MVDGetEnd11
+
+ /** This method returns instance for exitCommand1 component and should be called instead of accessing exitCommand1 field directly.//GEN-BEGIN:MVDGetBegin15
+ * @return Instance for exitCommand1 component
+ */
+ public Command get_exitCommand1() {
+ if (exitCommand1 == null) {//GEN-END:MVDGetBegin15
+ // Insert pre-init code here
+ exitCommand1 = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit15
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd15
+ return exitCommand1;
+ }//GEN-END:MVDGetEnd15
+
+ /** This method returns instance for exitCommand2 component and should be called instead of accessing exitCommand2 field directly.//GEN-BEGIN:MVDGetBegin16
+ * @return Instance for exitCommand2 component
+ */
+ public Command get_exitCommand2() {
+ if (exitCommand2 == null) {//GEN-END:MVDGetBegin16
+ // Insert pre-init code here
+ exitCommand2 = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit16
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd16
+ return exitCommand2;
+ }//GEN-END:MVDGetEnd16
+
+ /** This method returns instance for itemCommand1 component and should be called instead of accessing itemCommand1 field directly.//GEN-BEGIN:MVDGetBegin18
+ * @return Instance for itemCommand1 component
+ */
+ public Command get_itemCommand1() {
+ if (itemCommand1 == null) {//GEN-END:MVDGetBegin18
+ // Insert pre-init code here
+ itemCommand1 = new Command("Item", Command.ITEM, 1);//GEN-LINE:MVDGetInit18
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd18
+ return itemCommand1;
+ }//GEN-END:MVDGetEnd18
+
+ /** This method returns instance for itemCommand2 component and should be called instead of accessing itemCommand2 field directly.//GEN-BEGIN:MVDGetBegin19
+ * @return Instance for itemCommand2 component
+ */
+ public Command get_itemCommand2() {
+ if (itemCommand2 == null) {//GEN-END:MVDGetBegin19
+ // Insert pre-init code here
+ itemCommand2 = new Command("Edit Coord.", Command.ITEM, 1);//GEN-LINE:MVDGetInit19
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd19
+ return itemCommand2;
+ }//GEN-END:MVDGetEnd19
+
+ /** This method returns instance for exitCommand3 component and should be called instead of accessing exitCommand3 field directly.//GEN-BEGIN:MVDGetBegin22
+ * @return Instance for exitCommand3 component
+ */
+ public Command get_exitCommand3() {
+ if (exitCommand3 == null) {//GEN-END:MVDGetBegin22
+ // Insert pre-init code here
+ exitCommand3 = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit22
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd22
+ return exitCommand3;
+ }//GEN-END:MVDGetEnd22
+
+ /** This method returns instance for exitCommand4 component and should be called instead of accessing exitCommand4 field directly.//GEN-BEGIN:MVDGetBegin23
+ * @return Instance for exitCommand4 component
+ */
+ public Command get_exitCommand4() {
+ if (exitCommand4 == null) {//GEN-END:MVDGetBegin23
+ // Insert pre-init code here
+ exitCommand4 = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit23
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd23
+ return exitCommand4;
+ }//GEN-END:MVDGetEnd23
+
+ /** This method returns instance for screenCommand2 component and should be called instead of accessing screenCommand2 field directly.//GEN-BEGIN:MVDGetBegin25
+ * @return Instance for screenCommand2 component
+ */
+ public Command get_screenCommand2() {
+ if (screenCommand2 == null) {//GEN-END:MVDGetBegin25
+ // Insert pre-init code here
+ screenCommand2 = new Command("edit Coord.", Command.SCREEN, 1);//GEN-LINE:MVDGetInit25
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd25
+ return screenCommand2;
+ }//GEN-END:MVDGetEnd25
+
+ /** This method returns instance for stringItemHead2 component and should be called instead of accessing stringItemHead2 field directly.//GEN-BEGIN:MVDGetBegin27
+ * @return Instance for stringItemHead2 component
+ */
+ public StringItem get_stringItemHead2() {
+ if (stringItemHead2 == null) {//GEN-END:MVDGetBegin27
+ // Insert pre-init code here
+ stringItemHead2 = new StringItem("geoc", "v0.1");//GEN-LINE:MVDGetInit27
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd27
+ return stringItemHead2;
+ }//GEN-END:MVDGetEnd27
+
+ /** This method returns instance for spacer2 component and should be called instead of accessing spacer2 field directly.//GEN-BEGIN:MVDGetBegin28
+ * @return Instance for spacer2 component
+ */
+ public Spacer get_spacer2() {
+ if (spacer2 == null) {//GEN-END:MVDGetBegin28
+ // Insert pre-init code here
+ spacer2 = new Spacer(1000, 1);//GEN-LINE:MVDGetInit28
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd28
+ return spacer2;
+ }//GEN-END:MVDGetEnd28
+
+ /** This method returns instance for stringItemCourse component and should be called instead of accessing stringItemCourse field directly.//GEN-BEGIN:MVDGetBegin29
+ * @return Instance for stringItemCourse component
+ */
+ public StringItem get_stringItemCourse() {
+ if (stringItemCourse == null) {//GEN-END:MVDGetBegin29
+ // Insert pre-init code here
+ stringItemCourse = new StringItem("\nCourse", "0");//GEN-LINE:MVDGetInit29
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd29
+ return stringItemCourse;
+ }//GEN-END:MVDGetEnd29
+
+ /** This method returns instance for stringItemDistance component and should be called instead of accessing stringItemDistance field directly.//GEN-BEGIN:MVDGetBegin34
+ * @return Instance for stringItemDistance component
+ */
+ public StringItem get_stringItemDistance() {
+ if (stringItemDistance == null) {//GEN-END:MVDGetBegin34
+ // Insert pre-init code here
+ stringItemDistance = new StringItem("Distance", "0");//GEN-LINE:MVDGetInit34
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd34
+ return stringItemDistance;
+ }//GEN-END:MVDGetEnd34
+
+ /** This method returns instance for stringItemActNorth component and should be called instead of accessing stringItemActNorth field directly.//GEN-BEGIN:MVDGetBegin35
+ * @return Instance for stringItemActNorth component
+ */
+ public StringItem get_stringItemActNorth() {
+ if (stringItemActNorth == null) {//GEN-END:MVDGetBegin35
+ // Insert pre-init code here
+ stringItemActNorth = new StringItem("\nNorth", "0");//GEN-LINE:MVDGetInit35
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd35
+ return stringItemActNorth;
+ }//GEN-END:MVDGetEnd35
+
+ /** This method returns instance for stringItemActEast component and should be called instead of accessing stringItemActEast field directly.//GEN-BEGIN:MVDGetBegin36
+ * @return Instance for stringItemActEast component
+ */
+ public StringItem get_stringItemActEast() {
+ if (stringItemActEast == null) {//GEN-END:MVDGetBegin36
+ // Insert pre-init code here
+ stringItemActEast = new StringItem("East", "0");//GEN-LINE:MVDGetInit36
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd36
+ return stringItemActEast;
+ }//GEN-END:MVDGetEnd36
+
+ /** This method returns instance for stringItemActHeight component and should be called instead of accessing stringItemActHeight field directly.//GEN-BEGIN:MVDGetBegin37
+ * @return Instance for stringItemActHeight component
+ */
+ public StringItem get_stringItemActHeight() {
+ if (stringItemActHeight == null) {//GEN-END:MVDGetBegin37
+ // Insert pre-init code here
+ stringItemActHeight = new StringItem("Height", "0");//GEN-LINE:MVDGetInit37
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd37
+ return stringItemActHeight;
+ }//GEN-END:MVDGetEnd37
+
+ /** This method returns instance for stringItemDestination component and should be called instead of accessing stringItemDestination field directly.//GEN-BEGIN:MVDGetBegin38
+ * @return Instance for stringItemDestination component
+ */
+ public StringItem get_stringItemDestination() {
+ if (stringItemDestination == null) {//GEN-END:MVDGetBegin38
+ // Insert pre-init code here
+ stringItemDestination = new StringItem("\nDestination", "");//GEN-LINE:MVDGetInit38
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd38
+ return stringItemDestination;
+ }//GEN-END:MVDGetEnd38
+
+ /** This method returns instance for stringItemDestNorth component and should be called instead of accessing stringItemDestNorth field directly.//GEN-BEGIN:MVDGetBegin40
+ * @return Instance for stringItemDestNorth component
+ */
+ public StringItem get_stringItemDestNorth() {
+ if (stringItemDestNorth == null) {//GEN-END:MVDGetBegin40
+ // Insert pre-init code here
+ stringItemDestNorth = new StringItem("North", "0");//GEN-LINE:MVDGetInit40
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd40
+ return stringItemDestNorth;
+ }//GEN-END:MVDGetEnd40
+
+ /** This method returns instance for stringItemDestEast component and should be called instead of accessing stringItemDestEast field directly.//GEN-BEGIN:MVDGetBegin41
+ * @return Instance for stringItemDestEast component
+ */
+ public StringItem get_stringItemDestEast() {
+ if (stringItemDestEast == null) {//GEN-END:MVDGetBegin41
+ // Insert pre-init code here
+ stringItemDestEast = new StringItem("East", "0");//GEN-LINE:MVDGetInit41
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd41
+ return stringItemDestEast;
+ }//GEN-END:MVDGetEnd41
+
+ /** This method returns instance for okCommand1 component and should be called instead of accessing okCommand1 field directly.//GEN-BEGIN:MVDGetBegin42
+ * @return Instance for okCommand1 component
+ */
+ public Command get_okCommand1() {
+ if (okCommand1 == null) {//GEN-END:MVDGetBegin42
+ // Insert pre-init code here
+ okCommand1 = new Command("goto", Command.OK, 1);//GEN-LINE:MVDGetInit42
+ // Insert post-init code here
+ }//GEN-BEGIN:MVDGetEnd42
+ return okCommand1;
+ }//GEN-END:MVDGetEnd42
+
+ public void startApp() {
+ initialize();
+ }
+
+ public void pauseApp() {
+ }
+
+ public void destroyApp(boolean unconditional) {
+ }
+
+}
diff --git a/trunk/src/gui/geoc.mvd b/trunk/src/gui/geoc.mvd
new file mode 100755
index 0000000..fe0f961
--- /dev/null
+++ b/trunk/src/gui/geoc.mvd
@@ -0,0 +1,202 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<MVDData version="1.3">
+ <DesignDocument designVersion="MIDP-2" uidCounter="45">
+ <DesignComponent id="$MobileDevice" typeid="MIDP:$MobileDevice" uid="0"/>
+ <DesignComponent id="$StartPoint" typeid="MIDP:$StartPoint" uid="1">
+ <Property name="targetDisplayable" value="editForm"/>
+ <Property name="targetForwardDisplayable"/>
+ </DesignComponent>
+ <DesignComponent id="editForm" typeid="MIDP:javax.microedition.lcdui.Form" uid="2">
+ <ContainerProperty name="commands">
+ <ContainerPropertyItem value="$CommandAction"/>
+ <ContainerPropertyItem value="$CommandAction1"/>
+ </ContainerProperty>
+ <Property name="lazyInitialized" value="false"/>
+ <ContainerProperty name="items">
+ <ContainerPropertyItem value="stringItemHead1"/>
+ <ContainerPropertyItem value="spacer1"/>
+ <ContainerPropertyItem value="stringItemEnterDest"/>
+ <ContainerPropertyItem value="textFieldEnterNorth"/>
+ <ContainerPropertyItem value="textFieldEnterEast"/>
+ </ContainerProperty>
+ </DesignComponent>
+ <DesignComponent id="$CommandAction" typeid="MIDP:CommandAction" uid="3">
+ <Property name="targetDisplayable" value="$MobileDevice"/>
+ <Property name="targetForwardDisplayable"/>
+ <Property name="actionSource" value="exitCommand"/>
+ <Property name="actionOrigin" value="editForm"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemHead1" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="4">
+ <Property name="label" value="STRING:geoc"/>
+ <Property name="text" value="STRING:v0.1"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="exitCommand" typeid="MIDP:javax.microedition.lcdui.Command" uid="5">
+ <Property name="label" value="STRING:Exit"/>
+ <Property name="priority" value="1"/>
+ <Property name="type" value="EXIT"/>
+ </DesignComponent>
+ <DesignComponent id="textFieldEnterNorth" typeid="MIDP:javax.microedition.lcdui.TextField" uid="6">
+ <Property name="label" value="STRING:North"/>
+ <Property name="string" value="STRING:47:42.466"/>
+ <Property name="maxSize" value="120"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="textFieldEnterEast" typeid="MIDP:javax.microedition.lcdui.TextField" uid="7">
+ <Property name="label" value="STRING:East"/>
+ <Property name="string" value="STRING:9:36.620"/>
+ <Property name="maxSize" value="120"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="spacer1" typeid="MIDP-2:javax.microedition.lcdui.Spacer" uid="9">
+ <Property name="minWidth" value="1000"/>
+ <Property name="minHeight" value="1"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemEnterDest" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="10">
+ <Property name="label" value="STRING:\nEnter Destination"/>
+ <Property name="text" value="STRING:"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="screenCommand1" typeid="MIDP:javax.microedition.lcdui.Command" uid="11">
+ <Property name="label" value="STRING:go to"/>
+ <Property name="priority" value="1"/>
+ <Property name="type" value="SCREEN"/>
+ </DesignComponent>
+ <DesignComponent id="exitCommand1" typeid="MIDP:javax.microedition.lcdui.Command" uid="15">
+ <Property name="label" value="STRING:Exit"/>
+ <Property name="priority" value="1"/>
+ <Property name="type" value="EXIT"/>
+ </DesignComponent>
+ <DesignComponent id="exitCommand2" typeid="MIDP:javax.microedition.lcdui.Command" uid="16">
+ <Property name="label" value="STRING:Exit"/>
+ <Property name="priority" value="1"/>
+ <Property name="type" value="EXIT"/>
+ </DesignComponent>
+ <DesignComponent id="itemCommand1" typeid="MIDP:javax.microedition.lcdui.Command" uid="18">
+ <Property name="label" value="STRING:Item"/>
+ <Property name="priority" value="1"/>
+ <Property name="type" value="ITEM"/>
+ </DesignComponent>
+ <DesignComponent id="itemCommand2" typeid="MIDP:javax.microedition.lcdui.Command" uid="19">
+ <Property name="label" value="STRING:Edit Coord."/>
+ <Property name="priority" value="1"/>
+ <Property name="type" value="ITEM"/>
+ </DesignComponent>
+ <DesignComponent id="navForm" typeid="MIDP:javax.microedition.lcdui.Form" uid="21">
+ <ContainerProperty name="commands">
+ <ContainerPropertyItem value="$CommandAction2"/>
+ <ContainerPropertyItem value="$CommandAction3"/>
+ </ContainerProperty>
+ <Property name="lazyInitialized" value="false"/>
+ <ContainerProperty name="items">
+ <ContainerPropertyItem value="stringItemHead2"/>
+ <ContainerPropertyItem value="spacer2"/>
+ <ContainerPropertyItem value="stringItemCourse"/>
+ <ContainerPropertyItem value="stringItemDistance"/>
+ <ContainerPropertyItem value="stringItemActNorth"/>
+ <ContainerPropertyItem value="stringItemActEast"/>
+ <ContainerPropertyItem value="stringItemActHeight"/>
+ <ContainerPropertyItem value="stringItemDestination"/>
+ <ContainerPropertyItem value="stringItemDestNorth"/>
+ <ContainerPropertyItem value="stringItemDestEast"/>
+ </ContainerProperty>
+ </DesignComponent>
+ <DesignComponent id="exitCommand3" typeid="MIDP:javax.microedition.lcdui.Command" uid="22">
+ <Property name="label" value="STRING:Exit"/>
+ <Property name="priority" value="1"/>
+ <Property name="type" value="EXIT"/>
+ </DesignComponent>
+ <DesignComponent id="exitCommand4" typeid="MIDP:javax.microedition.lcdui.Command" uid="23">
+ <Property name="label" value="STRING:Exit"/>
+ <Property name="priority" value="1"/>
+ <Property name="type" value="EXIT"/>
+ </DesignComponent>
+ <DesignComponent id="$CommandAction2" typeid="MIDP:CommandAction" uid="24">
+ <Property name="targetDisplayable" value="$MobileDevice"/>
+ <Property name="targetForwardDisplayable"/>
+ <Property name="actionSource" value="exitCommand4"/>
+ <Property name="actionOrigin" value="navForm"/>
+ </DesignComponent>
+ <DesignComponent id="screenCommand2" typeid="MIDP:javax.microedition.lcdui.Command" uid="25">
+ <Property name="label" value="STRING:edit Coord."/>
+ <Property name="priority" value="1"/>
+ <Property name="type" value="SCREEN"/>
+ </DesignComponent>
+ <DesignComponent id="$CommandAction3" typeid="MIDP:CommandAction" uid="26">
+ <Property name="targetDisplayable" value="editForm"/>
+ <Property name="targetForwardDisplayable" value="navForm"/>
+ <Property name="actionSource" value="screenCommand2"/>
+ <Property name="actionOrigin" value="navForm"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemHead2" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="27">
+ <Property name="label" value="STRING:geoc"/>
+ <Property name="text" value="STRING:v0.1"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="spacer2" typeid="MIDP-2:javax.microedition.lcdui.Spacer" uid="28">
+ <Property name="minWidth" value="1000"/>
+ <Property name="minHeight" value="1"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemCourse" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="29">
+ <Property name="label" value="STRING:\nCourse"/>
+ <Property name="text" value="STRING:0"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemDistance" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="34">
+ <Property name="label" value="STRING:Distance"/>
+ <Property name="text" value="STRING:0"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemActNorth" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="35">
+ <Property name="label" value="STRING:\nNorth"/>
+ <Property name="text" value="STRING:0"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemActEast" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="36">
+ <Property name="label" value="STRING:East"/>
+ <Property name="text" value="STRING:0"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemActHeight" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="37">
+ <Property name="label" value="STRING:Height"/>
+ <Property name="text" value="STRING:0"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemDestination" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="38">
+ <Property name="label" value="STRING:\nDestination"/>
+ <Property name="text" value="STRING:"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemDestNorth" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="40">
+ <Property name="label" value="STRING:North"/>
+ <Property name="text" value="STRING:0"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="stringItemDestEast" typeid="MIDP:javax.microedition.lcdui.StringItem" uid="41">
+ <Property name="label" value="STRING:East"/>
+ <Property name="text" value="STRING:0"/>
+ <ContainerProperty name="commands"/>
+ </DesignComponent>
+ <DesignComponent id="okCommand1" typeid="MIDP:javax.microedition.lcdui.Command" uid="42">
+ <Property name="label" value="STRING:goto"/>
+ <Property name="priority" value="1"/>
+ <Property name="type" value="OK"/>
+ </DesignComponent>
+ <DesignComponent id="$CommandAction1" typeid="MIDP:CommandAction" uid="43">
+ <Property name="targetDisplayable" value="navForm"/>
+ <Property name="targetForwardDisplayable"/>
+ <Property name="actionSource" value="okCommand1"/>
+ <Property name="actionOrigin" value="editForm"/>
+ </DesignComponent>
+ </DesignDocument>
+ <FlowDocument version="1.1">
+ <Node id="$MobileDevice" location="160,192" order=",$StartPoint,,,,,,,,,$ExitPoint,,,,,"/>
+ <Node id="navForm" location="552,192" order="$CommandAction2,$CommandAction3,,,,,,,,,$Default,,,,,"/>
+ <Node id="editForm" location="344,192" order="$CommandAction,$CommandAction1,,,,,,,,,$Default,,,,,"/>
+ <Link id="$StartPoint$ActionLink" path="200,168,304,168"/>
+ <Link id="$CommandAction$ActionLink" path="384,184,463,184,463,227,47,227,47,168,120,168"/>
+ <Link id="$CommandAction2$ActionLink" path="592,184,673,184,673,227,47,227,47,168,120,168"/>
+ <Link id="$CommandAction3$ActionLink" path="592,168,673,168,673,112,277,112,277,168,304,168"/>
+ <Link id="$CommandAction1$ActionLink" path="384,168,512,168"/>
+ </FlowDocument>
+</MVDData>
diff --git a/trunk/src/nav/locListener.java b/trunk/src/nav/locListener.java
new file mode 100755
index 0000000..54ff7db
--- /dev/null
+++ b/trunk/src/nav/locListener.java
@@ -0,0 +1,35 @@
+/*
+ * locListener.java
+ *
+ * Created on July 14, 2007, 4:20 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package nav;
+
+import javax.microedition.location.*;
+
+/**
+ *
+ * @author manut
+ */
+public class locListener implements LocationListener {
+
+ private navigate nav;
+
+ /** Creates a new instance of locListener */
+ public locListener(navigate _nav) {
+ nav = _nav;
+ }
+
+ public void providerStateChanged(LocationProvider prov, int newState){
+ nav.setNewState(newState);
+ }
+
+ public void locationUpdated(LocationProvider prov, Location location){
+ nav.setNewLoc(location);
+ }
+
+}
diff --git a/trunk/src/nav/navigate.java b/trunk/src/nav/navigate.java
new file mode 100755
index 0000000..eeaffce
--- /dev/null
+++ b/trunk/src/nav/navigate.java
@@ -0,0 +1,93 @@
+/*
+ * navigate.java
+ *
+ * Created on July 14, 2007, 2:18 AM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package nav;
+
+import javax.microedition.location.*;
+import gui.geoc;
+import java.lang.Thread;
+
+/**
+ *
+ * @author manut
+ */
+public class navigate {
+
+ private geoc gui;
+ private LocationProvider pos;
+ private int provState;
+
+ private Location actLoc;
+ private Landmark dest;
+
+ private processLoc pLoc;
+ private processState pState;
+
+ /** Creates a new instance of navigate */
+ public navigate(geoc _gui) throws LocationException {
+
+ pos = LocationProvider.getInstance(null);
+ if (pos == null)
+ throw new LocationException();
+
+ gui = _gui;
+ pLoc = new processLoc(gui);
+ pState = new processState(gui);
+ }
+
+ /** sets destination */
+ public void setDestination ( String north, String east )
+ throws IllegalArgumentException {
+
+ double latitude, longitude;
+ float altitude, hAcc, vAcc;
+
+ latitude = Coordinates.convert(north);
+ longitude = Coordinates.convert(east);
+
+ altitude = Float.NaN;
+ hAcc = 0;
+ vAcc = 0;
+
+ QualifiedCoordinates coord;
+ coord = new QualifiedCoordinates( latitude,
+ longitude,
+ altitude, hAcc, vAcc
+ );
+
+ if(dest == null){
+ AddressInfo info = new AddressInfo();
+ dest = new Landmark("destination", "stageX", coord, info);
+ } else
+ dest.setQualifiedCoordinates(coord);
+
+
+ locListener locList = new locListener(this);
+ int interval = -1;
+
+ gui.get_stringItemDestNorth().setText(north);
+ gui.get_stringItemDestEast().setText(east);
+
+ pos.setLocationListener(locList, interval, 0, 0);
+
+ }
+
+ public void setNewLoc(Location loc){
+ actLoc = loc;
+ pLoc.set(loc, dest);
+ pLoc.run();
+ }
+
+ public void setNewState(int state){
+ provState = state;
+ pState.set(state);
+ pState.run();
+ }
+
+}
diff --git a/trunk/src/nav/processLoc.java b/trunk/src/nav/processLoc.java
new file mode 100755
index 0000000..fdcd863
--- /dev/null
+++ b/trunk/src/nav/processLoc.java
@@ -0,0 +1,104 @@
+/*
+ * processLoc.java
+ *
+ * Created on July 14, 2007, 4:59 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package nav;
+
+import java.lang.Thread;
+import javax.microedition.location.*;
+
+import gui.*;
+
+/**
+ *
+ * @author manut
+ */
+public class processLoc extends Thread {
+
+ private geoc gui;
+ private Landmark dest;
+ private Location loc;
+ private Coordinates lastloc;
+ private Coordinates north;
+
+ /** Creates a new instance of processLoc */
+ public processLoc(geoc _gui) {
+ gui = _gui;
+ north = new Coordinates(90, 0, 0);
+ lastloc = null;
+ }
+
+ public void set(Location _loc, Landmark _dest){
+
+ loc = _loc;
+ dest = _dest;
+
+ }
+
+ private double arcsin(double azimuth){
+ double calc;
+ double last_calc = 0;
+
+ for(double i = -1; i <= 1; i=i+0.001){
+ calc = java.lang.Math.sin(i);
+ if ( calc == azimuth ){
+ return i;
+ } else if (last_calc <= azimuth && calc > azimuth){
+ return i;
+ } else
+ last_calc = calc;
+ }
+ return -2;
+ }
+
+ public void run(){
+ // calc course, distance
+ // A = LastPosition
+ // B = Destination
+ // C = Northpole
+ // D = ActPosition
+ // E = going further on straight forward, until you meet BC
+ //
+ // alphaI = arcsin( ( CD * sin(gammaI) ) / AB )
+ // betaI = arcsin( ( CD * sin(gammaII)) / BD )
+ // deltaI = 180 - alphaI - gammaI
+ // deltaII = 180 - deltaI
+ // epsilI = 180 - deltaII - gammaII
+ // epsilII = 180 - epsilI
+ // gesucht = 180 - epsilII - betaI
+ // --> courseCorrection = - 180 - arcsin( (CD * sin(gammaI)) / AB ) - gammaI - gammaII - arcsin( CD * (sin(gammaII)) / BD )
+
+ if( (lastloc!= null) && loc.isValid())
+ {
+
+ float gammaI = lastloc.azimuthTo(loc.getQualifiedCoordinates());
+ float gammaII = loc.getQualifiedCoordinates().azimuthTo(dest.getQualifiedCoordinates());
+ float AB = lastloc.distance(dest.getQualifiedCoordinates());
+ float BD = loc.getQualifiedCoordinates().distance(dest.getQualifiedCoordinates());
+ float CD = loc.getQualifiedCoordinates().distance(north);
+
+ double actC = ( - 180 - arcsin( (CD * java.lang.Math.sin(gammaI)) / AB ) - gammaI - gammaII - arcsin( CD * (java.lang.Math.sin(gammaII)) / BD ) ) % 360;
+ int actCourse = (int) actC;
+ if (actCourse < 0)
+ actCourse = actCourse+360;
+
+ // set GUI
+ gui.get_stringItemActNorth().setText(Coordinates.convert(loc.getQualifiedCoordinates().getLatitude(), 2));
+ gui.get_stringItemActEast().setText(Coordinates.convert(loc.getQualifiedCoordinates().getLongitude(), 2));
+ gui.get_stringItemActHeight().setText(String.valueOf(loc.getQualifiedCoordinates().getAltitude()));
+ if ( (actCourse != 112) )
+ gui.get_stringItemCourse().setText(String.valueOf(actCourse));
+ gui.get_stringItemDistance().setText(String.valueOf(BD));
+
+ }
+
+ if ( loc.isValid() )
+ lastloc = loc.getQualifiedCoordinates();
+ }
+
+}
diff --git a/trunk/src/nav/processState.java b/trunk/src/nav/processState.java
new file mode 100755
index 0000000..9c7d756
--- /dev/null
+++ b/trunk/src/nav/processState.java
@@ -0,0 +1,50 @@
+/*
+ * processState.java
+ *
+ * Created on July 14, 2007, 5:02 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package nav;
+
+import gui.*;
+import java.lang.Thread;
+import javax.microedition.location.*;
+
+/**
+ *
+ * @author manut
+ */
+public class processState extends Thread{
+
+ private geoc gui;
+ private int state;
+
+ /** Creates a new instance of processState */
+ public processState(geoc _gui) {
+ gui = _gui;
+ }
+
+ public void set(int _state){
+ state = _state;
+ }
+
+ public void run(){
+ switch(state){
+ case LocationProvider.AVAILABLE:
+ gui.get_stringItemHead2().setLabel("GPS available");
+ break;
+ case LocationProvider.OUT_OF_SERVICE:
+ gui.get_stringItemHead2().setLabel("no GPS!");
+ break;
+ case LocationProvider.TEMPORARILY_UNAVAILABLE:
+ gui.get_stringItemHead2().setLabel("weak GPS signal");
+ break;
+ default:
+ gui.get_stringItemHead2().setLabel("Location API Error");
+ }
+ }
+
+}