aboutsummaryrefslogtreecommitdiff
path: root/addons/xbmc.python
diff options
context:
space:
mode:
authorThomas Amland <thomas.amland@gmail.com>2015-06-21 21:42:55 +0200
committerThomas Amland <thomas.amland@gmail.com>2015-07-28 09:57:43 +0200
commit8121cad3e9220d0aca4635a2e85c3129fc111224 (patch)
tree05685359b49f53ebf9c969ef0b4a29eab5782480 /addons/xbmc.python
parentd648cd6f210480cf98ac4d80e2942b33c6678bf5 (diff)
[contextmenu] add support for sub-menus and multiple items
Diffstat (limited to 'addons/xbmc.python')
-rw-r--r--addons/xbmc.python/contextitem.xsd28
1 files changed, 16 insertions, 12 deletions
diff --git a/addons/xbmc.python/contextitem.xsd b/addons/xbmc.python/contextitem.xsd
index 3c7c671528..0baa6f999a 100644
--- a/addons/xbmc.python/contextitem.xsd
+++ b/addons/xbmc.python/contextitem.xsd
@@ -4,26 +4,30 @@
<xs:element name="extension">
<xs:complexType>
<xs:sequence>
- <xs:element name="item">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="label" type="xs:string"/>
- <xs:element name="visible" type="xs:string"/>
- <xs:element name="parent" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
+ <xs:element name="menu" type="menuType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="point" type="xs:string" use="required"/>
<xs:attribute name="id" type="simpleIdentifier"/>
- <xs:attribute name="name" type="xs:string"/>
- <xs:attribute name="library" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
+ <xs:complexType name="itemType">
+ <xs:sequence>
+ <xs:element name="label" type="xs:string"/>
+ <xs:element name="visible" type="xs:string"/>
+ </xs:sequence>
+ <xs:attribute name="library" type="xs:string" use="required"/>
+ </xs:complexType>
+ <xs:complexType name="menuType">
+ <xs:sequence>
+ <xs:element name="label" type="xs:string" minOccurs="0"/>
+ <xs:element name="item" type="itemType" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="menu" type="menuType" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:complexType>
<xs:simpleType name="simpleIdentifier">
<xs:restriction base="xs:string">
<xs:pattern value="[^.]+"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
-