FreeCalypso > hg > tcs211-l1-reconst
comparison gpf/cfg/emw_gui_def.xsd @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 <?xml version="1.0" encoding="ISO-8859-1"?> | |
2 <!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Steve Farmwald (private) --> | |
3 <!-- | |
4 This schema file defines the possible tags for use in defining a dynamic User Interface for the | |
5 EMW. | |
6 | |
7 Displayable items are of 2 types. Simple Displayables are entities that are displayed within the UI. | |
8 Items are those Displayables that may be updated by the backend. (They are a subset of Displayable). | |
9 | |
10 Vectors of Items may be defined using the Vector tag. A Vector defines a series of identical Items aligned | |
11 within a row or column. The items are differentiated by an index. | |
12 --> | |
13 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> | |
14 <xs:simpleType name="ColorSpec"> | |
15 <xs:annotation> | |
16 <xs:documentation>This defines the legal color specifications</xs:documentation> | |
17 </xs:annotation> | |
18 <xs:restriction base="xs:string"> | |
19 <xs:pattern value="white|black|red|green|blue|yellow|magenta|cyan|orange|redorange|purple|greenblue|[0-9]{1,3},[0-9]{1,3},[0-9]{1,3}|0x[0-9a-f]{2},0x[0-9a-f]{2},0x[0-9a-f]{2}"/> | |
20 </xs:restriction> | |
21 </xs:simpleType> | |
22 <xs:complexType name="PageTag"> | |
23 <xs:annotation> | |
24 <xs:documentation>This defines a page (tab).</xs:documentation> | |
25 </xs:annotation> | |
26 <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
27 <xs:element name="Label" type="LabelTag"/> | |
28 <xs:element name="TextItem" type="TextTag"/> | |
29 <xs:element name="LabelFrame" type="LabelFrameTag"/> | |
30 <xs:element name="CheckItem" type="CheckItemTag"/> | |
31 <xs:element name="Vector" type="VectorTag"/> | |
32 </xs:choice> | |
33 <xs:attribute name="title" type="xs:string" use="required"/> | |
34 </xs:complexType> | |
35 <xs:attributeGroup name="DisplayAttributes"> | |
36 <xs:annotation> | |
37 <xs:documentation>This defines a set of attributes common to all displayables.</xs:documentation> | |
38 </xs:annotation> | |
39 <xs:attribute name="row" type="xs:nonNegativeInteger" use="required"/> | |
40 <xs:attribute name="column" type="xs:nonNegativeInteger" use="required"/> | |
41 <xs:attribute name="row_span" type="xs:nonNegativeInteger" use="optional" default="1"/> | |
42 <xs:attribute name="column_span" type="xs:nonNegativeInteger" use="optional" default="1"/> | |
43 <xs:attribute name="tool_tip" type="xs:string" use="optional"/> | |
44 <xs:attribute name="text_alignment" use="optional" default="right"> | |
45 <xs:simpleType> | |
46 <xs:restriction base="xs:string"> | |
47 <xs:enumeration value="center"/> | |
48 <xs:enumeration value="left"/> | |
49 <xs:enumeration value="right"/> | |
50 </xs:restriction> | |
51 </xs:simpleType> | |
52 </xs:attribute> | |
53 <xs:attribute name="background_color" type="ColorSpec" use="optional"/> | |
54 <xs:attribute name="text_color" type="ColorSpec" use="optional" default="black"/> | |
55 <xs:attribute name="font_size" type="xs:nonNegativeInteger" use="optional" default="12"/> | |
56 <xs:attribute name="font_name" type="xs:string" use="optional" default="system"/> | |
57 <xs:attribute name="visible" type="xs:boolean" use="optional" default="true"/> | |
58 </xs:attributeGroup> | |
59 <xs:attributeGroup name="ItemAttributes"> | |
60 <xs:annotation> | |
61 <xs:documentation>this defines a set of attributes common to items.</xs:documentation> | |
62 </xs:annotation> | |
63 <xs:attribute name="item_id" type="xs:string" use="required"/> | |
64 <xs:attribute name="add_to_history" type="xs:boolean" use="optional" default="false"/> | |
65 <xs:attribute name="index" type="xs:nonNegativeInteger" use="optional"/> | |
66 <xs:attributeGroup ref="DisplayAttributes"/> | |
67 </xs:attributeGroup> | |
68 <xs:complexType name="LabelTag"> | |
69 <xs:annotation> | |
70 <xs:documentation>This defines a label.(This is not considered an item. ie, it is passive)</xs:documentation> | |
71 </xs:annotation> | |
72 <xs:attribute name="label_id" type="xs:string" use="required"/> | |
73 <xs:attributeGroup ref="DisplayAttributes"/> | |
74 </xs:complexType> | |
75 <xs:complexType name="LabelFrameTag"> | |
76 <xs:annotation> | |
77 <xs:documentation>This defines a labeled frame. (This is not considered an item. ie, it is passive)</xs:documentation> | |
78 </xs:annotation> | |
79 <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
80 <xs:element name="Label" type="LabelTag"/> | |
81 <xs:element name="TextItem" type="TextTag"/> | |
82 <xs:element name="CheckItem" type="CheckItemTag"/> | |
83 <xs:element name="LabelFrame" type="LabelFrameTag"/> | |
84 <xs:element name="Vector" type="VectorTag"/> | |
85 </xs:choice> | |
86 <xs:attribute name="label_id" type="xs:string" use="optional"/> | |
87 <xs:attributeGroup ref="DisplayAttributes"/> | |
88 </xs:complexType> | |
89 <xs:complexType name="CheckItemTag"> | |
90 <xs:annotation> | |
91 <xs:documentation>This defines a checkbox (boolean) item.</xs:documentation> | |
92 </xs:annotation> | |
93 <xs:attribute name="label_position" use="optional" default="left"> | |
94 <xs:simpleType> | |
95 <xs:restriction base="xs:string"> | |
96 <xs:enumeration value="left"/> | |
97 <xs:enumeration value="right"/> | |
98 </xs:restriction> | |
99 </xs:simpleType> | |
100 </xs:attribute> | |
101 <xs:attribute name="label_id" type="xs:string" use="required"/> | |
102 <xs:attributeGroup ref="ItemAttributes"/> | |
103 </xs:complexType> | |
104 <xs:simpleType name="VectorType"> | |
105 <xs:restriction base="xs:string"> | |
106 <xs:enumeration value="row"/> | |
107 <xs:enumeration value="column"/> | |
108 </xs:restriction> | |
109 </xs:simpleType> | |
110 <xs:complexType name="VectorTag"> | |
111 <xs:annotation> | |
112 <xs:documentation>This is a shorthand for defining a number of items in a row or column</xs:documentation> | |
113 </xs:annotation> | |
114 <xs:choice> | |
115 <xs:element name="TextItem" type="TextTag"/> | |
116 <xs:element name="CheckItem" type="CheckItemTag"/> | |
117 </xs:choice> | |
118 <xs:attribute name="type" type="VectorType" use="required"/> | |
119 <xs:attribute name="length" type="xs:positiveInteger" use="required"/> | |
120 <xs:attributeGroup ref="DisplayAttributes"/> | |
121 </xs:complexType> | |
122 <xs:complexType name="TextTag"> | |
123 <xs:annotation> | |
124 <xs:documentation>This defines a Text Box item</xs:documentation> | |
125 </xs:annotation> | |
126 <xs:sequence minOccurs="0" maxOccurs="unbounded"> | |
127 <xs:element name="Threshhold"> | |
128 <xs:complexType> | |
129 <xs:attribute name="expression" type="xs:string" use="required"/> | |
130 <xs:attribute name="action" type="xs:string" use="required"/> | |
131 <xs:attribute name="add_to_history" type="xs:boolean" use="optional" default="false"/> | |
132 </xs:complexType> | |
133 </xs:element> | |
134 </xs:sequence> | |
135 <xs:attribute name="width_in_chars" type="xs:nonNegativeInteger" use="optional" default="3"/> | |
136 <xs:attributeGroup ref="ItemAttributes"/> | |
137 </xs:complexType> | |
138 <!--The GUIDescription consists of a number of pages (tabs) containing data items--> | |
139 <xs:element name="GuiDefinition"> | |
140 <xs:annotation> | |
141 <xs:documentation> | |
142 This schema file defines the possible tags for use in defining a dynamic User Interface for the | |
143 EMW. | |
144 | |
145 Displayable items are of 2 types. Simple Displayables are entities that are displayed within the UI. | |
146 Items are those Displayables that may be updated by the backend. (They are a subset of Displayable). | |
147 | |
148 Vectors of Items may be defined using the Vector tag. A Vector defines a series of identical Items aligned | |
149 within a row or column. The items are differentiated by an index. | |
150 </xs:documentation> | |
151 </xs:annotation> | |
152 <xs:complexType> | |
153 <xs:sequence> | |
154 <xs:element name="Page" type="PageTag" minOccurs="0" maxOccurs="unbounded"/> | |
155 </xs:sequence> | |
156 </xs:complexType> | |
157 </xs:element> | |
158 </xs:schema> |