Skip to content

Commit

Permalink
Imported from svn
Browse files Browse the repository at this point in the history
Signed-off-by: Yann Savary <yann.savary@gmail.com>
  • Loading branch information
ysavary committed Feb 16, 2011
1 parent 3cf9e4f commit bc45d86
Show file tree
Hide file tree
Showing 121 changed files with 4,822 additions and 0 deletions.
37 changes: 37 additions & 0 deletions AndroidManifest.xml
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="6"
android:versionName="1.0" package="ch.windmobile" android:installLocation="auto" android:debuggable="false">
<application android:icon="@drawable/windmobile" android:label="@string/app_name" android:name="WindMobile"
android:theme="@android:style/Theme.NoTitleBar">
<uses-library android:name="com.google.android.maps" />

<activity android:label="@string/app_name" android:name=".activity.StationTabActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:label="@string/app_name" android:name=".activity.StationListActivity" />
<activity android:label="@string/app_name" android:name=".activity.StationBrowsingActivity" />
<activity android:label="@string/app_name" android:name=".activity.StationMapActivity" />
<activity android:label="@string/app_name" android:name=".activity.PreferencesActivity" />
<activity android:label="@string/widget_configuration_activity_name" android:name=".activity.WidgetConfigurationActivity"
android:theme="@android:style/Theme.Dialog">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>

<receiver android:name="WidgetProvider" android:label="@string/app_name">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget_provider" />
</receiver>

<service android:name=".WidgetProvider$UpdateService" />
</application>
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
</manifest>
15 changes: 15 additions & 0 deletions default.properties
@@ -0,0 +1,15 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.

# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=Google Inc.:Google APIs:8
sdk-folder=Q:/android-sdk-windows-1.1_r1
apk-configurations=
Binary file added lib/com.artfulbits.aiCharts.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions market/description_de.txt
@@ -0,0 +1,3 @@
Windverhältnisse in Echtzeit für Gleitschirm Standorte.

Dieses Programm verwendet die infos von den Wetterstationen von JDC (meteo.jdc.ch - 3 vorhanden). Es zeigt die Stärke und Richtung des Windes, Temperatur und Feuchtigkeit der verschiedenen Flug Standorte.
3 changes: 3 additions & 0 deletions market/description_fr.txt
@@ -0,0 +1,3 @@
Permet de consulter en temps réel les conditions aérologiques des sites de vol libre.

Cette application utilise le réseau des stations météo JDC (meteo.jdc.ch - 3 balises à ce jour). Elle affiche la force et la direction du vent, la température et l'humidité de l'air des différents sites de vols.
Binary file added market/windmobile-512x512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions res/anim/fade_in.xml
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator"
android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="500" />
3 changes: 3 additions & 0 deletions res/anim/fade_out.xml
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator"
android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="500" />
4 changes: 4 additions & 0 deletions res/anim/slide_left_in.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="500" />
</set>
4 changes: 4 additions & 0 deletions res/anim/slide_left_out.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0" android:toXDelta="-100%p" android:duration="500" />
</set>
4 changes: 4 additions & 0 deletions res/anim/slide_right_in.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="-100%p" android:toXDelta="0" android:duration="500" />
</set>
4 changes: 4 additions & 0 deletions res/anim/slide_right_out.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0" android:toXDelta="100%p" android:duration="500" />
</set>
Binary file added res/drawable-hdpi/arrow_left_default.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/arrow_left_pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/arrow_right_default.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/arrow_right_pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/btn_zoom_down_disabled.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/btn_zoom_down_normal.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/btn_zoom_down_pressed.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/btn_zoom_up_disabled.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/btn_zoom_up_normal.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/btn_zoom_up_pressed.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_menu_info_details.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_menu_preferences.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_menu_refresh.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_tab_list.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_tab_map.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/windmobile.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/btn_zoom_down_disabled.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/btn_zoom_down_normal.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/btn_zoom_down_pressed.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/btn_zoom_up_disabled.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/btn_zoom_up_normal.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/btn_zoom_up_pressed.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_menu_info_details.png
Binary file added res/drawable-mdpi/ic_menu_preferences.png
Binary file added res/drawable-mdpi/ic_menu_refresh.png
Binary file added res/drawable-mdpi/windmobile.png
5 changes: 5 additions & 0 deletions res/drawable/arrow_left.xml
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/arrow_left_pressed" />
<item android:drawable="@drawable/arrow_left_default" />
</selector>
5 changes: 5 additions & 0 deletions res/drawable/arrow_right.xml
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/arrow_right_pressed" />
<item android:drawable="@drawable/arrow_right_default" />
</selector>
4 changes: 4 additions & 0 deletions res/drawable/chart_gradient.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:angle="90" android:startColor="#252ccb" android:endColor="#a7a9cb" />
</shape>
7 changes: 7 additions & 0 deletions res/drawable/rounded_box.xml
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient android:startColor="#A0000000" android:endColor="#A0000000" android:angle="270" />
<corners android:bottomRightRadius="12dp" android:bottomLeftRadius="12dp" android:topLeftRadius="12dp"
android:topRightRadius="12dp" />
<stroke android:width="2dp" android:color="#FFFFFF" />
</shape>
3 changes: 3 additions & 0 deletions res/drawable/widget_background.xml
@@ -0,0 +1,3 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:left="5dp" android:top="5dp" android:right="5dp" android:bottom="5dp" android:drawable="@drawable/rounded_box" />
</layer-list>
6 changes: 6 additions & 0 deletions res/drawable/zoom_down.xml
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:drawable="@drawable/btn_zoom_down_disabled" />
<item android:state_pressed="true" android:drawable="@drawable/btn_zoom_down_pressed" />
<item android:drawable="@drawable/btn_zoom_down_normal" />
</selector>
6 changes: 6 additions & 0 deletions res/drawable/zoom_up.xml
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:drawable="@drawable/btn_zoom_up_disabled" />
<item android:state_pressed="true" android:drawable="@drawable/btn_zoom_up_pressed" />
<item android:drawable="@drawable/btn_zoom_up_normal" />
</selector>
54 changes: 54 additions & 0 deletions res/layout-land/widget_station.xml
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/station_data"
android:orientation="vertical" android:background="@drawable/widget_background" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:padding="5sp">

<RelativeLayout android:id="@+id/station_view" android:layout_width="fill_parent"
android:layout_height="wrap_content">

<TextView android:id="@+id/station_name" style="@style/map_value" android:textSize="17sp"
android:layout_width="wrap_content" android:layout_height="wrap_content" />

<TextView android:id="@+id/station_lastUpdate" style="@style/map_title" android:layout_toRightOf="@id/station_name"
android:layout_alignBaseline="@id/station_name" android:gravity="right" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:textSize="9sp" />
</RelativeLayout>

<LinearLayout android:id="@+id/wind_view" android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="wrap_content">

<RelativeLayout android:id="@+id/wind_last_view" android:layout_weight="1" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:paddingLeft="4sp" android:paddingRight="4sp"
android:paddingBottom="4sp">

<TextView android:id="@+id/wind_last_title" style="@style/map_title" android:text="@string/wind_last_title"
android:gravity="left" android:layout_width="wrap_content" android:layout_height="wrap_content" />

<TextView android:id="@+id/wind_last_average_unit" style="@style/map_label" android:layout_below="@id/wind_last_title"
android:layout_alignParentRight="true" android:layout_marginTop="10sp" android:text="@string/kmh_unit"
android:gravity="right" android:layout_width="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="10sp" />

<TextView android:id="@+id/wind_last_average" style="@style/map_value" android:layout_toLeftOf="@id/wind_last_average_unit"
android:layout_alignBaseline="@id/wind_last_average_unit" android:textSize="25sp" android:layout_width="wrap_content"
android:layout_height="wrap_content" />

<TextView android:id="@+id/wind_direction" style="@style/map_value" android:layout_toLeftOf="@+id/wind_last_average"
android:layout_alignBaseline="@id/wind_last_average_unit" android:textSize="25sp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:paddingRight="20sp" />

<TextView android:id="@+id/wind_last_max_unit" style="@style/map_label" android:layout_below="@id/wind_last_average_unit"
android:layout_alignParentRight="true" android:layout_marginTop="10sp" android:text="@string/kmh_unit"
android:gravity="right" android:layout_width="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="10sp" />

<TextView android:id="@+id/wind_last_max" style="@style/map_value" android:layout_toLeftOf="@id/wind_last_max_unit"
android:layout_alignBaseline="@id/wind_last_max_unit" android:textSize="15sp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:paddingLeft="25sp" />

<TextView android:id="@+id/wind_last_max_label" style="@style/map_label" android:layout_toLeftOf="@id/wind_trend"
android:layout_alignBaseline="@id/wind_last_max_unit" android:text="@string/wind_max_label"
android:layout_width="fill_parent" android:layout_height="wrap_content" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>

0 comments on commit bc45d86

Please sign in to comment.