[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8838 - trunk/gnue-samples/testcases/forms/gauntlet
From: |
johannes |
Subject: |
[gnue] r8838 - trunk/gnue-samples/testcases/forms/gauntlet |
Date: |
Wed, 18 Oct 2006 03:33:27 -0500 (CDT) |
Author: johannes
Date: 2006-10-18 03:33:27 -0500 (Wed, 18 Oct 2006)
New Revision: 8838
Modified:
trunk/gnue-samples/testcases/forms/gauntlet/gauntlet.gfd
Log:
Updated to fit the changed api
Modified: trunk/gnue-samples/testcases/forms/gauntlet/gauntlet.gfd
===================================================================
--- trunk/gnue-samples/testcases/forms/gauntlet/gauntlet.gfd 2006-10-18
08:25:37 UTC (rev 8837)
+++ trunk/gnue-samples/testcases/forms/gauntlet/gauntlet.gfd 2006-10-18
08:33:27 UTC (rev 8838)
@@ -38,7 +38,7 @@
<logic>
<block name="styleFields">
- <field name="defaultField"/>
+ <field name="defaultField" minLength="4"/>
<field name="labelField"/>
<field name="passwordField">
<trigger name="Trigger1" type="POST-CHANGE"><![CDATA[
@@ -68,118 +68,122 @@
</block>
</logic>
- <layout xmlns:c="GNUe:Layout:Char" c:height="14" c:width="62" tabbed="top">
+ <layout xmlns:c="GNUe:Layout:Char" c:height="14" c:width="62" tabbed="left">
+
<page name="Widgets">
-
<label c:x="1" c:y="0" c:height="1" c:width="60" alignment="center"
text="The following widgets are currently available"/>
- <box c:x="1" c:y="1" c:height="5" c:width="60" label="Entry Styles"/>
- <label c:x="2" c:y="2" c:height="1" c:width="7" text="Default"/>
- <label c:x="2" c:y="3" c:height="1" c:width="8" text="Password"/>
- <label c:x="2" c:y="4" c:height="1" c:width="5" text="Label"/>
+ <box c:x="1" c:y="1" c:height="5" c:width="60" label="Entry Styles"
+ name="entry_box"/>
- <label c:x="24" c:y="3" c:height="1" c:width="9" text="Dropdown "/>
- <label c:x="42" c:y="2" c:height="1" c:width="7" text="Listbox"/>
+ <label c:x="2" c:y="2" c:height="1" c:width="7" text="Default"
+ name="default"/>
+ <label c:x="2" c:y="3" c:height="1" c:width="8" text="Password"
+ name="password"/>
+ <label c:x="2" c:y="4" c:height="1" c:width="5" text="Label"
+ name="label"/>
+ <label c:x="24" c:y="3" c:height="1" c:width="9" text="Dropdown"
+ name="dropdown" />
+ <label c:x="42" c:y="2" c:height="1" c:width="7" text="Listbox"
+ name="listbox" />
+
<entry c:x="12" c:y="2" c:height="1" c:width="10" block="styleFields"
- field="defaultField">
+ field="defaultField" name="defaultfield">
<options>
- <option name="tip" value="A normal text entry widget"/>
+ <option name="tip">A normal text entry widget and the like</option>
</options>
</entry>
<entry c:x="12" c:y="3" c:height="1" c:width="10" block="styleFields"
- field="passwordField" style="password">
+ field="passwordField" style="password" name="password">
<options>
<option name="tip" value="Value entered will appear on label field"/>
</options>
</entry>
<entry c:x="12" c:y="4" c:height="1" c:width="10" block="styleFields"
- field="labelField" style="label"/>
+ field="labelField" style="label" name="labelfield"/>
<entry c:x="24" c:y="2" c:height="1" c:width="10" block="styleFields"
- field="checkboxField" style="checkbox" label="Checkbox">
+ field="checkboxField" style="checkbox" label="Checkbox"
name="checkbox">
<options>
<option name="tip" value="A checkbox entry widget"/>
</options>
</entry>
<entry c:x="33" c:y="3" c:height="1" c:width="10" block="styleFields"
- field="dropdownField" style="dropdown">
+ field="dropdownField" style="dropdown" name="dropdownfield">
<options>
<option name="tip" value="A dropdown entry widget"/>
</options>
</entry>
- <entry c:x="50" c:y="2" c:height="3" c:width="10" block="styleFields"
- field="listboxField" style="listbox">
+ <entry c:x="50" c:y="2" c:height="3" c:width="9" block="styleFields"
+ field="listboxField" style="listbox" name="listboxfield">
<options>
<option name="tip" value="A listbox entry widget"/>
</options>
</entry>
<box c:x="1" c:y="6" c:height="8" c:width="60"
- label="<entry> features"/>
+ label="<entry> features" name="feature_box"/>
- <label c:x="3" c:y="7" c:height="1" c:width="13" text="Uppercase"/>
- <label c:x="3" c:y="8" c:height="1" c:width="13" text="Lowercase"/>
- <label c:x="3" c:y="9" c:height="1" c:width="13" text="Default Value"/>
+ <label c:x="3" c:y="7" c:height="1" c:width="12" text="Uppercase"
+ name="uppercase"/>
+ <label c:x="3" c:y="8" c:height="1" c:width="12" text="Lowercase"
+ name="lowercase" />
+ <label c:x="3" c:y="9" c:height="1" c:width="12" text="Default Value"
+ name="default_value"/>
<entry c:x="15" c:y="7" c:height="1" c:width="10" block="styleFields"
- field="UnboundField1"/>
+ field="UnboundField1" name="field1"/>
<entry c:x="15" c:y="8" c:height="1" c:width="10" block="styleFields"
- field="UnboundField2"/>
+ field="UnboundField2" name="field2"/>
<entry c:x="15" c:y="9" c:height="1" c:width="10" block="styleFields"
- field="UnboundField7"/>
+ field="UnboundField7" name="field7"/>
- <label c:x="28" c:y="7" c:height="1" c:width="15" text="Max Length of
5"/>
- <label c:x="28" c:y="9" c:height="1" c:width="15" text="Query Default"/>
+ <label c:x="28" c:y="7" c:height="1" c:width="15" text="Max Length of 5"
+ name="max_len"/>
+ <label c:x="28" c:y="9" c:height="1" c:width="15" text="Query Default"
+ name="query_default"/>
<entry c:x="44" c:y="7" c:height="1" c:width="10" block="styleFields"
- field="UnboundField3"/>
+ field="UnboundField3" name="field3" />
<entry c:x="44" c:y="9" c:height="1" c:width="10" block="styleFields"
- field="UnboundField8"/>
+ field="UnboundField8" name="field8" />
- <box c:x="2" c:y="10" c:height="3" c:width="56" label="Typecast"/>
+ <box c:x="2" c:y="10" c:height="3" c:width="56" label="Typecast"
+ name="typecast_box"/>
- <label c:x="3" c:y="11" c:height="1" c:width="13" text="Date"/>
- <label c:x="28" c:y="11" c:height="1" c:width="15" text="Number"/>
+ <label c:x="3" c:y="11" c:height="1" c:width="12" text="Date"
+ name="date"/>
+ <label c:x="28" c:y="11" c:height="1" c:width="15" text="Number"
+ name="number"/>
<entry c:x="15" c:y="11" c:height="1" c:width="12" block="styleFields"
- field="UnboundField9"/>
+ field="UnboundField9" name="field9"/>
<entry c:x="44" c:y="11" c:height="1" c:width="10" block="styleFields"
- field="UnboundField10"/>
+ field="UnboundField10" name="field10"/>
</page>
<page name="Dialogs">
<button name="aboutButton" c:height="1" c:width="23" c:x="3"
c:y="2" label="Display About Box">
<trigger name="Trigger3" type="ON-ACTION"><![CDATA[
- parameters = {
- 'appversion' : '1.2.3',
- 'name' : 'Gauntlet',
- 'formversion' : '-3.2.1',
- 'author' : 'Joe Coder',
- 'description' : """This about box is generated by the gauntlet
form. It is not created by gnue-forms. All values displayed are just place
holders."""
- }
- activateDialog ('_about', parameters, True)]]>
+ form.show_about()
+ ]]>
</trigger>
</button>
<button name="jumptoButton" c:height="1" c:width="32" c:x="3"
c:y="3" label="Display Jump To Prompt">
<trigger name="Trigger4" type="ON-ACTION"><![CDATA[
- parameters = {'recordnumber': ''}
- activateDialog ('_jumpto', parameters, True)
-
- if parameters.has_key('cancel'):
- dialogFields.jumpToValue.set ("Cancel")
- else:
- dialogFields.jumpToValue.set (parameters['recordnumber'])]]>
+ result = form.ask_record()
+ ]]>
</trigger>
</button>
@@ -193,7 +197,7 @@
</button>
<box c:x="1" c:y="0" c:height="10" c:width="60"
- label="Calling gnue-forms built in dialogs"/>
+ label="Calling gnue-forms built in dialogs" name="dialog_box"/>
<label c:x="3" c:y="5" c:height="1" c:width="51"
text="A more complicated example using an embedded dialog"/>
@@ -206,7 +210,7 @@
</page>
<page name="Intro">
- <label c:x="0" c:y="0" c:height="1" c:width="62" alignment="center"
+ <label c:x="0" c:y="0" c:height="1" c:width="62" alignment="right"
text="Welcome To Gauntlet"/>
<label c:x="1" c:y="1" c:height="1" c:width="58"
text="This form is intended as a stress test for gnue-forms and "/>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8838 - trunk/gnue-samples/testcases/forms/gauntlet,
johannes <=