diff options
| author | Marco Jacob <mjacob@union06.de> | 2012-07-20 23:23:51 +0200 |
|---|---|---|
| committer | Marco Jacob <mjacob@union06.de> | 2012-07-20 23:23:51 +0200 |
| commit | 13006ac8183a5191b690a088b95230ea74506a45 (patch) | |
| tree | cc9e0ca95c55502df7d08e5ad0e4bc9767782a9c /main/res | |
| parent | 9ca1feffb7476edb91f4a81a2200631fa4f7ed2d (diff) | |
| download | cgeo-13006ac8183a5191b690a088b95230ea74506a45.zip cgeo-13006ac8183a5191b690a088b95230ea74506a45.tar.gz cgeo-13006ac8183a5191b690a088b95230ea74506a45.tar.bz2 | |
fixes #1794 - added gpx export dir setting with SimpleDirChooser
Diffstat (limited to 'main/res')
| -rw-r--r-- | main/res/layout/init.xml | 36 | ||||
| -rw-r--r-- | main/res/layout/simple_dir_chooser.xml | 49 | ||||
| -rw-r--r-- | main/res/layout/simple_dir_item.xml | 21 | ||||
| -rw-r--r-- | main/res/values-de/strings.xml | 8 | ||||
| -rw-r--r-- | main/res/values/strings.xml | 8 |
5 files changed, 122 insertions, 0 deletions
diff --git a/main/res/layout/init.xml b/main/res/layout/init.xml index 0eacc5d..280557e 100644 --- a/main/res/layout/init.xml +++ b/main/res/layout/init.xml @@ -714,6 +714,42 @@ <RelativeLayout style="@style/separator_horizontal_layout" > <View style="@style/separator_horizontal" /> <TextView style="@style/separator_horizontal_headline" + android:text="@string/init_gpx_exportdir" /> + </RelativeLayout> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:layout_marginBottom="5dip" + android:layout_gravity="left" + android:padding="3dip" + android:textSize="14dip" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:linksClickable="true" + android:autoLink="web" + android:text="@string/init_gpx_exportdir_description" /> + <LinearLayout + android:id="@+id/init_gpx_export_group" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + <Button style="@style/button_full" + android:id="@+id/select_gpx_exportdir" + android:text="@string/init_select_gpx_exportdir" + android:layout_width="wrap_content" /> + <EditText style="@style/edittext_full" + android:id="@+id/gpx_exportdir" + android:singleLine="true" + android:lines="1" + android:scrollHorizontally="true" + android:inputType="textNoSuggestions" /> + </LinearLayout> +<!-- ** --> + <RelativeLayout style="@style/separator_horizontal_layout" > + <View style="@style/separator_horizontal" /> + <TextView style="@style/separator_horizontal_headline" android:text="@string/init_altitude" /> </RelativeLayout> <EditText style="@style/edittext_full" diff --git a/main/res/layout/simple_dir_chooser.xml b/main/res/layout/simple_dir_chooser.xml new file mode 100644 index 0000000..491e0a2 --- /dev/null +++ b/main/res/layout/simple_dir_chooser.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:background="?background_color"> + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_weight="2"> + <RelativeLayout style="@style/separator_horizontal_layout" > + <View style="@style/separator_horizontal" /> + <TextView style="@style/separator_horizontal_headline" + android:text="@string/simple_dir_chooser_title" /> + </RelativeLayout> + <EditText + style="@style/edittext_full" + android:id="@+id/simple_dir_chooser_path" + android:singleLine="true" + android:lines="0" + android:editable="false" + android:scrollHorizontally="true" + android:inputType="textNoSuggestions" /> + </LinearLayout> + <ListView + android:layout_height="fill_parent" + android:layout_width="wrap_content" + android:layout_weight="100" + android:id="@+id/android:list" /> + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingTop="10dip" + android:layout_weight="1"> + <Button style="@style/button_full" + android:id="@+id/simple_dir_chooser_ok" + android:text="@android:string/ok" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + <Button style="@style/button_full" + android:id="@+id/simple_dir_chooser_cancel" + android:text="@android:string/cancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </LinearLayout> +</LinearLayout> diff --git a/main/res/layout/simple_dir_item.xml b/main/res/layout/simple_dir_item.xml new file mode 100644 index 0000000..ec4cd28 --- /dev/null +++ b/main/res/layout/simple_dir_item.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="horizontal" + android:background="?background_color" > + <CheckBox android:text="" + android:id="@+id/CheckBox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:checked="false" /> + <TextView + android:text="@+id/TextView01" + android:id="@+id/TextView01" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textStyle="bold" + android:layout_marginTop="5dip" + android:layout_marginLeft="5dip" /> +</LinearLayout> diff --git a/main/res/values-de/strings.xml b/main/res/values-de/strings.xml index f811f44..36c6f10 100644 --- a/main/res/values-de/strings.xml +++ b/main/res/values-de/strings.xml @@ -425,6 +425,10 @@ <string name="init_mapsources_description">Hier kann die Quelle der benutzen Karte gewählt werden. Alternativ zu Google Maps stehen verschiedene OpenStreetMap-Stile zur Verfügung und daneben auch Karten-Dateien für die Offline-Nutzung (siehe http://code.google.com/p/mapsforge/ für die Details).</string> <string name="init_mapsource_select">Kartenquelle wählen</string> <string name="init_select_mapfile">…</string> + <string name="init_select_gpx_exportdir">…</string> + <string name="init_gpx_exportdir">Verzeichnis für GPX Exporte</string> + <string name="init_gpx_exportdir_description">Hier kann das Verzeichnis für GPX-Exporte gewählt werden.</string> + <string name="init_gpx_exportdir_select">Wähle Verzeichnis für GPX Exporte</string> <string name="init_maptrail">Zeige Spur auf Karte</string> <string name="init_share_after_export">Weiterleiten nach dem Export</string> <string name="init_trackautovisit">Trackables automatisch auf \"besuchen\" setzen</string> @@ -607,6 +611,10 @@ <string name="file_searching">Suche nach passenden Dateien</string> <string name="file_title_searching">Suche</string> + <!-- simple_dir_chooser --> + <string name="simple_dir_chooser_title">Verzeichnis wählen</string> + <string name="simple_dir_chooser_current_path">Pfad:</string> + <!-- gpx --> <string name="gpx_import_loading_caches">Lade Caches aus GPX-Datei</string> <string name="gpx_import_loading_waypoints">Lade Wegpunkte aus GPX-Datei</string> diff --git a/main/res/values/strings.xml b/main/res/values/strings.xml index 4853533..fa6dbce 100644 --- a/main/res/values/strings.xml +++ b/main/res/values/strings.xml @@ -426,6 +426,10 @@ <string name="init_mapsources_description">Here you can select the source for your maps. As an alternative to Google maps various OpenStreetMap styles are available and even offline map files (See <a href="http://code.google.com/p/mapsforge/">http://code.google.com/p/mapsforge/</a> for details).</string> <string name="init_mapsource_select">Select Map Source</string> <string name="init_select_mapfile">…</string> + <string name="init_select_gpx_exportdir">…</string> + <string name="init_gpx_exportdir">GPX Export Directory</string> + <string name="init_gpx_exportdir_description">Here you can select the directory for GPX exports.</string> + <string name="init_gpx_exportdir_select">Select GPX Export Directory</string> <string name="init_maptrail">Show trail on Map</string> <string name="init_share_after_export">Open share menu after GPX export</string> <string name="init_trackautovisit">Set trackables to \"Visited\" as a default</string> @@ -617,6 +621,10 @@ <string name="file_searching">Searching for matching files</string> <string name="file_title_searching">Searching</string> + <!-- simple_dir_chooser --> + <string name="simple_dir_chooser_title">Choose directory</string> + <string name="simple_dir_chooser_current_path">Path:</string> + <!-- gpx --> <string name="gpx_import_loading_caches">Loading caches from .gpx file</string> <string name="gpx_import_loading_waypoints">Loading waypoints file</string> |
