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

<!--
SPDX-FileCopyrightText: 2014 Rahil Momin <rahil.rules.you@gmail.com>

SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
-->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:keep="@xml/mousepadplugin_preferences">

    <ListPreference
        android:id="@+id/mousepad_single_tap_preference"
        android:defaultValue="@string/mousepad_default_single"
        android:entries="@array/mousepad_tap_entries"
        android:entryValues="@array/mousepad_tap_values"
        android:key="@string/mousepad_single_tap_key"
        android:summary="%s"
        android:title="@string/mousepad_single_tap_settings_title" />

    <ListPreference
        android:id="@+id/mousepad_double_tap_preference"
        android:defaultValue="@string/mousepad_default_double"
        android:entries="@array/mousepad_tap_entries"
        android:entryValues="@array/mousepad_tap_values"
        android:key="@string/mousepad_double_tap_key"
        android:summary="%s"
        android:title="@string/mousepad_double_tap_settings_title" />

    <ListPreference
        android:id="@+id/mousepad_triple_tap_preference"
        android:defaultValue="@string/mousepad_default_triple"
        android:entries="@array/mousepad_tap_entries"
        android:entryValues="@array/mousepad_tap_values"
        android:key="@string/mousepad_triple_tap_key"
        android:summary="%s"
        android:title="@string/mousepad_triple_tap_settings_title" />

    <ListPreference
        android:id="@+id/mousepad_sensitivity_preference"
        android:defaultValue="@string/mousepad_default_sensitivity"
        android:entries="@array/mousepad_sensitivity_entries"
        android:entryValues="@array/mousepad_sensitivity_values"
        android:key="@string/mousepad_sensitivity_key"
        android:summary="%s"
        android:title="@string/mousepad_sensitivity_settings_title" />

    <ListPreference
        android:id="@+id/mousepad_acceleration_profile_preference"
        android:defaultValue="@string/mousepad_default_acceleration_profile"
        android:entries="@array/mousepad_acceleration_profile_entries"
        android:entryValues="@array/mousepad_acceleration_profile_values"
        android:key="@string/mousepad_acceleration_profile_key"
        android:summary="%s"
        android:title="@string/mousepad_acceleration_profile_settings_title" />

    <SwitchPreference
        android:id="@+id/mousepad_scroll_preference"
        android:defaultValue="false"
        android:key="@string/mousepad_scroll_direction"
        android:title="@string/mousepad_scroll_direction_title" />

    <SeekBarPreference
        android:id="@+id/mousepad_scroll_sensitivity_pref"
        android:defaultValue="100"
        android:key="@string/mousepad_scroll_sensitivity"
        android:title="@string/mousepad_scroll_sensitivity_title"
        android:layout_width="wrap_content" />


    <SwitchPreference
        android:id="@+id/gyro_mouse_enabled"
        android:defaultValue="false"
        android:key="@string/gyro_mouse_enabled"
        android:title="@string/gyro_mouse_enabled_title" />

    <SeekBarPreference
        android:id="@+id/mousepad_gyro_sensitivity"
        android:defaultValue="100"
        android:key="@string/gyro_mouse_sensitivity"
        android:title="@string/gyro_mouse_sensitivity_title"
        android:layout_width="wrap_content" />

    <SwitchPreference
        android:id="@+id/mousepad_mouse_buttons_enabled_pref"
        android:defaultValue="true"
        android:key="@string/mousepad_mouse_buttons_enabled_pref"
        android:title="@string/mousepad_mouse_buttons_title" />

    <SwitchPreference
        android:id="@+id/mousepad_double_tap_drag_enabled_pref"
        android:defaultValue="true"
        android:key="@string/mousepad_doubletap_drag_enabled_pref"
        android:title="Drag and drop behavior"
        android:summaryOn="@string/double_tap_to_drag"
        android:summaryOff="@string/hold_to_drag"
        />


    <org.kde.kdeconnect.Helpers.LongSummaryPreferenceCategory
        android:key="@string/sendkeystrokes_pref_category"
        android:summary="@string/sendkeystrokes_pref_category_summary"
        android:title="@string/sendkeystrokes_pref_category_title">

        <SwitchPreference
            android:id="@+id/pref_keystrokes_enable"
            android:defaultValue="true"
            android:key="@string/pref_sendkeystrokes_enabled"
            android:title="@string/sendkeystrokes_pref_enabled"
            android:summary="@string/sendkeystrokes_pref_enabled_summary"
            />

        <SwitchPreference
            android:id="@+id/pref_send_safe_text_immediately"
            android:defaultValue="true"
            android:key="@string/pref_send_safe_text_immediately"
            android:title="@string/sendkeystrokes_safe_text_enabled"
            android:summary="@string/sendkeystrokes_safe_text_enabled_summary"
            />

    </org.kde.kdeconnect.Helpers.LongSummaryPreferenceCategory>
</PreferenceScreen>
