| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?xml version="1.0" encoding="UTF-8"?>
- <ui-layout-def xmlns="http://quadarax.com/ui-layout-definition"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- version="1.6" schema-version="1.6" target-platform="winforms">
- <validation-rules>
- <rule target="TextBox" condition="required" message="Field is required"/>
- </validation-rules>
- <patterns>
- <pattern-include src="abstract-controls.xml" important="true"/>
- <pattern-include src="winform-controls.xml" important="true" platform="winforms"/>
- <wireframe name="master-layout" type="base-layout" platform="winforms">
- <template>
- <Panel name="ctrl_001" x="0" y="0" width="800" height="600">
- <Panel name="ctrl_002" x="0" y="0" width="800" height="30"
- slot-name="menu-area" slot-allowed-controls="any"/>
- <Panel name="ctrl_003" x="0" y="30" width="800" height="26"
- slot-name="toolbar-area" slot-allowed-controls="any"/>
- <Panel name="ctrl_004" x="0" y="56" width="200" height="520"
- slot-name="nav-tree" slot-allowed-controls="any"/>
- <Panel name="ctrl_005" x="200" y="56" width="600" height="520"
- slot-name="work-area" slot-allowed-controls="any" slot-required="true"/>
- <Panel name="ctrl_006" x="0" y="576" width="800" height="24"
- slot-name="status-bar" slot-allowed-controls="any"/>
- </Panel>
- </template>
- </wireframe>
- <wireframe name="form-layout" type="form-layout" platform="winforms">
- <template>
- <Panel name="ctrl_010" x="0" y="0" width="500" height="400">
- <Panel name="ctrl_011" x="8" y="8" width="484" height="344"
- slot-name="form-body" slot-allowed-controls="any" slot-required="true"/>
- <Panel name="ctrl_012" x="8" y="360" width="484" height="32"
- slot-name="form-actions" slot-allowed-controls="any"/>
- </Panel>
- </template>
- </wireframe>
- <wireframe name="dialog-layout" type="dialog-layout" platform="winforms">
- <template>
- <Panel name="ctrl_020" x="0" y="0" width="350" height="200">
- <Panel name="ctrl_021" x="16" y="16" width="318" height="136"
- slot-name="dialog-content" slot-allowed-controls="any" slot-required="true"/>
- <Panel name="ctrl_022" x="16" y="160" width="318" height="32"
- slot-name="dialog-actions" slot-allowed-controls="any"/>
- </Panel>
- </template>
- </wireframe>
- </patterns>
- <window name="MainWindow" title="Product Manager" target-platform="winforms" wireframe="master-layout">
- <slot-overrides>
- <slot name="menu-area">
- <Label name="ctrl_100" x="8" y="4" width="40" height="22" text="File"/>
- <Label name="ctrl_101" x="56" y="4" width="40" height="22" text="Edit"/>
- <Label name="ctrl_102" x="104" y="4" width="40" height="22" text="View"/>
- <Label name="ctrl_103" x="152" y="4" width="40" height="22" text="Help"/>
- </slot>
- <slot name="toolbar-area">
- <Button name="ctrl_110" x="4" y="1" width="60" height="24" text="New"/>
- <Button name="ctrl_111" x="68" y="1" width="60" height="24" text="Open"/>
- <Button name="ctrl_112" x="132" y="1" width="60" height="24" text="Save"/>
- <Button name="ctrl_113" x="200" y="1" width="60" height="24" text="Delete"/>
- <Button name="ctrl_114" x="268" y="1" width="60" height="24" text="Print"/>
- </slot>
- <slot name="nav-tree">
- <TreeView name="ctrl_120" x="4" y="4" width="192" height="512"/>
- </slot>
- <slot name="work-area">
- <TabControl name="ctrl_130" x="4" y="4" width="592" height="512">
- <Panel name="ctrl_131" x="4" y="28" width="584" height="480">
- <Label name="ctrl_140" x="8" y="8" width="80" height="20" text="Name:"/>
- <TextBox name="ctrl_141" x="96" y="8" width="200" height="24"/>
- <Label name="ctrl_142" x="8" y="40" width="80" height="20" text="SKU:"/>
- <TextBox name="ctrl_143" x="96" y="40" width="200" height="24"/>
- <Label name="ctrl_144" x="8" y="72" width="80" height="20" text="Price:"/>
- <TextBox name="ctrl_145" x="96" y="72" width="120" height="24"/>
- <Label name="ctrl_146" x="8" y="104" width="80" height="20" text="Category:"/>
- <ComboBox name="ctrl_147" x="96" y="104" width="200" height="24"/>
- <Label name="ctrl_148" x="8" y="136" width="80" height="20" text="Description:"/>
- <TextBox name="ctrl_149" x="96" y="136" width="400" height="80"/>
- <CheckBox name="ctrl_150" x="96" y="224" width="120" height="20" text="Active"/>
- <CheckBox name="ctrl_151" x="220" y="224" width="120" height="20" text="Featured"/>
- <Label name="ctrl_152" x="8" y="256" width="80" height="20" text="Stock:"/>
- <NumericUpDown name="ctrl_153" x="96" y="256" width="120" height="24"/>
- <Label name="ctrl_154" x="8" y="288" width="80" height="20" text="Weight:"/>
- <TextBox name="ctrl_155" x="96" y="288" width="120" height="24"/>
- <GroupBox name="ctrl_160" x="8" y="320" width="568" height="100" text="Image">
- <Label name="ctrl_161" x="8" y="20" width="80" height="20" text="URL:"/>
- <TextBox name="ctrl_162" x="96" y="20" width="380" height="24"/>
- <Button name="ctrl_163" x="484" y="20" width="72" height="24" text="Browse"/>
- <PictureBox name="ctrl_164" x="96" y="52" width="100" height="40"/>
- </GroupBox>
- </Panel>
- </TabControl>
- </slot>
- <slot name="status-bar">
- <Label name="ctrl_170" x="4" y="2" width="200" height="20" text="Ready"/>
- <Label name="ctrl_171" x="600" y="2" width="196" height="20" text="Items: 0"/>
- </slot>
- </slot-overrides>
- </window>
- <window name="QuickAddDialog" title="Quick Add Product" target-platform="winforms" wireframe="dialog-layout">
- <slot-overrides>
- <slot name="dialog-content">
- <Label name="ctrl_200" x="4" y="4" width="80" height="20" text="Name:"/>
- <TextBox name="ctrl_201" x="88" y="4" width="226" height="24"/>
- <Label name="ctrl_202" x="4" y="36" width="80" height="20" text="Price:"/>
- <TextBox name="ctrl_203" x="88" y="36" width="120" height="24"/>
- <Label name="ctrl_204" x="4" y="68" width="80" height="20" text="Category:"/>
- <ComboBox name="ctrl_205" x="88" y="68" width="226" height="24"/>
- <CheckBox name="ctrl_206" x="88" y="100" width="120" height="20" text="Active"/>
- </slot>
- <slot name="dialog-actions">
- <Button name="ctrl_210" x="152" y="4" width="80" height="24" text="Add"/>
- <Button name="ctrl_211" x="236" y="4" width="80" height="24" text="Cancel"/>
- </slot>
- </slot-overrides>
- </window>
- <window name="StandaloneReport" title="Sales Report" target-platform="winforms">
- <template>
- <Panel name="ctrl_300" x="0" y="0" width="600" height="400">
- <Label name="ctrl_301" x="16" y="8" width="300" height="28" text="Monthly Sales Report"/>
- <Label name="ctrl_302" x="16" y="44" width="80" height="20" text="From:"/>
- <DateTimePicker name="ctrl_303" x="100" y="44" width="180" height="24"/>
- <Label name="ctrl_304" x="300" y="44" width="80" height="20" text="To:"/>
- <DateTimePicker name="ctrl_305" x="384" y="44" width="180" height="24"/>
- <Button name="ctrl_306" x="16" y="76" width="100" height="28" text="Generate"/>
- <DataGridView name="ctrl_307" x="16" y="112" width="568" height="240"/>
- <Label name="ctrl_308" x="16" y="360" width="120" height="20" text="Total: $0.00"/>
- <Button name="ctrl_309" x="480" y="360" width="100" height="28" text="Export"/>
- </Panel>
- </template>
- </window>
- </ui-layout-def>
|