add scroll processing

This commit is contained in:
lizhi-rocky
2010-07-15 17:35:13 +08:00
parent d99fc5dbe9
commit 472f1dff74
2 changed files with 42 additions and 23 deletions

View File

@@ -29,22 +29,20 @@
<optional>
<ref name="widget_attribute"/>
</optional>
<interleave>
<optional>
<!-- geometry management is to manage its sons -->
<ref name="geometry_management"/>
</optional>
<optional>
<!-- geometry location is the location inside its parent -->
<ref name="geometry_location"/>
</optional>
<optional>
<ref name="variable"/>
</optional>
<optional>
<ref name="action"/>
</optional>
</interleave>
<optional>
<!-- geometry management is to manage its sons -->
<ref name="geometry_management"/>
</optional>
<optional>
<!-- geometry location is the location inside its parent -->
<ref name="geometry_location"/>
</optional>
<optional>
<ref name="variable"/>
</optional>
<optional>
<ref name="action"/>
</optional>
<zeroOrMore>
<ref name="widget"/>
</zeroOrMore>
@@ -82,6 +80,14 @@ on special cases -->
<optional>
<attribute name="textvariable"/>
</optional>
<optional>
<attribute name="orient">
<choice>
<value>vertical</value>
<value>horizontal</value>
</choice>
</attribute>
</optional>
</interleave>
</element>
</define>
@@ -150,6 +156,12 @@ on special cases -->
<optional>
<attribute name="quit"/>
</optional>
<zeroOrMore>
<element name='scroll'>
<attribute name='scrolling'/>
<attribute name='scrolled'/>
</element>
</zeroOrMore>
</element>
</define>