summaryrefslogtreecommitdiffstats
path: root/sl4a/ScriptingLayerForAndroid/res/xml/preferences.xml
blob: e0e6d35ba8353f133850be6ff402740db3ee63d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2016, The Android Open Source Project
**
** 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.
*/
-->

<PreferenceScreen
  xmlns:android="http://schemas.android.com/apk/res/android">
  <PreferenceCategory
    android:title="General">
    <EditTextPreference android:summary="Port to use for running server. Leave at 0 for random selection." android:key="use_service_port" android:title="Server Port" android:defaultValue="0" android:numeric="integer"></EditTextPreference>
  </PreferenceCategory>
  <PreferenceCategory
    android:title="Script Manager">
    <CheckBoxPreference
      android:key="show_all_files"
      android:title="Show all files"
      android:defaultValue="false" />
  </PreferenceCategory>
  <PreferenceCategory
    android:title="Script Editor">
    <ListPreference
      android:key="editor_fontsize"
      android:defaultValue="@string/default_value_fontsize_preference"
      android:title="@string/title_fontsize_preference"
      android:summary="@string/summary_fontsize_preference"
      android:entries="@array/entries_fontsize_preference"
      android:entryValues="@array/entryvalues_fontsize_preference"
      android:dialogTitle="@string/dialog_title_fontsize_preference" />
  <CheckBoxPreference android:title="@string/help_force_browser" android:key="helpForceBrowser" android:defaultValue="true" android:summary="Force API Help to use default Android Browser"></CheckBoxPreference>
  <CheckBoxPreference android:summary="When enabled, quotes and brackets are automatically completed." android:key="enableAutoClose" android:title="@string/enable_auto_close" android:defaultValue="true"></CheckBoxPreference>
  <CheckBoxPreference android:title="No Wrap" android:summary="Don't wrap text in editor" android:key="editor_no_wrap"></CheckBoxPreference>
  <CheckBoxPreference android:key="editor_auto_indent" android:defaultValue="false" android:summaryOff="Auto Indent Disabled" android:summaryOn="Auto Indent Enabled" android:title="Auto Indent"></CheckBoxPreference>
</PreferenceCategory>
  <PreferenceCategory
    android:title="Terminal">
    <EditTextPreference
      android:key="scrollback"
      android:title="@string/pref_scrollback_title"
      android:summary="@string/pref_scrollback_summary"
      android:defaultValue="140" />
    <EditTextPreference
      android:key="fontsize"
      android:title="@string/pref_fontsize_title"
      android:defaultValue="10" />
    <org.connectbot.util.EncodingPreference
      android:key="encoding"
      android:title="@string/pref_encoding_title"
      android:summary="@string/pref_encoding_summary" />
    <ListPreference
      android:key="rotation"
      android:title="@string/pref_rotation_title"
      android:summary="@string/pref_rotation_summary"
      android:entries="@array/list_rotation"
      android:entryValues="@array/list_rotation_values"
      android:defaultValue="Default" />
    <Preference
      android:key="color"
      android:title="@string/title_color_preference"
      android:summary="@string/summary_color_preference">
      <intent
        android:action="com.googlecode.android_scripting.PICK_TERMINAL_COLORS" />
    </Preference>
    <CheckBoxPreference
      android:key="fullscreen"
      android:title="@string/pref_fullscreen_title"
      android:summary="@string/pref_fullscreen_summary"
      android:defaultValue="false" />
    <ListPreference
      android:key="delkey"
      android:title="@string/pref_delkey_title"
      android:summary="@string/pref_delkey_summary"
      android:entries="@array/list_delkey"
      android:entryValues="@array/list_delkey_values" />
    <ListPreference
      android:key="keymode"
      android:title="@string/pref_keymode_title"
      android:summary="@string/pref_keymode_summary"
      android:entries="@array/list_keymode"
      android:entryValues="@array/list_keymode_values"
      android:defaultValue="Use right-side keys" />
    <ListPreference
      android:key="camera"
      android:title="@string/pref_camera_title"
      android:summary="@string/pref_camera_summary"
      android:entries="@array/list_camera"
      android:entryValues="@array/list_camera_values"
      android:defaultValue="Ctrl+A then Space" ></ListPreference>
    <CheckBoxPreference
      android:key="keepalive"
      android:title="@string/pref_keepalive_title"
      android:summary="@string/pref_keepalive_summary"
      android:defaultValue="true" />
    <CheckBoxPreference
      android:key="bumpyarrows"
      android:title="@string/pref_bumpyarrows_title"
      android:summary="@string/pref_bumpyarrows_summary"
      android:defaultValue="true" />
    <CheckBoxPreference
      android:key="hidekeyboard"
      android:title="@string/pref_hidekeyboard_title"
      android:summary="@string/pref_hidekeyboard_summary"
      android:defaultValue="false" />
  </PreferenceCategory>
  <PreferenceCategory
    android:title="Terminal bell">
    <CheckBoxPreference
      android:key="bell"
      android:title="@string/pref_bell_title"
      android:defaultValue="true" />
    <org.connectbot.util.VolumePreference
      android:key="bellVolume"
      android:title="@string/pref_bell_volume_title" />
    <CheckBoxPreference
      android:key="bellVibrate"
      android:title="@string/pref_bell_vibrate_title"
      android:defaultValue="true" />
  </PreferenceCategory>
  <PreferenceCategory
	  android:title="Trigger Behaviour">
	  <CheckBoxPreference 
	    android:key="hideServiceNotifications"
		android:title="@string/pref_hide_notifications" 
		android:defaultValue="false" />
	</PreferenceCategory>
</PreferenceScreen>