<?xml version="1.0" encoding="utf-8"?>

<!--
  ~ Copyright 2013 serso aka se.solovyev
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~    http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  ~
  ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~ Contact details
  ~
  ~ Email: se.solovyev@gmail.com
  ~ Site:  http://se.solovyev.org
  -->

<PreferenceScreen xmlns:a="http://schemas.android.com/apk/res/android"
    xmlns:range="http://schemas.android.com/apk/res-auto">

    <android.preference.CheckBoxPreference
        a:defaultValue="true"
        a:key="engine.output.round"
        a:summary="@string/c_calc_round_result_summary"
        a:title="@string/c_calc_round_result_title" />

    <org.solovyev.android.prefs.IntegerPickerDialogPreference
        a:defaultValue="5"
        a:key="engine.output.precision"
        a:summary="@string/c_calc_result_precision_summary"
        a:title="@string/p_calc_result_precision_title"
        range:boundaries="0;16" />

    <android.preference.CheckBoxPreference
        a:defaultValue="false"
        a:key="engine.output.scientificNotation"
        a:summary="@string/c_calc_science_notation_summary"
        a:title="@string/c_calc_science_notation_title" />

    <ListPreference
        a:entries="@array/p_grouping_separator_names"
        a:entryValues="@array/p_grouping_separator_values"
        a:key="engine.groupingSeparator"
        a:summary="@string/c_calc_grouping_separator_summary"
        a:title="@string/c_calc_grouping_separator" />

    <ListPreference
        a:entries="@array/p_angle_units_names"
        a:entryValues="@array/p_angle_units"
        a:key="preferred_angle_units"
        a:summary="@string/p_preferred_angle_units_summary"
        a:title="@string/p_preferred_angle_units_title" />

    <ListPreference
        a:entries="@array/p_angle_units_names"
        a:entryValues="@array/p_angle_units"
        a:key="engine.angleUnit"
        a:summary="@string/c_angle_units_summary"
        a:title="@string/c_calc_angle_units" />

    <ListPreference
        a:entries="@array/p_numeral_bases_names"
        a:entryValues="@array/p_numeral_bases"
        a:key="preferred_numeral_base"
        a:summary="@string/p_preferred_numeral_base_summary"
        a:title="@string/p_preferred_numeral_base_title" />

    <ListPreference
        a:entries="@array/p_numeral_bases_names"
        a:entryValues="@array/p_numeral_bases"
        a:key="engine.numeralBase"
        a:summary="@string/c_numeral_bases_summary"
        a:title="@string/c_calc_numeral_bases" />

    <android.preference.CheckBoxPreference
        a:key="calculations_calculate_on_fly"
        a:summary="@string/p_calculations_calculate_on_fly_summary"
        a:title="@string/p_calculations_calculate_on_fly_title" />

</PreferenceScreen>