Bläddra i källkod

add Seprator, PopupPanel to abstract-controls.xml

Dalibor Votruba 11 månader sedan
förälder
incheckning
ad8bf5a8d3
1 ändrade filer med 39 tillägg och 0 borttagningar
  1. 39 0
      UILayoutDefinitionFormat/Definitions/abstract-controls.xml

+ 39 - 0
UILayoutDefinitionFormat/Definitions/abstract-controls.xml

@@ -98,6 +98,23 @@
     </structure>
     </structure>
   </control>
   </control>
   
   
+  <!-- Separator Control -->
+  <control name="Separator" type="display" category="basic" inherits="CommonControl">
+      <description>Visual separator line for organizing interface elements</description>
+      <constraints>
+        <allowed-parents>Panel,ToolBar,StatusBar</allowed-parents>
+        <allowed-children>none</allowed-children>
+        <container>false</container>
+      </constraints>
+      <attributes>
+        <attribute name="orientation" type="enum" values="horizontal,vertical" default="horizontal" />
+        <attribute name="thickness" type="int" default="1" min="1" max="5" />
+        <attribute name="color" type="color" default="#C0C0C0" />
+        <attribute name="width" type="int" min="1" max="500" />
+        <attribute name="height" type="int" min="1" max="500" />
+      </attributes>
+    </control>
+  
   <!-- ListBox Control -->
   <!-- ListBox Control -->
   <control name="ListBox" type="input" category="basic" inherits="CommonControl">
   <control name="ListBox" type="input" category="basic" inherits="CommonControl">
     <description>List selection control with single or multiple selection</description>
     <description>List selection control with single or multiple selection</description>
@@ -426,4 +443,26 @@
     </structure>
     </structure>
   </control>
   </control>
   
   
+   <!-- PopupPanel Control - specialized panel that can be shown/hidden -->
+    <control name="PopupPanel" type="container" category="layout" inherits="Panel">
+      <description>Panel that can be dynamically shown or hidden, typically overlaying other content</description>
+      <constraints>
+        <allowed-parents>Panel,window</allowed-parents>
+        <allowed-children>any-control</allowed-children>
+        <container>true</container>
+        <max-children>unlimited</max-children>
+      </constraints>
+      <attributes>
+        <attribute name="popup-visible" type="bool" default="false" />
+        <attribute name="auto-hide" type="bool" default="true" />
+        <attribute name="modal" type="bool" default="false" />
+        <attribute name="position" type="enum" values="center,top-left,top-right,bottom-left,bottom-right" default="center" />
+        <attribute name="animation" type="enum" values="none,fade,slide" default="fade" />
+      </attributes>
+      <behavior>
+        <event name="popup-show" />
+        <event name="popup-hide" />
+      </behavior>
+    </control>
+  
 </patterns>
 </patterns>