tools/designer/data/ui3.xsd
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 <?xml version="1.0" encoding="utf-8" ?>
       
     2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
       
     3 	
       
     4 	<xs:element name="UI">
       
     5 		<xs:complexType>
       
     6 			<xs:choice maxOccurs="unbounded">
       
     7 				<xs:element name="actions">
       
     8 					<xs:complexType>
       
     9 						<xs:sequence maxOccurs="unbounded">
       
    10 							<xs:element name="action">
       
    11 								<xs:complexType>
       
    12 									<xs:sequence maxOccurs="unbounded">
       
    13 										<xs:element name="property" type="property" />
       
    14 									</xs:sequence>
       
    15 								</xs:complexType>
       
    16 							</xs:element>
       
    17 						</xs:sequence>
       
    18 					</xs:complexType>
       
    19 				</xs:element>
       
    20 				<xs:element name="author" type="xs:string" />
       
    21 				<xs:element name="class" type="xs:string" />
       
    22 				<xs:element name="comment" type="xs:string" />
       
    23 				<xs:element name="connections">
       
    24 					<xs:complexType>
       
    25 						<xs:sequence maxOccurs="unbounded">
       
    26 							<xs:element name="connection">
       
    27 								<xs:complexType>
       
    28 									<xs:sequence>
       
    29 										<xs:element name="sender" type="xs:string" />
       
    30 										<xs:element name="signal" type="xs:string" />
       
    31 										<xs:element name="receiver" type="xs:string" />
       
    32 										<xs:element name="slot" type="xs:string" />
       
    33 									</xs:sequence>
       
    34 								</xs:complexType>
       
    35 							</xs:element>
       
    36 						</xs:sequence>
       
    37 					</xs:complexType>
       
    38 				</xs:element>
       
    39 				<xs:element name="customWidgets" type="xs:string" />
       
    40 				<xs:element name="exportmacro" type="xs:string" />
       
    41 				<xs:element name="forwards">
       
    42 					<xs:complexType>
       
    43 						<xs:sequence maxOccurs="unbounded">
       
    44 							<xs:element name="forward" type="xs:string" />
       
    45 						</xs:sequence>
       
    46 					</xs:complexType>
       
    47 				</xs:element>
       
    48 				<xs:element name="images">
       
    49 					<xs:complexType>
       
    50 						<xs:sequence maxOccurs="unbounded">
       
    51 							<xs:element name="image">
       
    52 								<xs:complexType>
       
    53 									<xs:sequence>
       
    54 										<xs:element name="data">
       
    55 											<xs:complexType>
       
    56 												<xs:sequence />
       
    57 												<xs:attribute name="format" type="xs:string" />
       
    58 												<xs:attribute name="length" type="xs:integer" />
       
    59 											</xs:complexType>
       
    60 										</xs:element>
       
    61 									</xs:sequence>
       
    62 									<xs:attribute name="name" type="xs:string" />
       
    63 								</xs:complexType>
       
    64 							</xs:element>
       
    65 						</xs:sequence>
       
    66 					</xs:complexType>
       
    67 				</xs:element>
       
    68 				<xs:element name="includes">
       
    69 					<xs:complexType>						
       
    70 						<xs:sequence maxOccurs="unbounded">
       
    71 							<xs:element name="include">
       
    72 								<xs:complexType>
       
    73 									<xs:simpleContent>
       
    74 										<xs:extension base="xs:string">
       
    75 											<xs:attribute name="location" type="xs:string" />
       
    76 											<xs:attribute name="impldecl" type="xs:string" />
       
    77 										</xs:extension>
       
    78 									</xs:simpleContent>
       
    79 								</xs:complexType>
       
    80 							</xs:element>									
       
    81 						</xs:sequence>
       
    82 					</xs:complexType>
       
    83 				</xs:element>
       
    84 				<xs:element name="layoutDefaults">
       
    85 					<xs:complexType>
       
    86 						<xs:sequence />
       
    87 						<xs:attribute name="spacing" type="xs:integer" />
       
    88 						<xs:attribute name="margin" type="xs:integer" />
       
    89 					</xs:complexType>
       
    90 				</xs:element>
       
    91 				<xs:element name="layoutFunctions">
       
    92 					<xs:complexType>
       
    93 						<xs:sequence />
       
    94 						<xs:attribute name="spacing" type="xs:string" />
       
    95 						<xs:attribute name="margin" type="xs:string" />
       
    96 					</xs:complexType>
       
    97 				</xs:element>
       
    98 				<xs:element name="menubar">
       
    99 					<xs:complexType>
       
   100 						<xs:sequence>
       
   101 							<xs:choice maxOccurs="unbounded">
       
   102 								<xs:element name="property" type="property" />
       
   103 								<xs:element name="item">
       
   104 									<xs:complexType>
       
   105 										<xs:sequence>
       
   106 											<xs:choice maxOccurs="unbounded">
       
   107 												<xs:element name="action">
       
   108 													<xs:complexType>
       
   109 														<xs:sequence />
       
   110 														<xs:attribute name="name" type="xs:string" />
       
   111 													</xs:complexType>
       
   112 												</xs:element>
       
   113 												<xs:element name="item">
       
   114 												</xs:element>
       
   115 												<xs:element name="separator" type="xs:string" />
       
   116 											</xs:choice>
       
   117 										</xs:sequence>
       
   118 										<xs:attribute name="name" type="xs:string" />
       
   119 										<xs:attribute name="text" type="xs:string" />
       
   120 									</xs:complexType>
       
   121 								</xs:element>
       
   122 							</xs:choice>
       
   123 							<xs:element name="class" type="xs:string" />
       
   124 						</xs:sequence>
       
   125 					</xs:complexType>
       
   126 				</xs:element>
       
   127 				<xs:element name="pixmapfunction" type="xs:string" />
       
   128 				<xs:element name="signals">
       
   129 					<xs:complexType>
       
   130 						<xs:sequence maxOccurs="unbounded">
       
   131 							<xs:element name="signal" type="xs:string" />
       
   132 						</xs:sequence>
       
   133 					</xs:complexType>
       
   134 				</xs:element>
       
   135 				<xs:element name="slots">
       
   136 					<xs:complexType>						
       
   137 						<xs:sequence maxOccurs="unbounded">
       
   138 							<xs:element name="slot">
       
   139 								<xs:complexType>
       
   140 									<xs:simpleContent>
       
   141 										<xs:extension base="xs:string">
       
   142 											<xs:attribute name="access" type="xs:string" />
       
   143 											<xs:attribute name="specifier" type="xs:string" />
       
   144 											<xs:attribute name="language" type="xs:string" />
       
   145 											<xs:attribute name="returnType" type="xs:string" />
       
   146 										</xs:extension>
       
   147 									</xs:simpleContent>
       
   148 								</xs:complexType>
       
   149 							</xs:element>
       
   150 						</xs:sequence>
       
   151 					</xs:complexType>
       
   152 				</xs:element>
       
   153 				<xs:element name="tabstops">
       
   154 					<xs:complexType>
       
   155 						<xs:sequence maxOccurs="unbounded">
       
   156 							<xs:element name="tabstop" type="xs:string" />
       
   157 						</xs:sequence>
       
   158 					</xs:complexType>
       
   159 				</xs:element>
       
   160 				<xs:element name="toolbars">
       
   161 					<xs:complexType>
       
   162 						<xs:sequence maxOccurs="unbounded">
       
   163 							<xs:element name="toolbar">
       
   164 								<xs:complexType>
       
   165 									<xs:choice maxOccurs="unbounded">
       
   166 										<xs:element name="property" type="property" />
       
   167 										<xs:element name="action">
       
   168 											<xs:complexType>
       
   169 												<xs:sequence />
       
   170 												<xs:attribute name="name" type="xs:string" />
       
   171 											</xs:complexType>
       
   172 										</xs:element>
       
   173 										<xs:element name="separator" type="xs:string" />
       
   174 									</xs:choice>
       
   175 									<xs:attribute name="dock" type="xs:integer" />
       
   176 								</xs:complexType>
       
   177 							</xs:element>
       
   178 						</xs:sequence>
       
   179 					</xs:complexType>
       
   180 				</xs:element>
       
   181 				<xs:element name="variables">
       
   182 					<xs:complexType>
       
   183 						<xs:sequence>
       
   184 							<xs:element name="variable">
       
   185 								<xs:complexType>
       
   186 									<xs:sequence />
       
   187 									<xs:attribute name="access" type="xs:string" />
       
   188 								</xs:complexType>
       
   189 							</xs:element>
       
   190 						</xs:sequence>
       
   191 					</xs:complexType>
       
   192 				</xs:element>
       
   193 				<xs:element name="widget" type="widget" />
       
   194 				<xs:element name="include" type="xs:string" />
       
   195 				<xs:element name="variable" type="xs:string" />
       
   196 			</xs:choice>
       
   197 			<xs:attribute name="version" type="xs:string" />
       
   198 			<xs:attribute name="stdsetdef" type="xs:integer" />
       
   199 		</xs:complexType>
       
   200 	</xs:element>
       
   201 
       
   202 	<xs:complexType name="layout">
       
   203 		<xs:choice maxOccurs="unbounded">
       
   204 			<xs:element name="property" type="property" />
       
   205 			<xs:element name="widget" type="widget" />
       
   206 			<xs:element name="spacer" type="spacer" />
       
   207 		</xs:choice>
       
   208 	</xs:complexType>
       
   209 	
       
   210 	<xs:complexType name="widget">
       
   211 			<xs:choice maxOccurs="unbounded">
       
   212 				<xs:element name="class" type="xs:string" />
       
   213 				<xs:element name="property" type="property" />
       
   214 				<xs:element name="hbox" type="layout" />
       
   215 				<xs:element name="vbox" type="layout" />
       
   216 				<xs:element name="grid" type="layout" />
       
   217 				<xs:element name="widget" type="widget" />
       
   218 			</xs:choice>
       
   219 		<xs:attribute name="class" type="xs:string" />
       
   220 		<xs:attribute name="row" type="xs:integer" />            <!-- ### remove me -->
       
   221 		<xs:attribute name="column" type="xs:integer" />         <!-- ### remove me -->
       
   222 	</xs:complexType>
       
   223 		
       
   224 	<xs:complexType name="spacer">
       
   225 		<xs:sequence maxOccurs="unbounded">
       
   226 			<xs:element name="property" type="property" />
       
   227 		</xs:sequence>
       
   228 		<xs:attribute name="row" type="xs:integer" />            <!-- ### remove me -->
       
   229 		<xs:attribute name="column" type="xs:integer" />         <!-- ### remove me -->
       
   230 		<xs:attribute name="rowspan" type="xs:integer" />        <!-- ### remove me -->
       
   231 		<xs:attribute name="colspan" type="xs:integer" />        <!-- ### remove me -->
       
   232 	</xs:complexType>
       
   233 
       
   234 	<xs:complexType name="color">
       
   235 		<xs:sequence>
       
   236 			<xs:element name="red" type="xs:integer" />
       
   237 			<xs:element name="green" type="xs:integer" />
       
   238 			<xs:element name="blue" type="xs:integer" />
       
   239 		</xs:sequence>
       
   240 	</xs:complexType>
       
   241 	
       
   242 	<xs:complexType name="colorGroup">
       
   243 		<xs:choice maxOccurs="unbounded">
       
   244 			<xs:element name="color" type="color" />
       
   245 			<xs:element name="pixmap" type="xs:string" />
       
   246 		</xs:choice>
       
   247 	</xs:complexType>
       
   248 
       
   249 	<xs:complexType name="palette">
       
   250 		<xs:sequence>
       
   251 			<xs:element name="active" type="colorGroup" />
       
   252 			<xs:element name="inactive" type="colorGroup" />
       
   253 			<xs:element name="disabled" type="colorGroup" />
       
   254 		</xs:sequence>
       
   255 	</xs:complexType>
       
   256 
       
   257 	<xs:complexType name="font">
       
   258 		<xs:sequence>
       
   259 			<xs:element name="family" type="xs:string" />
       
   260 			<xs:element name="pointSize" type="xs:integer" />
       
   261 			<xs:element name="weight" type="xs:integer" />
       
   262 			<xs:element name="italic" type="xs:boolean" />
       
   263 			<xs:element name="bold" type="xs:boolean" />
       
   264 			<xs:element name="underline" type="xs:boolean" />
       
   265 			<xs:element name="strikeout" type="xs:boolean" />
       
   266 		</xs:sequence>
       
   267 	</xs:complexType>
       
   268 
       
   269 	<xs:complexType name="point">
       
   270 		<xs:sequence>
       
   271 			<xs:element name="x" type="xs:integer" />
       
   272 			<xs:element name="y" type="xs:integer" />
       
   273 		</xs:sequence>
       
   274 	</xs:complexType>
       
   275 	
       
   276 	<xs:complexType name="rect">
       
   277 		<xs:sequence>
       
   278 			<xs:element name="x" type="xs:integer" />
       
   279 			<xs:element name="y" type="xs:integer" />
       
   280 			<xs:element name="width" type="xs:integer" />
       
   281 			<xs:element name="height" type="xs:integer" />
       
   282 		</xs:sequence>
       
   283 	</xs:complexType>
       
   284 
       
   285 	<xs:complexType name="sizePolicy">
       
   286 		<xs:sequence>
       
   287 			<xs:element name="hsizetype" type="xs:integer" />
       
   288 			<xs:element name="vsizetype" type="xs:integer" />
       
   289 			<xs:element name="horstretch" type="xs:integer" />
       
   290 			<xs:element name="verstretch" type="xs:integer" />
       
   291 		</xs:sequence>
       
   292 	</xs:complexType>
       
   293 
       
   294 	<xs:complexType name="size">
       
   295 		<xs:sequence>
       
   296 			<xs:element name="width" type="xs:integer" />
       
   297 			<xs:element name="height" type="xs:integer" />
       
   298 		</xs:sequence>
       
   299 	</xs:complexType>
       
   300 	
       
   301 	<xs:complexType name="date">
       
   302 		<xs:sequence>
       
   303 			<xs:element name="year" type="xs:integer" />
       
   304 			<xs:element name="month" type="xs:integer" />
       
   305 			<xs:element name="day" type="xs:integer" />
       
   306 		</xs:sequence>
       
   307 	</xs:complexType>
       
   308 
       
   309 	<xs:complexType name="time">
       
   310 		<xs:sequence>
       
   311 			<xs:element name="hour" type="xs:integer" />
       
   312 			<xs:element name="minute" type="xs:integer" />
       
   313 			<xs:element name="second" type="xs:integer" />
       
   314 		</xs:sequence>
       
   315 	</xs:complexType>
       
   316 	
       
   317 	<xs:complexType name="dateTime">
       
   318 		<xs:sequence>
       
   319 			<xs:element name="hour" type="xs:integer" />
       
   320 			<xs:element name="minute" type="xs:integer" />
       
   321 			<xs:element name="second" type="xs:integer" />
       
   322 			<xs:element name="year" type="xs:integer" />
       
   323 			<xs:element name="month" type="xs:integer" />
       
   324 			<xs:element name="day" type="xs:integer" />
       
   325 		</xs:sequence>
       
   326 	</xs:complexType>
       
   327 
       
   328 	<xs:complexType name="property">
       
   329 		<xs:choice>
       
   330 			<xs:element name="bool" type="xs:boolean" />
       
   331 			<xs:element name="color" type="color" />
       
   332 			<xs:element name="cstring" type="xs:string" />
       
   333 			<xs:element name="cursor" type="xs:integer" />
       
   334 			<xs:element name="enum" type="xs:string" />
       
   335 			<xs:element name="font" type ="font" />
       
   336 			<xs:element name="iconset" type="xs:string" />
       
   337 			<xs:element name="palette" type="palette" />
       
   338 			<xs:element name="point" type="point" />
       
   339 			<xs:element name="rect" type="rect" />
       
   340 			<xs:element name="set" type="xs:string" />
       
   341 			<xs:element name="sizePolicy" type="sizePolicy" />
       
   342 			<xs:element name="size" type="size" />
       
   343 			<xs:element name="string" type="xs:string" />
       
   344 			<xs:element name="number" type="xs:integer" />
       
   345 			<xs:element name="date" type="date" />
       
   346 			<xs:element name="time" type="time" />
       
   347 			<xs:element name="dateTime" type="dateTime" />
       
   348 		</xs:choice>
       
   349 		<xs:attribute name="name" type="xs:string" />
       
   350 		<xs:attribute name="stdset" type="xs:integer" />
       
   351 	</xs:complexType>
       
   352 	
       
   353 </xs:schema>