|
|
@@ -1,15 +1,15 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!-- Abstract Control Definitions for UI Layout Definition Format -->
|
|
|
<!-- Version: 1.3 - Updated with Gallery Control -->
|
|
|
-<patterns xmlns="ui-layout-patterns">
|
|
|
+<patterns xmlns="http://quadarax.com/ui-layout-patterns">
|
|
|
|
|
|
<!-- Base Abstract Control -->
|
|
|
- <control name="CommonControl" type="base" category="abstract">
|
|
|
+ <control name="CommonControl" type="composite" category="basic">
|
|
|
<description>Base abstract control defining common attributes for all UI controls</description>
|
|
|
<constraints>
|
|
|
<allowed-parents>any</allowed-parents>
|
|
|
<allowed-children>depends-on-implementation</allowed-children>
|
|
|
- <container>depends-on-implementation</container>
|
|
|
+ <container>true</container>
|
|
|
</constraints>
|
|
|
<attributes>
|
|
|
<attribute name="name" type="string" required="true" />
|
|
|
@@ -120,13 +120,13 @@
|
|
|
<event name="text-changed" />
|
|
|
</behavior>
|
|
|
<structure>
|
|
|
- <dropdown-items max-count="unbounded" />
|
|
|
+ <items max-count="unbounded" />
|
|
|
</structure>
|
|
|
</control>
|
|
|
|
|
|
<!-- ACTION CONTROLS -->
|
|
|
|
|
|
- <control name="Button" type="action" category="basic" inherits="CommonControl">
|
|
|
+ <control name="Button" type="button" category="basic" inherits="CommonControl">
|
|
|
<description>Clickable button control for user actions</description>
|
|
|
<constraints>
|
|
|
<allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField,ButtonBar</allowed-parents>
|
|
|
@@ -145,7 +145,7 @@
|
|
|
<attribute name="flat-style" type="bool" default="false" />
|
|
|
</attributes>
|
|
|
<behavior>
|
|
|
- <event name="click" required="true" />
|
|
|
+ <event name="click" />
|
|
|
<event name="mouse-down" />
|
|
|
<event name="mouse-up" />
|
|
|
</behavior>
|
|
|
@@ -224,7 +224,7 @@
|
|
|
<event name="menu-collapse" />
|
|
|
</behavior>
|
|
|
<structure>
|
|
|
- <menu-items max-count="unbounded" />
|
|
|
+ <menu-items max-depth="5" />
|
|
|
</structure>
|
|
|
</control>
|
|
|
|
|
|
@@ -267,8 +267,8 @@
|
|
|
<event name="virtual-items-selection-range-changed" />
|
|
|
</behavior>
|
|
|
<structure>
|
|
|
- <list-items max-count="unbounded" />
|
|
|
- <columns max-count="50" />
|
|
|
+ <items max-count="unbounded" />
|
|
|
+ <columns resizable="true" />
|
|
|
</structure>
|
|
|
</control>
|
|
|
|
|
|
@@ -327,8 +327,10 @@
|
|
|
<event name="template-applied" />
|
|
|
</behavior>
|
|
|
<structure>
|
|
|
- <gallery-items max-count="unbounded" />
|
|
|
- <box-template required="true" />
|
|
|
+ <items max-count="unbounded" />
|
|
|
+ <templates>
|
|
|
+ <template name="default" type="item" />
|
|
|
+ </templates>
|
|
|
</structure>
|
|
|
</control>
|
|
|
|
|
|
@@ -370,13 +372,13 @@
|
|
|
<event name="node-mouse-double-click" />
|
|
|
</behavior>
|
|
|
<structure>
|
|
|
- <tree-nodes max-count="unbounded" />
|
|
|
+ <items max-count="unbounded" />
|
|
|
</structure>
|
|
|
</control>
|
|
|
|
|
|
<!-- VISUAL CONTROLS -->
|
|
|
|
|
|
- <control name="Separator" type="visual" category="basic" inherits="CommonControl">
|
|
|
+ <control name="Separator" type="display" category="basic" inherits="CommonControl">
|
|
|
<description>Visual separator control for dividing interface sections</description>
|
|
|
<constraints>
|
|
|
<allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,Menu</allowed-parents>
|
|
|
@@ -433,6 +435,7 @@
|
|
|
<attribute name="tooltip" type="string" default="" />
|
|
|
<attribute name="tag" type="object" default="null" />
|
|
|
</attributes>
|
|
|
+ <template />
|
|
|
</structure>
|
|
|
|
|
|
<structure name="ListViewItem" type="data-item" category="basic">
|
|
|
@@ -450,9 +453,7 @@
|
|
|
<attribute name="use-item-style-for-sub-items" type="bool" default="true" />
|
|
|
<attribute name="tag" type="object" default="null" />
|
|
|
</attributes>
|
|
|
- <structure>
|
|
|
- <sub-items max-count="unbounded" />
|
|
|
- </structure>
|
|
|
+ <template />
|
|
|
</structure>
|
|
|
|
|
|
<!-- NEW: GALLERY STRUCTURES -->
|
|
|
@@ -475,10 +476,7 @@
|
|
|
<attribute name="box-data" type="object" default="null" />
|
|
|
<attribute name="template-override" type="string" default="" />
|
|
|
</attributes>
|
|
|
- <structure>
|
|
|
- <custom-properties max-count="unbounded" />
|
|
|
- <data-fields max-count="unbounded" />
|
|
|
- </structure>
|
|
|
+ <template />
|
|
|
</structure>
|
|
|
|
|
|
<structure name="BoxTemplate" type="template" category="basic">
|
|
|
@@ -494,9 +492,7 @@
|
|
|
<attribute name="padding" type="string" default="4,4,4,4" />
|
|
|
<attribute name="margin" type="string" default="2,2,2,2" />
|
|
|
</attributes>
|
|
|
- <structure>
|
|
|
- <template-elements max-count="unbounded" />
|
|
|
- </structure>
|
|
|
+ <template />
|
|
|
</structure>
|
|
|
|
|
|
<structure name="TemplateElement" type="template-item" category="basic">
|
|
|
@@ -519,6 +515,7 @@
|
|
|
<attribute name="image-size-mode" type="enum" values="normal,stretch,auto-size,center,zoom" default="normal" />
|
|
|
<attribute name="anchor" type="enum" values="none,left,right,top,bottom,all" default="none" />
|
|
|
</attributes>
|
|
|
+ <template />
|
|
|
</structure>
|
|
|
|
|
|
<structure name="CustomProperty" type="data-item" category="basic">
|
|
|
@@ -528,6 +525,7 @@
|
|
|
<attribute name="value" type="string" required="true" />
|
|
|
<attribute name="data-type" type="enum" values="text,number,date,boolean,image,object" default="text" />
|
|
|
</attributes>
|
|
|
+ <template />
|
|
|
</structure>
|
|
|
|
|
|
<structure name="DataField" type="data-item" category="basic">
|
|
|
@@ -538,6 +536,7 @@
|
|
|
<attribute name="display-name" type="string" default="" />
|
|
|
<attribute name="format" type="string" default="" />
|
|
|
</attributes>
|
|
|
+ <template />
|
|
|
</structure>
|
|
|
|
|
|
<!-- REMAINING EXISTING STRUCTURES -->
|
|
|
@@ -555,6 +554,7 @@
|
|
|
<attribute name="image-index" type="int" default="-1" />
|
|
|
<attribute name="tag" type="object" default="null" />
|
|
|
</attributes>
|
|
|
+ <template />
|
|
|
</structure>
|
|
|
|
|
|
<structure name="TreeNode" type="data-item" category="basic">
|
|
|
@@ -575,9 +575,7 @@
|
|
|
<attribute name="context-menu" type="string" default="" />
|
|
|
<attribute name="tag" type="object" default="null" />
|
|
|
</attributes>
|
|
|
- <structure>
|
|
|
- <child-nodes max-count="unbounded" />
|
|
|
- </structure>
|
|
|
+ <template />
|
|
|
</structure>
|
|
|
|
|
|
<structure name="MenuItem" type="data-item" category="basic">
|
|
|
@@ -598,9 +596,7 @@
|
|
|
<attribute name="separator" type="bool" default="false" />
|
|
|
<attribute name="tag" type="object" default="null" />
|
|
|
</attributes>
|
|
|
- <structure>
|
|
|
- <sub-items max-count="unbounded" />
|
|
|
- </structure>
|
|
|
+ <template />
|
|
|
</structure>
|
|
|
|
|
|
</patterns>
|