aboutsummaryrefslogtreecommitdiff
path: root/addons/xbmc.python
diff options
context:
space:
mode:
authortamland <thomas.amland@gmail.com>2015-08-08 12:49:49 +0200
committertamland <thomas.amland@gmail.com>2015-08-08 12:49:49 +0200
commite32987a697f1cfbecfe2043ede0db4e0bf234d29 (patch)
tree1a20fd4aca95d8d9574ee266b46ba3bf0c710d21 /addons/xbmc.python
parent5f938e2b7b093379a35d0f51f616b38227e68d35 (diff)
parentb2dfa4ed125cdc8cd2ce602eadf99328ad99b302 (diff)
Merge pull request #7544 from tamland/context_menu_groups
[addons] extend context menu system
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>
-