test-complex.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui-layout-def xmlns="http://quadarax.com/ui-layout-definition"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. version="1.6" schema-version="1.6" target-platform="winforms">
  5. <validation-rules>
  6. <rule target="TextBox" condition="required" message="Field is required"/>
  7. </validation-rules>
  8. <patterns>
  9. <pattern-include src="abstract-controls.xml" important="true"/>
  10. <pattern-include src="winform-controls.xml" important="true" platform="winforms"/>
  11. <wireframe name="master-layout" type="base-layout" platform="winforms">
  12. <template>
  13. <Panel name="ctrl_001" x="0" y="0" width="800" height="600">
  14. <Panel name="ctrl_002" x="0" y="0" width="800" height="30"
  15. slot-name="menu-area" slot-allowed-controls="any"/>
  16. <Panel name="ctrl_003" x="0" y="30" width="800" height="26"
  17. slot-name="toolbar-area" slot-allowed-controls="any"/>
  18. <Panel name="ctrl_004" x="0" y="56" width="200" height="520"
  19. slot-name="nav-tree" slot-allowed-controls="any"/>
  20. <Panel name="ctrl_005" x="200" y="56" width="600" height="520"
  21. slot-name="work-area" slot-allowed-controls="any" slot-required="true"/>
  22. <Panel name="ctrl_006" x="0" y="576" width="800" height="24"
  23. slot-name="status-bar" slot-allowed-controls="any"/>
  24. </Panel>
  25. </template>
  26. </wireframe>
  27. <wireframe name="form-layout" type="form-layout" platform="winforms">
  28. <template>
  29. <Panel name="ctrl_010" x="0" y="0" width="500" height="400">
  30. <Panel name="ctrl_011" x="8" y="8" width="484" height="344"
  31. slot-name="form-body" slot-allowed-controls="any" slot-required="true"/>
  32. <Panel name="ctrl_012" x="8" y="360" width="484" height="32"
  33. slot-name="form-actions" slot-allowed-controls="any"/>
  34. </Panel>
  35. </template>
  36. </wireframe>
  37. <wireframe name="dialog-layout" type="dialog-layout" platform="winforms">
  38. <template>
  39. <Panel name="ctrl_020" x="0" y="0" width="350" height="200">
  40. <Panel name="ctrl_021" x="16" y="16" width="318" height="136"
  41. slot-name="dialog-content" slot-allowed-controls="any" slot-required="true"/>
  42. <Panel name="ctrl_022" x="16" y="160" width="318" height="32"
  43. slot-name="dialog-actions" slot-allowed-controls="any"/>
  44. </Panel>
  45. </template>
  46. </wireframe>
  47. </patterns>
  48. <window name="MainWindow" title="Product Manager" target-platform="winforms" wireframe="master-layout">
  49. <slot-overrides>
  50. <slot name="menu-area">
  51. <Label name="ctrl_100" x="8" y="4" width="40" height="22" text="File"/>
  52. <Label name="ctrl_101" x="56" y="4" width="40" height="22" text="Edit"/>
  53. <Label name="ctrl_102" x="104" y="4" width="40" height="22" text="View"/>
  54. <Label name="ctrl_103" x="152" y="4" width="40" height="22" text="Help"/>
  55. </slot>
  56. <slot name="toolbar-area">
  57. <Button name="ctrl_110" x="4" y="1" width="60" height="24" text="New"/>
  58. <Button name="ctrl_111" x="68" y="1" width="60" height="24" text="Open"/>
  59. <Button name="ctrl_112" x="132" y="1" width="60" height="24" text="Save"/>
  60. <Button name="ctrl_113" x="200" y="1" width="60" height="24" text="Delete"/>
  61. <Button name="ctrl_114" x="268" y="1" width="60" height="24" text="Print"/>
  62. </slot>
  63. <slot name="nav-tree">
  64. <TreeView name="ctrl_120" x="4" y="4" width="192" height="512"/>
  65. </slot>
  66. <slot name="work-area">
  67. <TabControl name="ctrl_130" x="4" y="4" width="592" height="512">
  68. <Panel name="ctrl_131" x="4" y="28" width="584" height="480">
  69. <Label name="ctrl_140" x="8" y="8" width="80" height="20" text="Name:"/>
  70. <TextBox name="ctrl_141" x="96" y="8" width="200" height="24"/>
  71. <Label name="ctrl_142" x="8" y="40" width="80" height="20" text="SKU:"/>
  72. <TextBox name="ctrl_143" x="96" y="40" width="200" height="24"/>
  73. <Label name="ctrl_144" x="8" y="72" width="80" height="20" text="Price:"/>
  74. <TextBox name="ctrl_145" x="96" y="72" width="120" height="24"/>
  75. <Label name="ctrl_146" x="8" y="104" width="80" height="20" text="Category:"/>
  76. <ComboBox name="ctrl_147" x="96" y="104" width="200" height="24"/>
  77. <Label name="ctrl_148" x="8" y="136" width="80" height="20" text="Description:"/>
  78. <TextBox name="ctrl_149" x="96" y="136" width="400" height="80"/>
  79. <CheckBox name="ctrl_150" x="96" y="224" width="120" height="20" text="Active"/>
  80. <CheckBox name="ctrl_151" x="220" y="224" width="120" height="20" text="Featured"/>
  81. <Label name="ctrl_152" x="8" y="256" width="80" height="20" text="Stock:"/>
  82. <NumericUpDown name="ctrl_153" x="96" y="256" width="120" height="24"/>
  83. <Label name="ctrl_154" x="8" y="288" width="80" height="20" text="Weight:"/>
  84. <TextBox name="ctrl_155" x="96" y="288" width="120" height="24"/>
  85. <GroupBox name="ctrl_160" x="8" y="320" width="568" height="100" text="Image">
  86. <Label name="ctrl_161" x="8" y="20" width="80" height="20" text="URL:"/>
  87. <TextBox name="ctrl_162" x="96" y="20" width="380" height="24"/>
  88. <Button name="ctrl_163" x="484" y="20" width="72" height="24" text="Browse"/>
  89. <PictureBox name="ctrl_164" x="96" y="52" width="100" height="40"/>
  90. </GroupBox>
  91. </Panel>
  92. </TabControl>
  93. </slot>
  94. <slot name="status-bar">
  95. <Label name="ctrl_170" x="4" y="2" width="200" height="20" text="Ready"/>
  96. <Label name="ctrl_171" x="600" y="2" width="196" height="20" text="Items: 0"/>
  97. </slot>
  98. </slot-overrides>
  99. </window>
  100. <window name="QuickAddDialog" title="Quick Add Product" target-platform="winforms" wireframe="dialog-layout">
  101. <slot-overrides>
  102. <slot name="dialog-content">
  103. <Label name="ctrl_200" x="4" y="4" width="80" height="20" text="Name:"/>
  104. <TextBox name="ctrl_201" x="88" y="4" width="226" height="24"/>
  105. <Label name="ctrl_202" x="4" y="36" width="80" height="20" text="Price:"/>
  106. <TextBox name="ctrl_203" x="88" y="36" width="120" height="24"/>
  107. <Label name="ctrl_204" x="4" y="68" width="80" height="20" text="Category:"/>
  108. <ComboBox name="ctrl_205" x="88" y="68" width="226" height="24"/>
  109. <CheckBox name="ctrl_206" x="88" y="100" width="120" height="20" text="Active"/>
  110. </slot>
  111. <slot name="dialog-actions">
  112. <Button name="ctrl_210" x="152" y="4" width="80" height="24" text="Add"/>
  113. <Button name="ctrl_211" x="236" y="4" width="80" height="24" text="Cancel"/>
  114. </slot>
  115. </slot-overrides>
  116. </window>
  117. <window name="StandaloneReport" title="Sales Report" target-platform="winforms">
  118. <template>
  119. <Panel name="ctrl_300" x="0" y="0" width="600" height="400">
  120. <Label name="ctrl_301" x="16" y="8" width="300" height="28" text="Monthly Sales Report"/>
  121. <Label name="ctrl_302" x="16" y="44" width="80" height="20" text="From:"/>
  122. <DateTimePicker name="ctrl_303" x="100" y="44" width="180" height="24"/>
  123. <Label name="ctrl_304" x="300" y="44" width="80" height="20" text="To:"/>
  124. <DateTimePicker name="ctrl_305" x="384" y="44" width="180" height="24"/>
  125. <Button name="ctrl_306" x="16" y="76" width="100" height="28" text="Generate"/>
  126. <DataGridView name="ctrl_307" x="16" y="112" width="568" height="240"/>
  127. <Label name="ctrl_308" x="16" y="360" width="120" height="20" text="Total: $0.00"/>
  128. <Button name="ctrl_309" x="480" y="360" width="100" height="28" text="Export"/>
  129. </Panel>
  130. </template>
  131. </window>
  132. </ui-layout-def>