re-arrange interface xml

let text widget be in base widget
This commit is contained in:
lizhi-rocky
2010-08-03 17:32:21 +08:00
parent ba7bc3e2b0
commit fb7d3283c2

View File

@@ -6,7 +6,10 @@
____________________________________________________________
row 0 | logo step_name version |
row 1 |____________________________________________________________|
row 2 | |
row 2 | __________ |
|| | |
|| text | |
||__________| |
row 3 | copyright information |
row 4 | quit previous next |
|____________________________________________________________|
@@ -21,6 +24,7 @@ row 4 | quit previous next |
<grid_location row='0' column='0' sticky='NSWE'/>
<variable name='main.step_name' type='StringVar' />
<widget type='Label'>
<widget_attribute image='linxlogo.gif'/>
<grid_location row='0' column='0' sticky='W' padx='5' pady='5'/>
@@ -33,13 +37,19 @@ row 4 | quit previous next |
<widget_attribute text='#os-name'/>
<grid_location row='0' column='2' sticky='E'/>
</widget>
<widget type='Frame'>
<widget_attribute height='3' background='black'/>
<grid_location row='1' column='0' columnspan='3' sticky='WE'/>
</widget>
<widget type='Text'>
<widget_attribute state='disabled'/>
<grid_location row='2' column='0' padx='10' pady='10' sticky='NSWE'/>
</widget>
<widget type='Label'>
<widget_attribute text='Copyright'/>
<widget_attribute text='#Copyright'/>
<grid_location row='3' column='0' columnspan='3' pady='20'/>
</widget>
@@ -63,14 +73,14 @@ row 4 | quit previous next |
____________________________________________________________
row 0 | |
row 1 | |
row 2 | Welcome to Rocky OS |
row 2 | Welcome |
row 3 | |
row 4 | |
|____________________________________________________________|
-->
<widget type='Label' name='welcome'>
<widget_attribute text='Welcome'/>
<grid_location row='2' column='0' columnspan='3'/>
<widget_attribute text='#Welcome'/>
<grid_location row='2' column='1' columnspan='2'/>
</widget>
<!--
@@ -78,11 +88,11 @@ row 4 | |
____________________________________________________________
row 0 | |
row 1 | |
row 2 | _________ _________________ |
| | text | | serial number | |
| | | | ______________ | |
| | | || | | |
| |_________| ||______________| | |
row 2 | _________________ |
| | serial number | |
| | ______________ | |
| || | | |
| ||______________| | |
| |_________________| |
row 3 | |
row 4 | |
@@ -90,29 +100,22 @@ row 4 | |
-->
<widget type='Frame' name='serial_no'>
<grid_management rows='1' columns='3'>
<grid_management rows='1' columns='1'>
<configure row='0' weight='1'/>
<configure column='0' weight='1'/>
<configure column='1' weight='1'/>
<configure column='2' weight='1'/>
</grid_management>
<grid_location row='2' column='0' columnspan='3' sticky='NSWE'/>
<variable name='serial_no.number' type='StringVar' value='123456789012'/>
<widget type='Text'>
<widget_attribute width='40' height='15' state='disabled'/>
<grid_location row='0' column='0'/>
</widget>
<grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>
<widget type='Frame'>
<grid_location row='0' column='1'/>
<grid_location row='0' column='0'/>
<widget type='Label'>
<widget_attribute text='serial number'/>
<grid_location row='0' column='0' sticky='W'/>
</widget>
<widget type='Entry'>
<widget_attribute width='12' textvariable='serial_no.number'/>
<grid_location row='1' column='0'/>
<grid_location row='1' column='0' sticky='W'/>
<variable name='serial_no.number' type='StringVar' value='123456789012'/>
<action init='serial_no_init' quit='serial_no_quit'/>
</widget>
</widget>
@@ -124,37 +127,39 @@ row 4 | |
row 0 | |
row 1 | |
row 2 | |
| _________ _________ |
| | | device: |_________| |
| | | __________________________ |
| | text | | | |
| | | | | |
| | | | | |
| |_________| | | |
| |__________________________| |
| |
| new edit delete reset |
| |
| ___________________________ |
| | _________ | |
| |device: |_________| | |
| |___________________________| |
| _______________________________ |
| | __________________________ | |
| || | ^ | |
| || | | | |
| || | | | |
| || | | | |
| ||__________________________| v | |
| | | |
| | new edit delete reset | |
| |_______________________________| |
row 3 | |
row 4 | |
|____________________________________________________________|
-->
<!--
partition is currently unused
-->
<widget type='Frame' name='partition'>
<grid_management rows='3' columns='2'>
<grid_management rows='2' columns='1'>
<configure row='0' weight='1'/>
<configure row='1' weight='1'/>
<configure column='0' weight='1'/>
<configure column='1' weight='1'/>
</grid_management>
<grid_location row='2' column='0' columnspan='3' sticky='NSWE'/>
<widget type='Text'>
<widget_attribute width='40' height='15' state='disabled'/>
<grid_location row='0' column='0' rowspan='4'/>
</widget>
<grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>
<widget type='Frame'>
<grid_location row='0' column='1' sticky='WS' pady='10'/>
<grid_location row='0' column='0' sticky='WS' pady='10'/>
<widget type='Label'>
<widget_attribute text='device:'/>
<grid_location row='0' column='0' />
@@ -169,7 +174,7 @@ row 4 | |
<grid_management rows='2' columns='5'>
<configure column='3' weight='1'/>
</grid_management>
<grid_location row='1' column='1' sticky='NW'/>
<grid_location row='1' column='0' sticky='NW'/>
<action>
<scroll scrolling='partition.scroll' scrolled='partition.list'/>
</action>
@@ -211,95 +216,84 @@ row 4 | |
row 0 | |
row 1 | |
row 2 | |
| _________ __________________________ |
| | | | | |
| | | | | |
| | text | | | |
| | | | | |
| | | | | |
| |_________| | | |
| __________________________ |
| | __________________ | |
| || | ^ | |
| || | | | |
| || | | | |
| || | | | |
| ||__________________| v | |
| |< - - - - - - - - -> | |
| |__________________________| |
| |
| |
| |
row 3 | |
row 4 | |
|____________________________________________________________|
-->
<widget type='Frame' name='mount'>
<grid_management rows='1' columns='2'>
<grid_management rows='1' columns='1'>
<configure row='0' weight='1'/>
<configure column='0' weight='1'/>
<configure column='1' weight='1'/>
</grid_management>
<grid_location row='2' column='0' columnspan='3' sticky='NSWE'/>
<action>
<scroll scrolling='mount.scroll' scrolled='mount.list'/>
</action>
<widget type='Text'>
<widget_attribute width='40' height='15' state='disabled'/>
<grid_location row='0' column='0'/>
</widget>
<grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>
<widget type='Frame'>
<grid_management rows='1' columns='2'>
<grid_management rows='2' columns='2'>
<configure row='0' weight='1'/>
<configure column='0' weight='1'/>
</grid_management>
<grid_location row='0' column='1' columnspan='2'/>
<grid_location row='0' column='0' columnspan='2' padx='20' pady='20' sticky='NSWE'/>
<action>
<scroll scrolling='mount.scroll.v' scrolled='mount.list'/>
<scroll scrolling='mount.scroll.h' scrolled='mount.list'/>
</action>
<widget type='Listbox' name='mount.list'>
<widget_attribute width='40' height='15' listvariable='mount.list'/>
<grid_location row='0' column='0'/>
<widget_attribute listvariable='mount.list'/>
<grid_location row='0' column='0' sticky='NSWE'/>
<variable name='mount.list' type='StringVar'/>
<action init='mount_list_init'/>
<binding sequence='ListboxSelect' function='mount_list_modify' wrap='double'/>
</widget>
<widget type='Scrollbar' name='mount.scroll'>
<widget type='Scrollbar' name='mount.scroll.v'>
<widget_attribute orient='vertical'/>
<grid_location row='0' column='1' sticky='NS'/>
</widget>
<widget type='Scrollbar' name='mount.scroll.h'>
<widget_attribute orient='horizontal'/>
<grid_location row='1' column='0' sticky='WE'/>
</widget>
</widget>
</widget>
<!--
column 1 column 2 column 3
________________________________________________________________________
| ___________ __________ ________ |
| | | host name |__________| domain name |________| |
| | Text | _ IP |________| |
| |___________| NCM |_| dynamic Subnet mask |________| |
| __________ ________ |
| host name |__________| domain name |________| |
| _ IP |________| |
| NCM |_| dynamic Subnet mask |________| |
| _ Gateway |________| |
| |_| static Primary DNS |________| |
| Secondary DNS|________| |
|________________________________________________________________________|
-->
<widget type='Frame' name='network'>
<grid_management rows='1' columns='3'>
<grid_management rows='1' columns='2'>
<configure row='0' weight='1'/>
<configure column='0' weight='1'/>
<configure column='1' weight='1'/>
<configure column='2' weight='1'/>
</grid_management>
<grid_location row='2' column='0' columnspan='3' sticky='NSWE'/>
<grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>
<action init='network_init' quit='network_quit'/>
<widget type='Text'>
<widget_attribute width='40' height='15' state='disabled'/>
<grid_location row='0' column='0'/>
</widget>
<widget type='Frame'>
<grid_management rows='3' columns='2'>
<configure row='0' weight='1'/>
<configure row='1' weight='1'/>
<configure row='2' weight='1'/>
</grid_management>
<grid_location row='0' column='1' sticky='W'/>
<grid_location row='0' column='0'/>
<variable name='network_config_method' type='StringVar'/>
<widget type='Label'>
@@ -329,7 +323,7 @@ row 4 | |
</widget>
<widget type='Frame'>
<grid_location row='0' column='2'/>
<grid_location row='0' column='1'/>
<widget type='Label'>
<widget_attribute text='Domain name'/>
@@ -394,64 +388,65 @@ row 4 | |
</widget>
<!--
column 1 column 2 column 3
________________________________________________________________________
| Mandatory |
| ___________________________________________ |
| | ___________________ __________________ | |
| || mandatory group 1 | | mandatory group2 | | |
| ||___________________| |__________________| | |
| |___________________________________________| |
| |
| Optional |
| _____________________________________________ |
| | _ _ _ | |
| | |_| optional 1 |_| optional 2 |_| optional 3| |
| |_____________________________________________| |
|________________________________________________________________________|
-->
<widget type='Frame' name='software-group'>
<grid_management rows='1' columns='2'>
<configure row='0' weight='1'/>
<grid_management rows='4' columns='1'>
<configure row='1' weight='1'/>
<configure row='3' weight='1'/>
<configure column='0' weight='1'/>
<configure column='1' weight='1'/>
</grid_management>
<grid_location row='2' column='0' columnspan='3' sticky='NSWE'/>
<grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>
<widget type='Text'>
<widget_attribute width='40' height='15' state='disabled'/>
<grid_location row='0' column='0'/>
<widget type='Label'>
<widget_attribute text='Mandatory'/>
<grid_location row='0' column='0' />
</widget>
<widget type='Frame' construct='software_group_mandatory_construct'>
<grid_management rows='x' columns='3'>
<configure column='0' weight='1'/>
<configure column='1' weight='1'/>
<configure column='2' weight='1'/>
</grid_management>
<grid_location row='1' column='0'/>
<!-- a template for software group mandatory item -->
<widget type='Button' >
<widget_attribute text='' command='software_group_mandatory_item'/>
<grid_location row='0' column='0' sticky='W'/>
</widget>
</widget>
<widget type='Frame' name='software_group_content'>
<grid_management rows='4' columns='1'>
<configure row='1' weight='1'/>
<configure row='3' weight='1'/>
<widget type='Label'>
<widget_attribute text='Optional'/>
<grid_location row='2' column='0'/>
</widget>
<widget type='Frame' construct='software_group_optional_construct'>
<grid_management rows='x' columns='3'>
<configure column='0' weight='1'/>
<configure column='1' weight='1'/>
<configure column='2' weight='1'/>
</grid_management>
<grid_location row='0' column='1' sticky='NSWE' />
<widget type='Label'>
<widget_attribute text='Mandatory'/>
<grid_location row='0' column='0'/>
</widget>
<widget type='Frame' construct='software_group_mandatory_construct'>
<grid_management rows='x' columns='3'>
<configure column='0' weight='1'/>
<configure column='1' weight='1'/>
<configure column='2' weight='1'/>
</grid_management>
<grid_location row='1' column='0'/>
<!-- a template for software group mandatory item -->
<widget type='Button' name='software-group-mandatory-item' >
<widget_attribute text='' command='software_group_mandatory_item'/>
<grid_location row='0' column='0' sticky='W'/>
</widget>
</widget>
<widget type='Label'>
<widget_attribute text='Optional'/>
<grid_location row='2' column='0'/>
</widget>
<widget type='Frame' construct='software_group_optional_construct'>
<grid_management rows='x' columns='3'>
<configure column='0' weight='1'/>
<configure column='1' weight='1'/>
<configure column='2' weight='1'/>
</grid_management>
<grid_location row='3' column='0'/>
<action quit='software_group_optional_quit'/>
<!-- a template for software group optional item -->
<widget type='Checkbutton' name='software-group-optional-item'>
<widget_attribute text='' variable='' command='' onvalue='yes' offvalue='no'/>
<grid_location row='0' column='0' sticky='W'/>
</widget>
<grid_location row='3' column='0'/>
<action quit='software_group_optional_quit'/>
<!-- a template for software group optional item -->
<widget type='Checkbutton'>
<widget_attribute text='' variable='' command='' onvalue='yes' offvalue='no'/>
<grid_location row='0' column='0' sticky='W'/>
</widget>
</widget>
</widget>
@@ -520,8 +515,8 @@ 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_box name='previous' type='info' title='install sequence' message='#first-step'/>
<message_box name='next' type='info' title='install sequence' message='#last-step'/>
<!--
column 0 column 1
@@ -612,65 +607,51 @@ row 4 | |
</widget>
</top_window>
<!--
<top_window name='software_package_template' construct='software_package_construct'>
-->
<!--
<top_window name='software_package_template'>
<grid_management rows='4' columns='2'>
<configure row='1' weight='1'/>
<configure row='3' weight='1'/>
<configure column='0' weight='1'/>
</grid_management>
<widget type='Label'>
<widget_attribute text='Mandatory'/>
<grid_location row='0' column='0'/>
</widget>
<widget type='Canvas'>
<grid_location row='1' column='0' sticky='NWSE'/>
</widget>
<widget type='Scrollbar'>
<widget_attribute orient='vertical'/>
<grid_location row='1' column='1' sticky='NSW'/>
</widget>
<message key='#Copyright'>
<English>Copyright 2001-2010 Linx Technology Co., Ltd.</English>
<Chinese>北京凝思科技有限公司 版权所有</Chinese>
</message>
<message key='#first-step'>
<English>You have already been in the first step.</English>
<Chinese>您已到达第一步。</Chinese>
</message>
<message key='#last-step'>
<English>You have already been in the last step.</English>
<Chinese>您已到达最后一步。</Chinese>
</message>
<message key='#NCM'>
<English>Network Configuration Management:</English>
<Chinese>网络配置方式</Chinese>
</message>
<widget type='Label'>
<widget_attribute text='Optional'/>
<grid_location row='2' column='0'/>
</widget>
<widget type='Checkbutton'>
<widget_attribute text='Select all' variable='select_all'/>
<grid_location row='2' column='1'/>
<variable name='select_all' type='StringVar'/>
</widget>
<widget type='Canvas'>
<grid_location row='3' column='0' sticky='NWES'/>
</widget>
<widget type='Scrollbar'>
<widget_attribute orient='vertical'/>
<grid_location row='3' column='1' sticky='NSW'/>
</widget>
</top_window>
-->
<message key='#os-name'>
<English>Rocky 4.2</English>
<Chinese>磐石 4.2</Chinese>
</message>
<message key='#Welcome'>
<English>Welcome to use
Linx Rocky Secure Operating System v4.2</English>
<Chinese>欢迎使用
凝思磐石安全操作系统 v4.2</Chinese>
</message>
<message>
<English>Copyright</English>
<Chinese>版权</Chinese>
</message>
<message key='host name'>
<message>
<English>host name</English>
<Chinese>主机名</Chinese>
</message>
<message key='#NCM'>
<English>Network Configuration Management:</English>
<Chinese>网络配置方式</Chinese>
<message>
<English>install sequence</English>
<Chinese>安装顺序</Chinese>
</message>
<sequence name='main'>