589 lines
22 KiB
XML
589 lines
22 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<interface base_widget='main' sequence='main'>
|
|
<!--
|
|
column 0 column 1 column 2
|
|
____________________________________________________________
|
|
row 0 | logo step_name version |
|
|
row 1 |____________________________________________________________|
|
|
row 2 | |
|
|
row 3 | copyright information |
|
|
row 4 | quit previous next |
|
|
|____________________________________________________________|
|
|
-->
|
|
<widget type='Frame' name='main'>
|
|
<grid_management rows='5' columns='3'>
|
|
<configure row='2' weight='1'/>
|
|
<configure column='0' weight='1'/>
|
|
<configure column='1' weight='3'/>
|
|
<configure column='2' weight='1'/>
|
|
</grid_management>
|
|
<grid_location row='0' column='0' sticky='NSWE'/>
|
|
|
|
<variable name='main.step_name' type='StringVar' />
|
|
<widget type='Label'>
|
|
<widget_attribute image='/home/zhi/work/linx/install/graphicalinstall/images/linxlogo.gif'/>
|
|
<grid_location row='0' column='0' sticky='W' padx='5' pady='5'/>
|
|
</widget>
|
|
<widget type='Label'>
|
|
<widget_attribute textvariable='main.step_name'/>
|
|
<grid_location row='0' column='1' />
|
|
</widget>
|
|
<widget type='Label'>
|
|
<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='Label'>
|
|
<widget_attribute text='Copyright'/>
|
|
<grid_location row='3' column='0' columnspan='3' pady='20'/>
|
|
</widget>
|
|
|
|
<widget type='Button'>
|
|
<widget_attribute text='quit' command='quit'/>
|
|
<grid_location row='4' column='0'/>
|
|
</widget>
|
|
<widget type='Button'>
|
|
<widget_attribute text='previous' command='previous'/>
|
|
<grid_location row='4' column='1'/>
|
|
</widget>
|
|
<widget type='Button'>
|
|
<widget_attribute text='next' command='next'/>
|
|
<grid_location row='4' column='2' pady='20'/>
|
|
</widget>
|
|
|
|
</widget>
|
|
|
|
<!--
|
|
column 0 column 1 column 2
|
|
____________________________________________________________
|
|
row 0 | |
|
|
row 1 | |
|
|
row 2 | Welcome to Rocky OS |
|
|
row 3 | |
|
|
row 4 | |
|
|
|____________________________________________________________|
|
|
-->
|
|
<widget type='Label' name='welcome'>
|
|
<widget_attribute text='Welcome'/>
|
|
<grid_location row='2' column='0' columnspan='3'/>
|
|
</widget>
|
|
|
|
<!--
|
|
column 0 column 1 column 2
|
|
____________________________________________________________
|
|
row 0 | |
|
|
row 1 | |
|
|
row 2 | _________ _________________ |
|
|
| | text | | serial number | |
|
|
| | | | ______________ | |
|
|
| | | || | | |
|
|
| |_________| ||______________| | |
|
|
| |_________________| |
|
|
row 3 | |
|
|
row 4 | |
|
|
|____________________________________________________________|
|
|
-->
|
|
|
|
<widget type='Frame' name='serial_no'>
|
|
<grid_management rows='1' columns='3'>
|
|
<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>
|
|
|
|
<widget type='Frame'>
|
|
<grid_location row='0' column='1'/>
|
|
<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'/>
|
|
<action init='serial_no_init' quit='serial_no_quit'/>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
|
|
<!--
|
|
column 0 column 1 column 2
|
|
____________________________________________________________
|
|
row 0 | |
|
|
row 1 | |
|
|
row 2 | |
|
|
| _________ _________ |
|
|
| | | device: |_________| |
|
|
| | | __________________________ |
|
|
| | text | | | |
|
|
| | | | | |
|
|
| | | | | |
|
|
| |_________| | | |
|
|
| |__________________________| |
|
|
| |
|
|
| new edit delete reset |
|
|
| |
|
|
row 3 | |
|
|
row 4 | |
|
|
|____________________________________________________________|
|
|
-->
|
|
<widget type='Frame' name='partition'>
|
|
<grid_management rows='3' columns='2'>
|
|
<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>
|
|
|
|
<widget type='Frame'>
|
|
<grid_location row='0' column='1' sticky='WS' pady='10'/>
|
|
<widget type='Label'>
|
|
<widget_attribute text='device:'/>
|
|
<grid_location row='0' column='0' />
|
|
</widget>
|
|
<widget type='Listbox'>
|
|
<widget_attribute width='20' height='10'/>
|
|
<grid_location row='0' column='1' padx='10'/>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget type='Frame'>
|
|
<grid_management rows='2' columns='5'>
|
|
<configure column='3' weight='1'/>
|
|
</grid_management>
|
|
<grid_location row='1' column='1' sticky='NW'/>
|
|
<action>
|
|
<scroll scrolling='partition.scroll' scrolled='partition.list'/>
|
|
</action>
|
|
<widget type='Listbox' name='partition.list'>
|
|
<widget_attribute width='60'/>
|
|
<grid_location row='0' column='0' columnspan='4' sticky='NWS' pady='10'/>
|
|
</widget>
|
|
|
|
<widget type='Scrollbar' name='partition.scroll'>
|
|
<widget_attribute orient='vertical'/>
|
|
<grid_location row='0' column='4' sticky='NS' pady='10'/>
|
|
</widget>
|
|
|
|
<widget type='Button'>
|
|
<widget_attribute text='new'/>
|
|
<grid_location row='1' column='0' sticky='W'/>
|
|
</widget>
|
|
|
|
<widget type='Button'>
|
|
<widget_attribute text='edit'/>
|
|
<grid_location row='1' column='1' padx='10'/>
|
|
</widget>
|
|
|
|
<widget type='Button'>
|
|
<widget_attribute text='delete'/>
|
|
<grid_location row='1' column='2' padx='10'/>
|
|
</widget>
|
|
|
|
<widget type='Button'>
|
|
<widget_attribute text='reset'/>
|
|
<grid_location row='1' column='3' sticky='E'/>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
|
|
<!--
|
|
column 0 column 1 column 2
|
|
____________________________________________________________
|
|
row 0 | |
|
|
row 1 | |
|
|
row 2 | |
|
|
| _________ __________________________ |
|
|
| | | | | |
|
|
| | | | | |
|
|
| | text | | | |
|
|
| | | | | |
|
|
| | | | | |
|
|
| |_________| | | |
|
|
| |__________________________| |
|
|
| |
|
|
| |
|
|
| |
|
|
row 3 | |
|
|
row 4 | |
|
|
|____________________________________________________________|
|
|
-->
|
|
|
|
<widget type='Frame' name='mount'>
|
|
<grid_management rows='1' columns='2'>
|
|
<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>
|
|
|
|
<widget type='Frame'>
|
|
<grid_management rows='1' columns='2'>
|
|
<configure row='0' weight='1'/>
|
|
<configure column='0' weight='1'/>
|
|
</grid_management>
|
|
<grid_location row='0' column='1' columnspan='2'/>
|
|
|
|
<widget type='Listbox' name='mount.list'>
|
|
<widget_attribute width='40' height='15' listvariable='mount.list'/>
|
|
<grid_location row='0' column='0'/>
|
|
<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_attribute orient='vertical'/>
|
|
<grid_location row='0' column='1' sticky='NS'/>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
|
|
<!--
|
|
column 1 column 2 column 3
|
|
________________________________________________________________________
|
|
| ___________ __________ ________ |
|
|
| | | host name |__________| domain name |________| |
|
|
| | Text | _ IP |________| |
|
|
| |___________| NCM |_| dynamic Subnet mask |________| |
|
|
| _ Gateway |________| |
|
|
| |_| static Primary DNS |________| |
|
|
| Secondary DNS|________| |
|
|
|________________________________________________________________________|
|
|
-->
|
|
<widget type='Frame' name='network'>
|
|
<grid_management rows='1' columns='3'>
|
|
<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'/>
|
|
<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'/>
|
|
<variable name='network_config_method' type='StringVar'/>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='host name'/>
|
|
<grid_location row='0' column='0' sticky='W'/>
|
|
</widget>
|
|
<widget type='Entry'>
|
|
<widget_attribute width='12' textvariable='network_host_name'/>
|
|
<grid_location row='0' column='1' sticky='W'/>
|
|
<variable name='network_host_name' type='StringVar'/>
|
|
</widget>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='#NCM'/>
|
|
<grid_location row='1' column='0' rowspan='2' sticky='W'/>
|
|
</widget>
|
|
|
|
<widget type='Radiobutton' name='network_config_dynamic'>
|
|
<widget_attribute text='dynamic' variable='network_config_method' value='dynamic' command='ncm_dynamic'/>
|
|
<grid_location row='1' column='1' sticky='W'/>
|
|
</widget>
|
|
|
|
<widget type='Radiobutton' name='network_config_static'>
|
|
<widget_attribute text='static' variable='network_config_method' value='static' command='ncm_static'/>
|
|
<grid_location row='2' column='1' sticky='W'/>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget type='Frame'>
|
|
<grid_location row='0' column='2'/>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='Domain name'/>
|
|
<grid_location row='0' column='0'/>
|
|
</widget>
|
|
<widget type='Entry' name='network_domain_name'>
|
|
<widget_attribute width='16' textvariable='network_domain_name'/>
|
|
<grid_location row='0' column='1' pady='2'/>
|
|
<variable name='network_domain_name' type='StringVar'/>
|
|
</widget>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='IP'/>
|
|
<grid_location row='1' column='0'/>
|
|
</widget>
|
|
<widget type='Entry' name='network_ip'>
|
|
<widget_attribute width='16' textvariable='network_ip'/>
|
|
<grid_location row='1' column='1' pady='2'/>
|
|
<variable name='network_ip' type='StringVar'/>
|
|
</widget>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='Subnet mask'/>
|
|
<grid_location row='2' column='0'/>
|
|
</widget>
|
|
<widget type='Entry' name='network_subnet_mask'>
|
|
<widget_attribute width='16' textvariable='network_subnet_mask'/>
|
|
<grid_location row='2' column='1' pady='2'/>
|
|
<variable name='network_subnet_mask' type='StringVar'/>
|
|
</widget>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='Gateway'/>
|
|
<grid_location row='3' column='0'/>
|
|
</widget>
|
|
<widget type='Entry' name='network_gateway'>
|
|
<widget_attribute width='16' textvariable='network_gateway'/>
|
|
<grid_location row='3' column='1' pady='2'/>
|
|
<variable name='network_gateway' type='StringVar'/>
|
|
</widget>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='Primary DNS'/>
|
|
<grid_location row='4' column='0'/>
|
|
</widget>
|
|
<widget type='Entry' name='network_primary_dns'>
|
|
<widget_attribute width='16' textvariable='network_primary_dns'/>
|
|
<grid_location row='4' column='1' pady='2'/>
|
|
<variable name='network_primary_dns' type='StringVar'/>
|
|
</widget>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='Secondary DNS'/>
|
|
<grid_location row='5' column='0'/>
|
|
</widget>
|
|
<widget type='Entry' name='network_secondary_dns'>
|
|
<widget_attribute width='16' textvariable='network_secondary_dns'/>
|
|
<grid_location row='5' column='1' pady='2'/>
|
|
<variable name='network_secondary_dns' type='StringVar'/>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
|
|
<!--
|
|
|
|
-->
|
|
|
|
<widget type='Frame' name='software-group'>
|
|
<grid_management rows='1' columns='2'>
|
|
<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'/>
|
|
|
|
<widget type='Text'>
|
|
<widget_attribute width='40' height='15' state='disabled'/>
|
|
<grid_location row='0' column='0'/>
|
|
</widget>
|
|
|
|
<widget type='Frame' name='software_group_content' construct='software_group_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' />
|
|
<action init='software_group_init' quit='software_group_quit'/>
|
|
<!-- a template for software group item -->
|
|
<widget type='Checkbutton' name='software-group-item'>
|
|
<widget_attribute text='' command='software_group_item' variable='' onvalue='on' offvalue='off'/>
|
|
<grid_location row='0' column='0'/>
|
|
</widget>
|
|
</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'/>
|
|
|
|
<!--
|
|
column 0 column 1
|
|
________________________________________________
|
|
row 0 | Device /dev/xxx |
|
|
row 1 | Size xxx |
|
|
| _____________ |
|
|
row 2 | Directory |_____________| |
|
|
| _ _ |
|
|
row 3 | |_| Format |_| Not-Format |
|
|
| ___________________ |
|
|
row 4 | | | |
|
|
| filesystem | | |
|
|
| | | |
|
|
| |___________________| |
|
|
| |
|
|
row 5 | OK Cancel |
|
|
|________________________________________________|
|
|
-->
|
|
<top_window name='mount_list_modify'>
|
|
<grid_management rows='1' columns='1'>
|
|
<configure row='0' weight='1'/>
|
|
<configure column='0' weight='1'/>
|
|
</grid_management>
|
|
|
|
<widget type='Frame'>
|
|
<grid_location row='0' column='0'/>
|
|
<variable name='mp_top_format' type='StringVar'/>
|
|
<action init='mp_top_init'/>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='Device'/>
|
|
<grid_location row='0' column='0' padx='10' sticky='W'/>
|
|
</widget>
|
|
<widget type='Label'>
|
|
<widget_attribute textvariable='mp_top_dev'/>
|
|
<grid_location row='0' column='1' sticky='W'/>
|
|
<variable name='mp_top_dev' type='StringVar'/>
|
|
</widget>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='Size'/>
|
|
<grid_location row='1' column='0' padx='10' sticky='W'/>
|
|
</widget>
|
|
<widget type='Label'>
|
|
<widget_attribute textvariable='mp_top_size'/>
|
|
<grid_location row='1' column='1' sticky='W'/>
|
|
<variable name='mp_top_size' type='StringVar'/>
|
|
</widget>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='Directory'/>
|
|
<grid_location row='2' column='0' padx='10' sticky='W'/>
|
|
</widget>
|
|
<widget type='Entry'>
|
|
<widget_attribute width='10' textvariable='mp_top_dir'/>
|
|
<grid_location row='2' column='1' sticky='W'/>
|
|
<variable name='mp_top_dir' type='StringVar'/>
|
|
</widget>
|
|
|
|
<widget type='Radiobutton' name='mp_top_format'>
|
|
<widget_attribute text='Format' variable='mp_top_format' value='yes'/>
|
|
<grid_location row='3' column='0'/>
|
|
</widget>
|
|
<widget type='Radiobutton' name='mp_top_not_format'>
|
|
<widget_attribute text='Not-Format' variable='mp_top_format' value='no'/>
|
|
<grid_location row='3' column='1'/>
|
|
</widget>
|
|
|
|
<widget type='Label'>
|
|
<widget_attribute text='Filesystem'/>
|
|
<grid_location row='4' column='0' sticky='W'/>
|
|
</widget>
|
|
<widget type='Listbox' name='mp_top_fs'>
|
|
<widget_attribute listvariable='mp_top_fs'/>
|
|
<grid_location row='4' column='1' sticky='W'/>
|
|
<variable name='mp_top_fs' type='StringVar' value='ext2 ext3 reiserfs xfs jfs'/>
|
|
</widget>
|
|
|
|
<widget type='Button'>
|
|
<widget_attribute text='OK' command='mp_top_ok'/>
|
|
<grid_location row='5' column='0'/>
|
|
</widget>
|
|
<widget type='Button'>
|
|
<widget_attribute text='Cancel' command='mp_top_cancel'/>
|
|
<grid_location row='5' column='1'/>
|
|
</widget>
|
|
</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>
|
|
|
|
<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>
|
|
<English>Copyright</English>
|
|
<Chinese>版权</Chinese>
|
|
</message>
|
|
|
|
<message key='host name'>
|
|
<English>host name</English>
|
|
<Chinese>主机名</Chinese>
|
|
</message>
|
|
|
|
<message key='#NCM'>
|
|
<English>Network Configuration Management:</English>
|
|
<Chinese>网络配置方式</Chinese>
|
|
</message>
|
|
|
|
<sequence name='main'>
|
|
<widget name='welcome'/>
|
|
<widget name='serial_no'/>
|
|
<widget name='mount'/>
|
|
<widget name='network'/>
|
|
<widget name='software-group'/>
|
|
</sequence>
|
|
</interface>
|