This commit is contained in:
lizhi-rocky
2010-07-12 17:35:16 +08:00
parent d3b3855c7a
commit 5ed4600bf7
7 changed files with 139 additions and 48 deletions

View File

@@ -6,11 +6,14 @@
<attribute name="base_widget"/>
<attribute name="sequence"/>
<oneOrMore>
<ref name="widget"/>
<zeroOrMore>
<ref name="message"/>
</zeroOrMore>
<ref name="widget"/>
</oneOrMore>
<oneOrMore>
<ref name="message_box"/>
</oneOrMore>
<zeroOrMore>
<ref name="message"/>
</zeroOrMore>
<oneOrMore>
<ref name="sequence"/>
</oneOrMore>
@@ -35,6 +38,9 @@
<!-- geometry location is the location inside its parent -->
<ref name="geometry_location"/>
</optional>
<optional>
<ref name="variable"/>
</optional>
</interleave>
<zeroOrMore>
<ref name="widget"/>
@@ -70,6 +76,9 @@ on special cases -->
<optional>
<attribute name="state"/>
</optional>
<optional>
<attribute name="textvariable"/>
</optional>
</interleave>
</element>
</define>
@@ -120,6 +129,25 @@ on special cases -->
</choice>
</define>
<define name="variable">
<element name="variable">
<attribute name="name"/>
<attribute name="type"/>
<optional>
<attribute name="value"/>
</optional>
</element>
</define>
<define name="message_box">
<element name="message_box">
<attribute name="name"/>
<attribute name="type"/>
<attribute name="title"/>
<attribute name="message"/>
</element>
</define>
<define name="message">
<element name="message">
<optional>

View File

@@ -53,16 +53,6 @@ row 4 | quit previous next |
</widget>
<message key='#os-name'>
<English>Rocky 4.2</English>
<Chinese>磐石 4.2</Chinese>
</message>
<message>
<English>Copyright</English>
<Chinese>版权</Chinese>
</message>
<!--
column 0 column 1 column 2
____________________________________________________________
@@ -102,7 +92,7 @@ row 4 | |
<configure column='2' weight='1'/>
</grid_management>
<grid_location row='2' column='0' columnspan='3' sticky='NSWE'/>
<variable name='number' type='StringVar'/>
<widget type='Text'>
<widget_attribute width='40' height='15' state='disabled'/>
<grid_location row='0' column='0'/>
@@ -115,7 +105,7 @@ row 4 | |
<grid_location row='0' column='0' sticky='W'/>
</widget>
<widget type='Entry'>
<widget_attribute width='12'/>
<widget_attribute width='12' textvariable='serial_no.number'/>
<grid_location row='1' column='0'/>
</widget>
</widget>
@@ -126,7 +116,7 @@ row 4 | |
____________________________________________________________
row 0 | |
row 1 | |
row 2 | partition |
row 2 | |
| _________ _________ |
| | | device: |_________| |
| | | __________________________ |
@@ -143,9 +133,9 @@ row 4 | |
|____________________________________________________________|
-->
<widget type='Frame' name='partition'>
<grid_management rows='4' columns='2'>
<grid_management rows='3' columns='2'>
<configure row='0' weight='1'/>
<configure row='1' weight='1'/>
<configure row='2' weight='1'/>
<configure column='0' weight='1'/>
<configure column='1' weight='1'/>
</grid_management>
@@ -156,13 +146,8 @@ row 4 | |
<grid_location row='0' column='0' rowspan='4'/>
</widget>
<widget type='Label'>
<widget_attribute text='partition'/>
<grid_location row='0' column='0' columnspan='2'/>
</widget>
<widget type='Frame'>
<grid_location row='1' column='1' sticky='WS' pady='10'/>
<grid_location row='0' column='1' sticky='WS' pady='10'/>
<widget type='Label'>
<widget_attribute text='device:'/>
<grid_location row='0' column='0' />
@@ -177,7 +162,7 @@ row 4 | |
<grid_management rows='2' columns='4'>
<configure column='3' weight='1'/>
</grid_management>
<grid_location row='2' column='1' sticky='NW'/>
<grid_location row='1' column='1' sticky='NW'/>
<widget type='Listbox'>
<widget_attribute width='60' height='15'/>
@@ -266,6 +251,19 @@ row 4 | |
</widget>
</widget>
<message_box name='previous' type='info' title='#install-sequence' message='#first-step'/>
<message_box name='next' type='info' title='#install-sequence' message='#last-step'/>
<message key='#os-name'>
<English>Rocky 4.2</English>
<Chinese>磐石 4.2</Chinese>
</message>
<message>
<English>Copyright</English>
<Chinese>版权</Chinese>
</message>
<message key='host name'>
<English>host name</English>
<Chinese>主机名</Chinese>