aboutsummaryrefslogtreecommitdiff
path: root/resources/settings
diff options
context:
space:
mode:
Diffstat (limited to 'resources/settings')
-rw-r--r--resources/settings/properties.xml26
-rw-r--r--resources/settings/settings.xml48
2 files changed, 68 insertions, 6 deletions
diff --git a/resources/settings/properties.xml b/resources/settings/properties.xml
index 9e2da95..e6b75a4 100644
--- a/resources/settings/properties.xml
+++ b/resources/settings/properties.xml
@@ -1,15 +1,29 @@
<!--
Author: cirakg & claude ai
- Summary: App properties for the Options group (README 10.2) with their defaults; the phone form follows in M7.
+ Summary: App properties (README 10.2): the Import form (M5) and the Options group with their defaults.
-->
<!--
- Values the watch reads through source/app/Options.mc. M4 defines only the
- Options group, so the app can read them (reading an undefined property
- stops the app with a system error that can't be caught). M7 adds the
- settings.xml form that edits them on the phone, and the other groups.
- List values are indexes; see Options.mc for their meaning.
+ Every property the watch reads must be defined here: reading an undefined
+ one stops the app with a system error that can't be caught.
+ * Import (M5): read by source/settings/SettingsProcessor.mc. impText1-8
+ are joined in order; the watch clears them and turns impApply off after
+ processing, and writes the result to impStatus.
+ * Options: read by source/app/Options.mc; list values are indexes. Their
+ phone form follows in M7 with the other groups.
-->
<properties>
+ <property id="impText1" type="string"></property>
+ <property id="impText2" type="string"></property>
+ <property id="impText3" type="string"></property>
+ <property id="impText4" type="string"></property>
+ <property id="impText5" type="string"></property>
+ <property id="impText6" type="string"></property>
+ <property id="impText7" type="string"></property>
+ <property id="impText8" type="string"></property>
+ <property id="impMode" type="number">0</property>
+ <property id="impLocked" type="boolean">false</property>
+ <property id="impApply" type="boolean">false</property>
+ <property id="impStatus" type="string"></property>
<property id="optAutoLock" type="number">3</property>
<property id="optWipe" type="boolean">false</property>
<property id="optTimeOffset" type="number">0</property>
diff --git a/resources/settings/settings.xml b/resources/settings/settings.xml
new file mode 100644
index 0000000..a8c3b66
--- /dev/null
+++ b/resources/settings/settings.xml
@@ -0,0 +1,48 @@
+<!--
+ Author: cirakg & claude ai
+ Summary: The app settings form in Garmin Connect: the Import group (M5); the other groups follow in M7.
+-->
+<settings>
+ <group id="import" title="@Strings.GroupImport" description="@Strings.GroupImportHelp">
+ <setting propertyKey="@Properties.impText1" title="@Strings.ImpText1" prompt="@Strings.ImpTextPrompt">
+ <settingConfig type="alphaNumeric" />
+ </setting>
+ <setting propertyKey="@Properties.impText2" title="@Strings.ImpText2" prompt="@Strings.ImpTextPrompt">
+ <settingConfig type="alphaNumeric" />
+ </setting>
+ <setting propertyKey="@Properties.impText3" title="@Strings.ImpText3" prompt="@Strings.ImpTextPrompt">
+ <settingConfig type="alphaNumeric" />
+ </setting>
+ <setting propertyKey="@Properties.impText4" title="@Strings.ImpText4" prompt="@Strings.ImpTextPrompt">
+ <settingConfig type="alphaNumeric" />
+ </setting>
+ <setting propertyKey="@Properties.impText5" title="@Strings.ImpText5" prompt="@Strings.ImpTextPrompt">
+ <settingConfig type="alphaNumeric" />
+ </setting>
+ <setting propertyKey="@Properties.impText6" title="@Strings.ImpText6" prompt="@Strings.ImpTextPrompt">
+ <settingConfig type="alphaNumeric" />
+ </setting>
+ <setting propertyKey="@Properties.impText7" title="@Strings.ImpText7" prompt="@Strings.ImpTextPrompt">
+ <settingConfig type="alphaNumeric" />
+ </setting>
+ <setting propertyKey="@Properties.impText8" title="@Strings.ImpText8" prompt="@Strings.ImpTextPrompt">
+ <settingConfig type="alphaNumeric" />
+ </setting>
+ <setting propertyKey="@Properties.impMode" title="@Strings.ImpMode">
+ <settingConfig type="list">
+ <listEntry value="0">@Strings.ImpModeAppend</listEntry>
+ <listEntry value="1">@Strings.ImpModeReplace</listEntry>
+ <listEntry value="2">@Strings.ImpModeCancel</listEntry>
+ </settingConfig>
+ </setting>
+ <setting propertyKey="@Properties.impLocked" title="@Strings.ImpLocked">
+ <settingConfig type="boolean" />
+ </setting>
+ <setting propertyKey="@Properties.impApply" title="@Strings.ImpApply">
+ <settingConfig type="boolean" />
+ </setting>
+ <setting propertyKey="@Properties.impStatus" title="@Strings.Status">
+ <settingConfig type="alphaNumeric" readonly="true" />
+ </setting>
+ </group>
+</settings>