14 changed files with 304 additions and 14 deletions
@ -0,0 +1,5 @@ |
|||
<RCC> |
|||
<qresource prefix="/etc"> |
|||
<file>settings.xml</file> |
|||
</qresource> |
|||
</RCC> |
@ -0,0 +1,89 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<SettingsConfig allowSearch="true" allowRestore="true"> |
|||
<!--Include optional="true">/absolute/include/path.xml</Include--> |
|||
<Category> |
|||
<Section> |
|||
<Group> |
|||
<Entry key="prop1" |
|||
type="bool" |
|||
title="&Check me" |
|||
tooltip="I am a checkbox!" |
|||
default="false"> |
|||
<SearchKey>property</SearchKey> |
|||
<SearchKey>bool</SearchKey> |
|||
<Property key="text" type="string">Please do check me</Property> |
|||
</Entry> |
|||
<Entry key="prop2" |
|||
type="string" |
|||
title="Enter a &name"/> |
|||
</Group> |
|||
<Group title="Sub-Group" tooltip="This is a tooltip"> |
|||
<Entry key="prop3" |
|||
type="action" |
|||
title="Open &system settings"> |
|||
<Property key="name" type="string">baum</Property> |
|||
<Property key="value" type="double">4.2</Property> |
|||
</Entry> |
|||
<Entry key="prop4" |
|||
type="selection" |
|||
title="Select a &mode" |
|||
default="Variant B"> |
|||
<Property key="listElements" type="list"> |
|||
<Element type="string">Variant A</Element> |
|||
<Element type="string">Variant B</Element> |
|||
<Element type="string">Variant C</Element> |
|||
</Property> |
|||
</Entry> |
|||
</Group> |
|||
</Section> |
|||
<Section title="Another Section" icon="" tooltip="This is another section"> |
|||
<Entry key="prop5" |
|||
type="double" |
|||
title="Enter a &value" |
|||
tooltip="The value must be between 0 and 1"> |
|||
<Property key="minimum" type="double">0.0</Property> |
|||
<Property key="maximum" type="double">1.0</Property> |
|||
</Entry> |
|||
<Entry key="prop6" |
|||
type="selection" |
|||
title="Select a &mode" |
|||
default="10"> |
|||
<Property key="listElements" type="list"> |
|||
<Element type="object"> |
|||
<Property key="name" type="string">Value A</Property> |
|||
<Property key="value" type="int">1</property> |
|||
</Element> |
|||
<Element type="object"> |
|||
<Property key="name" type="string">Value B</Property> |
|||
<Property key="value" type="int">2</property> |
|||
</Element> |
|||
<Element type="object"> |
|||
<Property key="name" type="string">Value C</Property> |
|||
<Property key="value" type="int">4</property> |
|||
</Element> |
|||
<Element type="object"> |
|||
<Property key="name" type="string">Value A+B</Property> |
|||
<Property key="value" type="int">3</property> |
|||
</Element> |
|||
<Element type="object"> |
|||
<Property key="name" type="string">Value A+C</Property> |
|||
<Property key="value" type="int">5</property> |
|||
</Element> |
|||
<Element type="object"> |
|||
<Property key="name" type="string">Value B+C</Property> |
|||
<Property key="value" type="int">6</property> |
|||
</Element> |
|||
<Element type="object"> |
|||
<Property key="name" type="string">Value A+B+C</Property> |
|||
<Property key="value" type="int">7</property> |
|||
</Element> |
|||
</Property> |
|||
</Entry> |
|||
</Section> |
|||
</Category> |
|||
<Category title="Another main category"> |
|||
<Entry key="prop7" |
|||
type="int" |
|||
title="Enter a &number"/> |
|||
</Category> |
|||
</SettingsConfig> |
@ -0,0 +1,108 @@ |
|||
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
|||
<xs:element name="SettingsConfig" type="SettingsConfigType"/> |
|||
<xs:complexType name="IncludeType"> |
|||
<xs:simpleContent> |
|||
<xs:extension base="xs:string"> |
|||
<xs:attribute type="xs:boolean" name="optional" use="optional"/> |
|||
</xs:extension> |
|||
</xs:simpleContent> |
|||
</xs:complexType> |
|||
<xs:complexType name="PropertyType" mixed="true"> |
|||
<xs:all> |
|||
<xs:element type="PropertyType" name="Property" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="ElementType" name="Element" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:all> |
|||
<xs:attribute type="xs:string" name="key" use="required"/> |
|||
<xs:attribute type="xs:string" name="type" use="required"/> |
|||
</xs:complexType> |
|||
<xs:complexType name="ElementType" mixed="true"> |
|||
<xs:all> |
|||
<xs:element type="ElementType" name="Element" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="PropertyType" name="Property" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:all> |
|||
<xs:attribute type="xs:string" name="type" use="required"/> |
|||
</xs:complexType> |
|||
<xs:complexType name="EntryType" mixed="true"> |
|||
<xs:all> |
|||
<xs:element type="xs:string" name="SearchKey" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="PropertyType" name="Property" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:all> |
|||
<xs:attribute type="xs:string" name="key" use="required"/> |
|||
<xs:attribute type="xs:string" name="type" use="required"/> |
|||
<xs:attribute type="xs:string" name="title" use="required"/> |
|||
<xs:attribute type="xs:string" name="tooltip" use="optional"/> |
|||
<xs:attribute type="xs:string" name="default" use="optional"/> |
|||
<xs:attribute type="xs:string" name="frontends" use="optional"/> |
|||
<xs:attribute type="xs:string" name="selectors" use="optional"/> |
|||
</xs:complexType> |
|||
<xs:complexType name="GroupType" mixed="true"> |
|||
<xs:all> |
|||
<xs:element type="IncludeType" name="Include" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="EntryType" name="Entry" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:all> |
|||
<xs:attribute type="xs:string" name="title" use="required"/> |
|||
<xs:attribute type="xs:string" name="tooltip" use="optional"/> |
|||
<xs:attribute type="xs:string" name="frontends" use="optional"/> |
|||
<xs:attribute type="xs:string" name="selectors" use="optional"/> |
|||
</xs:complexType> |
|||
<xs:complexType name="SectionType" mixed="true"> |
|||
<xs:choice> |
|||
<xs:choice maxOccurs="unbounded"> |
|||
<xs:element type="IncludeType" name="Include" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="GroupType" name="Group" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:choice> |
|||
<xs:choice maxOccurs="unbounded"> |
|||
<xs:element type="IncludeType" name="Include" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="EntryType" name="Entry" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:choice> |
|||
</xs:choice> |
|||
<xs:attribute type="xs:string" name="title" use="required"/> |
|||
<xs:attribute type="xs:string" name="icon" use="optional"/> |
|||
<xs:attribute type="xs:string" name="tooltip" use="optional"/> |
|||
<xs:attribute type="xs:string" name="frontends" use="optional"/> |
|||
<xs:attribute type="xs:string" name="selectors" use="optional"/> |
|||
</xs:complexType> |
|||
<xs:complexType name="CategoryType" mixed="true"> |
|||
<xs:choice> |
|||
<xs:choice maxOccurs="unbounded"> |
|||
<xs:element type="IncludeType" name="Include" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="SectionType" name="Section" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:choice> |
|||
<xs:choice maxOccurs="unbounded"> |
|||
<xs:element type="IncludeType" name="Include" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="GroupType" name="Group" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:choice> |
|||
<xs:choice maxOccurs="unbounded"> |
|||
<xs:element type="IncludeType" name="Include" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="EntryType" name="Entry" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:choice> |
|||
</xs:choice> |
|||
<xs:attribute type="xs:string" name="title" use="required"/> |
|||
<xs:attribute type="xs:string" name="icon" use="optional"/> |
|||
<xs:attribute type="xs:string" name="tooltip" use="optional"/> |
|||
<xs:attribute type="xs:string" name="frontends" use="optional"/> |
|||
<xs:attribute type="xs:string" name="selectors" use="optional"/> |
|||
</xs:complexType> |
|||
<xs:complexType name="SettingsConfigType"> |
|||
<xs:choice> |
|||
<xs:choice maxOccurs="unbounded"> |
|||
<xs:element type="IncludeType" name="Include" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="CategoryType" name="Category" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:choice> |
|||
<xs:choice maxOccurs="unbounded"> |
|||
<xs:element type="IncludeType" name="Include" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="SectionType" name="Section" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:choice> |
|||
<xs:choice maxOccurs="unbounded"> |
|||
<xs:element type="IncludeType" name="Include" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="GroupType" name="Group" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:choice> |
|||
<xs:choice maxOccurs="unbounded"> |
|||
<xs:element type="IncludeType" name="Include" maxOccurs="unbounded" minOccurs="0"/> |
|||
<xs:element type="EntryType" name="Entry" maxOccurs="unbounded" minOccurs="0"/> |
|||
</xs:choice> |
|||
</xs:choice> |
|||
<xs:attribute type="xs:boolean" name="allowSearch" use="optional"/> |
|||
<xs:attribute type="xs:boolean" name="allowRestore" use="optional"/> |
|||
</xs:complexType> |
|||
</xs:schema> |
@ -0,0 +1,59 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<SettingsConfig allowSearch="true" allowRestore="true"> |
|||
<Include optional="true">/absolute/include/path.xml</Include> |
|||
<Include optional="false">../relative/include/path.xml</Include> |
|||
<Category title="title" |
|||
icon="file:///icon/path.svg" |
|||
tooltip="useful tip" |
|||
frontends="widgets|quick" |
|||
selectors="ios|android&xhdpi"> |
|||
<Include optional="true">/absolute/include/path.xml</Include> |
|||
<Include>../relative/include/path.xml</Include> |
|||
<Section title="another title" |
|||
icon="https://example.org/icon/path.svg" |
|||
tooltip="another tip" |
|||
frontends="widgets" |
|||
selectors="android&xhdpi"> |
|||
<Include optional="true">/absolute/include/path.xml</Include> |
|||
<Include>../relative/include/path.xml</Include> |
|||
<Group title="group title" |
|||
tooltip="hovering tool tip" |
|||
frontends="quick" |
|||
selectors="ios|android"> |
|||
<Include optional="true">/absolute/include/path.xml</Include> |
|||
<Include>../relative/include/path.xml</Include> |
|||
<Entry key="property" |
|||
type="bool" |
|||
title="&Check me" |
|||
tooltip="I am a checkbox!" |
|||
default="false" |
|||
frontends="widgets|quick" |
|||
selectors="ios|android&xhdpi"> |
|||
<SearchKey>prop</SearchKey> |
|||
<SearchKey>attrib</SearchKey> |
|||
<SearchKey>sample</SearchKey> |
|||
<Property key="text" type="string">Please do check me</Property> |
|||
<Property key="size" type="object"> |
|||
<Property key="width" type="int">42</Property> |
|||
<Property key="height" type="int">42</Property> |
|||
</Property> |
|||
<Property key="things" type="list"> |
|||
<Element type="int">42</Element> |
|||
<Element type="list"> |
|||
<Element type="string">elem 1</Element> |
|||
<Element type="string">elem 2</Element> |
|||
</Element> |
|||
<Element type="object"> |
|||
<Property key="name" type="string">baum</Property> |
|||
<Property key="number" type="int">42</Property> |
|||
</Element> |
|||
</Property> |
|||
</Entry> |
|||
<Entry key="req" type="req" title="req" /> |
|||
</Group> |
|||
<Group/> |
|||
</Section> |
|||
<Section/> |
|||
</Category> |
|||
<Category/> |
|||
</SettingsConfig> |
Loading…
Reference in new issue