201 lines
11 KiB
XML
201 lines
11 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
Copyright (c) 2009,2008 Declarative Engineering LLC.
|
|
All rights reserved. This program and the accompanying materials
|
|
are made available under the terms of the Declarative Engineering LLC
|
|
verson 1 which accompanies this distribution, and is available at
|
|
http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
|
|
-->
|
|
<vml>
|
|
<metadata>
|
|
<platform name="thick:swt"/>
|
|
</metadata>
|
|
|
|
<window name="MainView" style="window trim" width="900" height="1100" container-title="Component Test System">
|
|
<fill-layout direction="vertical"/>
|
|
|
|
<value-holder name="controllerHolder" type="test.local.view.controller.MainViewController"/>
|
|
<method function="closed" name="doClose" signature="" value-holder="controllerHolder"/>
|
|
<!--
|
|
<menu-bar>
|
|
<menu-cascade name="fileMenu" text="File">
|
|
<menu name="testMenuItem" text="Menu Item 1...">
|
|
</menu>
|
|
</menu-cascade>
|
|
</menu-bar>
|
|
-->
|
|
|
|
<tab-panel name="sampleTabPanel" style="" tab-order="1">
|
|
<!--
|
|
<page>
|
|
<panel name="sampleButtonTabPanel" container-title="Buttons" tab-order="1">
|
|
<grid-layout column-count="2" equal-width-columns="false" vertical-spacing="2" horizontal-spacing="2" margin-width="5" margin-height="5"/>
|
|
|
|
<label name="helpLabel" text="This tab displays the different types of buttons and shows off linking of the button selection states and the visibility and enabled state of the buttons.">
|
|
<grid-layout-data horizontal-span="2"/>
|
|
</label>
|
|
|
|
<panel name="sampleButtonPanel" tab-order="1" background-image="res://View/General/BackgroundImage" inherit-background="all">
|
|
<grid-layout-data horizontal-span="2"/>
|
|
<grid-layout column-count="2" equal-width-columns="false" vertical-spacing="2" horizontal-spacing="2" margin-width="20" margin-height="20"/>
|
|
|
|
<button name="sampleUpArrowButton" style="up-arrow" text="Sample Up Arrow Button" tab-order="1">
|
|
</button>
|
|
<button name="sampleDownArrowButton" style="down-arrow" text="Sample Down Arrow Button" tab-order="1">
|
|
</button>
|
|
<button name="sampleLeftArrowButton" style="left-arrow" text="Sample Left Arrow Button" tab-order="1">
|
|
</button>
|
|
<button name="sampleRightArrowButton" style="right-arrow" text="Sample Right Arrow Button" tab-order="1">
|
|
</button>
|
|
<button-toggle name="sampleCheckButton" style="check" text="Sample Check Button" tab-order="1">
|
|
</button-toggle>
|
|
<button-toggle name="sampleRadioButton" style="radio" text="Sample Radio Button" tab-order="1">
|
|
</button-toggle>
|
|
<button-toggle name="sampleToggleButton" style="toggle" text="Sample Toggle Button" tab-order="1">
|
|
</button-toggle>
|
|
<button name="sampleFlatButton" style="flat" text="Sample Flat Button" tab-order="1">
|
|
</button>
|
|
</panel>
|
|
|
|
<button name="showButton" style="" text="Show" tab-order="1">
|
|
<link function="selection" component="sampleButtonPanel" target="is-visible" data="Boolean.TRUE"/>
|
|
</button>
|
|
<button name="hideButton" style="" text="Hide" tab-order="1">
|
|
<link function="selection" component="sampleButtonPanel" target="is-visible" data="Boolean.FALSE"/>
|
|
</button>
|
|
<button-toggle name="enableButton" style="check" text="Enable" is-selected="true" tab-order="1">
|
|
<grid-layout-data horizontal-span="2"/>
|
|
<link function="selection" component="sampleButtonPanel" target="is-enabled"/>
|
|
<link function="selection" component="showButton" target="is-enabled"/>
|
|
<link function="selection" component="hideButton" target="is-enabled"/>
|
|
</button-toggle>
|
|
<button name="disabledButton" style="" text="Disabled" tab-order="1">
|
|
<association function="is-enabled" attribute="nullAttribute" value-holder="controllerHolder"/>
|
|
</button>
|
|
<button name="enabledButton" style="" text="Enbled" tab-order="1">
|
|
<association function="is-enabled" attribute="nonNullAttribute" value-holder="controllerHolder"/>
|
|
</button>
|
|
<button name="openDialog1Button" style="" text="Dialog 1" tab-order="1">
|
|
<method function="selection" name="doOpenDialog1" value-holder="controllerHolder"/>
|
|
</button>
|
|
<button name="openDialog2Button" style="" text="Dialog 2" tab-order="1">
|
|
<method function="selection" name="doOpenDialog2" value-holder="controllerHolder"/>
|
|
</button>
|
|
|
|
<panel>
|
|
<grid-layout-data horizontal-span="2" horizontal-alignment="fill" horizontal-fill="true" minimum-height="20"/>
|
|
</panel>
|
|
<label style="horizontal | separator">
|
|
<grid-layout-data horizontal-span="2" horizontal-alignment="fill" horizontal-fill="true"/>
|
|
</label>
|
|
<panel>
|
|
<grid-layout-data horizontal-span="2" horizontal-alignment="fill" horizontal-fill="true" minimum-height="20"/>
|
|
</panel>
|
|
|
|
<panel tab-order="1">
|
|
<grid-layout column-count="2" equal-width-columns="false" vertical-spacing="2" horizontal-spacing="2" margin-width="5" margin-height="5"/>
|
|
<grid-layout-data horizontal-span="2" horizontal-alignment="fill" horizontal-fill="true"/>
|
|
|
|
<label text="Test type:"/>
|
|
<label text="Row Count:"/>
|
|
|
|
<combo style="" auto-synchronize-selection="true" tab-order="1">
|
|
<association function="collection" attribute="tests" value-holder="controllerHolder"/>
|
|
<association function="selection" attribute="selectedTest" value-holder="controllerHolder"/>
|
|
</combo>
|
|
|
|
<text style="border" tool-tip-text="Specify the number of rows of data in the test." auto-synchronize-text="true" tab-order="1">
|
|
<grid-layout-data minimum-width="140"/>
|
|
|
|
<integer-format model-type="integer" min-value="0" max-value="10000">
|
|
<association function="value" attribute="testRowCount" value-holder="controllerHolder"/>
|
|
</integer-format>
|
|
</text>
|
|
|
|
<button name="displayTestButton" style="" text="Display Test" tab-order="1">
|
|
<grid-layout-data horizontal-span="2" horizontal-alignment="center" horizontal-fill="true"/>
|
|
|
|
<association function="is-enabled" attribute="selectedTest" value-holder="controllerHolder"/>
|
|
<method function="selection" name="doDisplayTest" value-holder="controllerHolder"/>
|
|
</button>
|
|
</panel>
|
|
<panel-viewer style='border' name='innerView' tab-order="1">
|
|
<fill-layout/>
|
|
<grid-layout-data horizontal-fill='true' horizontal-alignment='fill' horizontal-span="2" vertical-fill="true" vertical-alignment="fill" minimum-width="200" minimum-height="200"/>
|
|
<association function='controller' attribute='testController' value-holder='controllerHolder'/>
|
|
</panel-viewer>
|
|
</panel>
|
|
</page>
|
|
-->
|
|
<pages>
|
|
<association function="pages" attribute="tabViewControllers" value-holder="controllerHolder"/>
|
|
</pages>
|
|
<!--
|
|
<page>
|
|
<sash-form style="horizontal" weights="10, 20" container-title="Sash">
|
|
<panel name="bluePanel" background-color="#0000FFFF,#4545D09F,diagonal"/>
|
|
<panel name="sashPanel">
|
|
<panel name="greenPanel" background-color="#00FF00FF,#45D0459F,diagonal"/>
|
|
<sash style="horizontal"/>
|
|
<panel name="blackAndWhitePanel" background-color="#000000FF,#4545459F,diagonal"/>
|
|
<sash style="horizontal"/>
|
|
<panel name="redPanel" background-color="#FF0000FF,#D045459F,diagonal"/>
|
|
</panel>
|
|
</sash-form>
|
|
</page>
|
|
-->
|
|
<page>
|
|
<panel name="scrollPanel" container-title="Red|Blue" style="vertical scroll">
|
|
<!--<grid-layout column-count="1" margin-width="4" vertical-spacing="0"/>-->
|
|
<row-layout direction="vertical" alignment="fill" wrap="false" margin-width="30" margin-height="30"/>
|
|
|
|
<panel name="content1" background-color="red">
|
|
<!--<grid-layout-data horizontal-fill="true" horizontal-alignment="fill" vertical-fill="false" vertical-alignment="fill" minimum-height="300" default-height="300"/>-->
|
|
<row-layout-data height="300"/>
|
|
</panel>
|
|
<button-toggle style="check" text="Visibility" is-selected="false" background-color="#8F8">
|
|
<!--<grid-layout-data horizontal-alignment="fill" horizontal-fill="true" vertical-fill="false" vertical-alignment="beginning"/>-->
|
|
<link function="selection" component="content2" target="is-visible"/>
|
|
</button-toggle>
|
|
<panel name="content2" background-color="blue" is-visible="false">
|
|
<!--<grid-layout-data horizontal-fill="true" horizontal-alignment="fill" vertical-fill="false" vertical-alignment="fill" minimum-height="300" default-height="300"/>-->
|
|
<row-layout-data height="300"/>
|
|
</panel>
|
|
<panel name="buttonPanel" style="" tab-order="1" background-color="yellow">
|
|
<row-layout wrap="false" pack="false" spacing="10" justify="false" alignment="end"/>
|
|
<!--<grid-layout-data horizontal-alignment="end" horizontal-fill="true" vertical-fill="true" vertical-alignment="end"/>-->
|
|
|
|
<button name="okButton" style="" text="Ok" tab-order="1">
|
|
</button>
|
|
<button name="cancelButton" style="" text="Cancel" tab-order="1">
|
|
</button>
|
|
</panel>
|
|
</panel>
|
|
</page>
|
|
<page>
|
|
<panel container-title="Overlay Example">
|
|
<grid-layout column-count="1"/>
|
|
|
|
<panel name="nobgPanel" style="no background" inherit-background="all" background-color="#00F8" is-visible="false">
|
|
<grid-layout-data exclude="true"/>
|
|
<center-layout/>
|
|
|
|
<panel>
|
|
<grid-layout-data horizontal-fill="false" horizontal-alignment="fill" vertical-fill="false" vertical-alignment="fill" minimum-height="100" minimum-width="100"/>
|
|
<fill-layout/>
|
|
|
|
<label text="A short message to you!">
|
|
</label>
|
|
</panel>
|
|
</panel>
|
|
<label style="wrap" text="This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap. This is a really long label text and it goes on for ever so that it will hopefully wrap.">
|
|
<grid-layout-data horizontal-fill="true" horizontal-alignment="beginning" vertical-fill="true" vertical-alignment="beginning"/>
|
|
</label>
|
|
<button-toggle style="check" text="Visibility" is-selected="false">
|
|
<link function="selection" component="nobgPanel" target="is-visible"/>
|
|
</button-toggle>
|
|
</panel>
|
|
</page>
|
|
</tab-panel>
|
|
</window>
|
|
</vml> |