<?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 | __________                                                 |
      ||          |                                                |
      || text     |                                                |
      ||__________|                                                |
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='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='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='Text' name='main.help'>
      <widget_attribute width='30' state='disable'/>
      <grid_location row='2' column='0' padx='10' pady='10' sticky='NSWE'/>
    </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                                |
row 3 |                                                            |
row 4 |                                                            |
      |____________________________________________________________|
-->
  <widget type='Label' name='welcome'>
    <widget_attribute text='#Welcome'/>
    <grid_location row='2' column='1' columnspan='2'/>
  </widget>

<!--
        column 0            column 1            column 2
       ____________________________________________________________
row 0 |                                                            |
row 1 |                                                            |
row 2 |                      _________________                     |
      |                     | serial number   |                    |
      |                     | ______________  |                    |
      |                     ||              | |                    |
      |                     ||______________| |                    |
      |                     |_________________|                    |
row 3 |                                                            |
row 4 |                                                            |
      |____________________________________________________________|
-->

  <widget type='Frame' name='serial number'>
    <grid_management rows='1' columns='1'>
      <configure row='0' weight='1'/>
      <configure column='0' weight='1'/>
    </grid_management>
    <grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>

    <widget type='Frame'>
      <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' sticky='W'/>
      <variable name='serial_no.number' type='StringVar' value=''/>
      <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: |_________|        |           |
      |                    |___________________________|           |
      |                     _______________________________        |
      |                    | __________________________    |       |
      |                    ||                          | ^ |       |
      |                    ||                          | | |       |
      |                    ||                          | | |       |
      |                    ||                          | | |       |
      |                    ||__________________________| v |       |
      |                    |                               |       |
      |                    | new edit delete       reset   |       |
      |                    |_______________________________|       |
row 3 |                                                            |
row 4 |                                                            |
      |____________________________________________________________|
-->

<!--
  partition is currently unused
-->

  <widget type='Frame' name='partition'>
    <grid_management rows='2' columns='1'>
      <configure row='0' weight='1'/>
      <configure row='1' weight='1'/>
      <configure column='0' weight='1'/>
    </grid_management>

    <grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>

    <widget type='Frame'>
      <grid_location row='0' column='0' 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='0' 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 |           _______________    __________________                      |
      |          |  raw          |  |       __________ |                     |
      |          | ___________   |  |      | active   ||                     |
      |          ||           |^ |  | ____ | ________ ||                     |
      |          ||           || |  || /_ |||        |||                     |
      |          ||           || |  ||_\__|||        |||                     |
      |          ||           || |  | ____ ||        |||                     |
      |          ||           || |  || _\ |||        |||                     |
      |          ||           || |  ||__/_|||________|||   _________________ |
      |          ||           || |  |      |__________||  |       _________ ||
      |          ||           || |  |__________________|  |      | Device  |||
      |          ||           || |   __________________   |      | _______ |||
      |          ||           || |  |       __________ |  | ____ ||       ||||
      |          ||           || |  |      | spare    ||  || /_ |||       ||||
      |          ||           || |  | ____ | ________ ||  ||_\__|||       ||||
      |          ||           || |  || /_ |||        |||  | ____ ||       ||||
      |          ||___________|v |  ||_\__|||        |||  || _\ |||       ||||
      |          |_______________|  | ____ ||        |||  ||__/_|||       ||||
      |                             || _\ |||        |||  |      ||       ||||
      |                             ||__/_|||________|||  |      ||_______||||
      |                             |      |__________||  |      |_________|||
      |                             |__________________|  |_________________||
      |                              __________________                      |
      |                             |     level        |                     |
      |                             |   @ Raid 0       |                     |
      |                             |   @ Raid 1       |                     |
      |                             |   @ Raid 5       |                     |
      |                             |__________________|                     |
      |______________________________________________________________________|
-->
  <widget type='Frame' name='raid'>
    <grid_management rows='3' columns='3'>
      <configure row='0' weight='1'/>
      <configure row='1' weight='1'/>
      <configure column='0' weight='1'/>
      <configure column='1' weight='1'/>
      <configure column='2' weight='1'/>
    </grid_management>
    <grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>

    <widget type='Frame'>
      <grid_management rows='2' columns='2'>
        <configure row='1' weight='1'/>
        <configure column='0' weight='1'/>
      </grid_management>
      <grid_location row='0' column='0' rowspan='3' sticky='NSWE'/>
      <action>
        <scroll scrolling='raid_raw.scroll' scrolled='raid_raw.list'/>
      </action> 
      
    <widget type='Label'>
      <widget_attribute text='Raw'/>
      <grid_location row='0' column='0' sticky='W'/>
    </widget>

    <widget type='Listbox' name='raid_raw.list'>
      <widget_attribute listvariable='raid_raw_devs'/>
      <grid_location row='1' column='0' sticky='NWES'/>
      <variable name='raid_raw_devs' type='StringVar'/>
      <action init='raid_raw_init'/>
    </widget>

    <widget type='Scrollbar' name='raid_raw.scroll'>
      <widget_attribute orient='vertical'/>
      <grid_location row='1' column='1' sticky='NS'/>
    </widget>
  </widget>

  <!-- active dev list -->
  <widget type='Frame'>
    <grid_management rows='3' columns='2'>
      <configure row='1' weight='1'/>
      <configure row='2' weight='1'/>
      <configure column='1' weight='1'/>
    </grid_management>
    <grid_location row='0' column='1' sticky='NWES'/>

    <widget type='Label'>
      <widget_attribute text='Active'/>
      <grid_location row='0' column='1' sticky='W'/>
    </widget>

    <widget type='Button'>
      <widget_attribute text='-&gt;' command='raid_raw_to_active'/>
      <grid_location row='1' column='0' sticky='S'/>
    </widget>

    <widget type='Button'>
      <widget_attribute text='&lt;-' command='raid_active_to_raw'/>
      <grid_location row='2' column='0' sticky='N'/>
    </widget>

    <widget type='Listbox' name='raid_active.list'>
      <widget_attribute listvariable='raid_active_devs'/>
      <grid_location row='1' column='1' rowspan='2' sticky='NWES'/>
      <variable name='raid_active_devs' type='StringVar'/>
    </widget>
  </widget>

  <!-- spare dev list -->
  <widget type='Frame'>
    <grid_management rows='3' columns='2'>
      <configure row='1' weight='1'/>
      <configure row='2' weight='1'/>
      <configure column='1' weight='1'/>
    </grid_management>
    <grid_location row='1' column='1' sticky='NWES'/>

    <widget type='Label'>
      <widget_attribute text='Spare'/>
      <grid_location row='0' column='1' sticky='W'/>
    </widget>

    <widget type='Button'>
      <widget_attribute text='-&gt;' command='raid_raw_to_spare'/>
      <grid_location row='1' column='0' sticky='S'/>
    </widget>

    <widget type='Button'>
      <widget_attribute text='&lt;-' command='raid_spare_to_raw'/>
      <grid_location row='2' column='0' sticky='N'/>
    </widget>

    <widget type='Listbox' name='raid_spare.list'>
      <widget_attribute listvariable='raid_spare_devs'/>
      <grid_location row='1' column='1' rowspan='2' sticky='NWES'/>
      <variable name='raid_spare_devs' type='StringVar'/>
    </widget>
  </widget>

  <!-- radio button for raid level -->
  <widget type='Frame'>
    <grid_location row='2' column='1' />
    <variable name='raid_level' type='StringVar'/>
    <widget type='Label'>
      <widget_attribute text='Level'/>
      <grid_location row='0' column='0' sticky='W'/>
    </widget>
    <widget type='Radiobutton' name='raid_level_0'>
      <widget_attribute text='Raid 0' variable='raid_level' value='0'/>
      <grid_location row='1' column='0'/>
    </widget>

    <widget type='Radiobutton' name='raid_level_1'>
      <widget_attribute text='Raid 1' variable='raid_level' value='1'/>
      <grid_location row='2' column='0'/>
    </widget>

    <widget type='Radiobutton' name='raid_level_5'>
      <widget_attribute text='Raid 5' variable='raid_level' value='5'/>
      <grid_location row='3' column='0'/>
    </widget>
  </widget>

  <!-- raid partitions -->
  <widget type='Frame'>
    <grid_management rows='3' columns='2'>
    <configure row='1' weight='1'/>
    <configure row='2' weight='1'/>
    <configure column='1' weight='1'/>
    </grid_management>

    <grid_location row='0' column='2' rowspan='2'/>

    <widget type='Label'>
      <widget_attribute text='Device'/>
      <grid_location row='0' column='1' sticky='W'/>
    </widget>

    <widget type='Button'>
      <widget_attribute text='-&gt;' command='raid_device_add'/>
      <grid_location row='1' column='0' sticky='S'/>
    </widget>

    <widget type='Button'>
      <widget_attribute text='&lt;-' command='raid_device_delete'/>
      <grid_location row='2' column='0' sticky='N'/>
    </widget>

    <widget type='Listbox' name='raid_dev.list'>
      <widget_attribute listvariable='raid_devs'/>
      <grid_location row='1' column='1' rowspan='2'/>
      <variable name='raid_devs' type='StringVar'/>
      <action init='raid_device_init'/>
      <binding sequence='&lt;&lt;ListboxSelect&gt;&gt;' function='raid_device_list_detail'/>
    </widget>
  </widget>

  <!-- display area, for raid device detail -->
  <widget type='Frame'>
    <grid_management rows='3' columns='1'>
      <configure row='0' weight='1'/>
      <configure row='1' weight='1'/>
      <configure row='2' weight='2'/>
    </grid_management>
    <grid_location row='2' column='2'/>

    <widget type='Label'>
      <widget_attribute textvariable='raid_detail_active'/>
      <grid_location row='0' column='0' sticky='W' />
      <variable name='raid_detail_active' type='StringVar'/>
    </widget>

    <widget type='Label'>
      <widget_attribute textvariable='raid_detail_spare'/>
      <grid_location row='1' column='0' sticky='W' />
      <variable name='raid_detail_spare' type='StringVar'/>
    </widget>

    <widget type='Label'>
      <widget_attribute textvariable='raid_detail_level'/>
      <grid_location row='2' column='0' sticky='W' />
      <variable name='raid_detail_level' type='StringVar'/>
    </widget>
  </widget>
</widget>

<!--
        column 0            column 1            column 2
       ____________________________________________________________
row 0 |                                                            |
row 1 |                                                            |
row 2 |                                                            |
      |                      __________________________            |
      |                     | __________________       |           |
      |                     ||                  | ^    |           |
      |                     ||                  | |    |           |
      |                     ||                  | |    |           |
      |                     ||                  | |    |           |
      |                     ||__________________| v    |           |
      |                     |< - - - - - - - - ->      |           |
      |                     |__________________________|           |
      |                                                            |
      |                                                            |
row 3 |                                                            |
row 4 |                                                            |
      |____________________________________________________________|
-->

  <widget type='Frame' name='mount'>
    <grid_management rows='1' columns='1'>
      <configure row='0' weight='1'/>
      <configure column='0' weight='1'/>
    </grid_management>
    <grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>
      <action quit='mount_quit'/>

    <widget type='Frame'>
      <grid_management rows='2' columns='2'>
        <configure row='0' weight='1'/>
        <configure column='0' weight='1'/>
      </grid_management>
      <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 listvariable='mount.list'/>
        <grid_location row='0' column='0' sticky='NSWE'/>
        <variable name='mount.list' type='StringVar'/>
        <action init='mount_list_init'/>
        <binding sequence='&lt;&lt;ListboxSelect&gt;&gt;' function='mount_list_modify'/>
      </widget>

      <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  |________|  |
    |                              _                     IP      |________|  |
    |                    NCM      |_| dynamic       Subnet mask  |________|  |
    |                              _                Gateway      |________|  |
    |                             |_| static        Primary DNS  |________|  |
    |                                               Secondary DNS|________|  |
    |________________________________________________________________________|
-->
  <widget type='Frame' name='network'>
    <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='1' columnspan='2' sticky='NSWE'/>

    <action init='network_init' quit='network_quit'/>

    <widget type='Frame'>
      <grid_location row='0' column='0'/>
      <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' value='localhost'/>
      </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='1'/>
      <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>

<!--
        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='4' columns='1'>
      <configure row='1' weight='1'/>
      <configure row='3' weight='1'/>
      <configure column='0' weight='1'/>
    </grid_management>
    <grid_location row='2' column='1' columnspan='2' 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' >
        <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'>
        <widget_attribute text='' variable='' command='' onvalue='yes' offvalue='no'/>
        <grid_location row='0' column='0' sticky='W'/>
      </widget>
    </widget>
  </widget>

<!--
       column1           column2                 column3
    _____________________________________________________
   |                                                     |
   |                     ____________________            |
   |                    |                    |     ^     |
   |                    |                    |     |     |
   |                    |                    |     |     |
   |                    |                    |     |     |
   |                    |____________________|     v     |
   |                    <- - - - - - - - - - ->          |
   |_____________________________________________________|

-->

  <widget type='Frame' name='dependency'>
    <grid_management rows='2' columns='2'>
      <configure row='0' weight='1'/>
      <configure column='0' weight='1'/>
    </grid_management>
    <grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>
    <action>
      <scroll scrolling='dependency.scroll.v' scrolled='dependency.list'/>
      <scroll scrolling='dependency.scroll.h' scrolled='dependency.list'/>
    </action>
    <widget type='Listbox' name='dependency.list'>
      <widget_attribute listvariable='dependency.list'/>
      <grid_location row='0' column='0' padx='30' pady='30' sticky='NSWE'/>
      <variable name='dependency.list' type='StringVar'/>
      <action init='dependency_fun_pkg_display'/>
    </widget>
    <widget type='Scrollbar' name='dependency.scroll.v'>
      <widget_attribute orient='vertical'/>
      <grid_location row='0' column='1' pady='30' sticky='NS'/>
    </widget>
    <widget type='Scrollbar' name='dependency.scroll.h'>
      <widget_attribute orient='horizontal'/>
      <grid_location row='1' column='0' padx='30' sticky='WE'/>
    </widget>
  </widget>

<!--
        column1      column2       column3  
      _____________________________________________
     |  _             _             _              |
     | |_|service 1  |_|service 2  |_|service 3    |
     |     ......                                  |
     |_____________________________________________|
-->
  <widget type='Frame' name='service' construct='service_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='2' column='1' columnspan='2' sticky='NSWE'/>
    <action init='service_init' quit='service_quit'/>
    <!-- a template for service item -->
    <widget type='Checkbutton' name='service-item'>
      <widget_attribute text='' variable='' onvalue='yes' offvalue='no'/>
      <grid_location row='0' column='0' sticky='W'/>
    </widget>
  </widget>

<!--
       column1           column2                 column3
    _____________________________________________________
   |                                                     |
   |                     ____________________            |
   |                    |                    |     ^     |
   |                    |                    |     |     |
   |                    |                    |     |     |
   |                    |                    |     |     |
   |                    |____________________|     v     |
   |                    <- - - - - - - - - - ->          |
   |_____________________________________________________|

-->

  <widget type='Frame' name='prepar_installation'>
    <grid_management rows='2' columns='2'>
      <configure row='0' weight='1'/>
      <configure column='0' weight='1'/>
    </grid_management>
    <grid_location row='2' column='1' columnspan='2' sticky='NSWE'/>
    <action>
      <scroll scrolling='prepar_installation.scroll.v' scrolled='prepar_installation.text'/>
      <scroll scrolling='prepar_installation.scroll.h' scrolled='prepar_installation.text'/>
    </action>
    <widget type='Text' name='prepar_installation.text'>
      <grid_location row='0' column='0' padx='30' pady='30' sticky='NSWE'/>
      <action init='prepar_installation_init'/>
    </widget>
    <widget type='Scrollbar' name='prepar_installation.scroll.v'>
      <widget_attribute orient='vertical'/>
      <grid_location row='0' column='1' pady='30' sticky='NS'/>
    </widget>
    <widget type='Scrollbar' name='prepar_installation.scroll.h'>
      <widget_attribute orient='horizontal'/>
      <grid_location row='1' column='0' padx='30' sticky='WE'/>
    </widget>
  </widget>

  <message_box name='next' type='askokcancel' title='Linx' message='#installation-confirmation'/>
  <message_box name='previous' type='showinfo' title='Linx' message='#first-step'/>
  <message_box name='raid_add_warning' type='showwarning' title='Linx' message='#raid-add-warning'/>
  <message_box name='raid_delete_warning' type='showwarning' title='Linx' message='#raid-delete-warning'/>
  <message_box name='raid_add_active_numbers' type='showwarning' title='Linx' message='#raid-add-active-numbers'/>
  <message_box name='raid_add_active_numbers_2' type='showwarning' title='Linx' message='#raid-add-active-numbers-2'/>
  <message_box name='check_partitions' type='askokcancel' title='Linx' message='#check-partitions'/>
  <message_box name='check_mount_point' type='showwarning' title='Linx' message='#check-mount-point'/>
  <message_box name='check_special_mount' type='showwarning' title='Linx' message='#check-special-mount'/>
  <message_box name='check_ip_hostname' type='showwarning' title='Linx' message='#check-ip-hostname'/>
<!--
                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 swap vfat'/>
      </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>
	
  <text key='#check-partitions'>
      <English>Sorry, Your hard disk have no partition, \nYou may not perform the following operations!\nContinue or not?</English>
      <Chinese>对不起，您的硬盘还没有分区,可能无法进行下面的操作！继续(Y）/返回（N）？</Chinese>
  </text>   

  <text key='#check-special-mount'>
    <English>Special platform to set a special mount point, please refer to the left of the help documentation</English>
    <Chinese>特殊的平台需要设置特殊挂载点，请参考左边的帮助文档</Chinese>
  </text>   

  <text key='#check-mount-point'>
    <English>The mount point couldn't be mounted on because it has been used or it's particular. Plase read help infomation!</English>
    <Chinese>挂载点已经被使用或者这个是一个特殊的挂载点, 不能这样挂载, 请看帮助文档</Chinese>
  </text>   

  <text key='#check-ip-hostname'>
    <English>Hostname must be configured. If you choose a static way to set an IP address,the ip address, netmask, gateway, DNS server must be configured.</English>
    <Chinese>主机名不能为空.如果是静态IP方式,ip地址,子网掩码,网关,DNS地址都不能为空,请按正确方式填写,详细内容请看帮助文档.</Chinese>
  </text>

  <text key='#Copyright'>
    <English>Copyright 2001-2010 Linx Technology Co., Ltd.</English>
    <Chinese>北京凝思科技有限公司 版权所有</Chinese>
  </text>

  <text key='#dependency.help'>
    <English>
    There are two kinds of dependent relationships. Dependent Functions and Dependent Packages.
    Dependent Functions ：To provide systems function of packages. the left column is the systematic functions, the right column provides function of packages.
    Dependent Packages : Current selection of the dependent packages on the missing package. The software package in the left column is depended by the software packages in the right column.
    </English>
    <Chinese>
    依赖关系分为两部分:功能依赖和软件包依赖。
    功能依赖：给出了提供系统功能所需要的软件包。左边列出来的是系统的功能，右边是提供功能的软件包。
    软件包依赖：当前选择安装的软件包所缺失的依赖软件包。左边列出来的软件包是右边软件包的依赖软件包
    </Chinese>
  </text>

  <text key='#first-step'>
    <English>You have already been in the first step.</English>
    <Chinese>您已到达第一步。</Chinese>
  </text>

  <text key='#prepar_installation.help'>
    <English>
    Installation information recorded the configuration the user chose during the installation, including the operation to the physical hard disks, the software packages chose to install, the selected self-starting servers since system startup, etc. 
    </English>
    <Chinese>
    安装信息记录了用户在安装过程中所配置的数据。内容包括：对物理硬盘的操作，选择安装的软件包，选择系统启动时自启的服务等。
    </Chinese>
  </text>

  <text key='#last-step'>
    <English>You have already been in the last step.</English>
    <Chinese>您已到达最后一步。</Chinese>
  </text>

  <text key='#mount.help'>
    <English>
    There are five columns in the mount point display frame. The first column lists the hard disk partitions, such as sdaX, mdx. The second lists the mount points. The third lists the file system type of the partitions. The fourth lists the choices whether to format the partitions, "yes" means do , "no" means don't . The fifth lists the sizes of the partitions or the raid devices. 
    Click one row to change configurations of the hard disk partition, including the mount point, whether to format the partition, the file system type, etc.
    Note: 1、some of mount point is not hanging out, E.g: /etc、/bin、/sbin、/lib.
    2、some of mount point is not mounting on reiserfs and xfs filesystem, E.g: /, /boot
    3、when "/" hanging on Raid device, "/boot" must be hang out. 
    4、If the processor is Series of Itanium, "/tmppoint" should be hang out ,which required to turn into  format of vfat  .  
    </English>
    <Chinese>
    设置挂载点显示框中分为五列，第一列是硬盘分区，如sdaX、mdX。第二列是挂载点，是挂载硬盘分区时所在的目录。第三列是硬盘分区的文件系统类型。第四列是指是否要格式化该硬盘分区，no表示不格式化,yes表示要格式化。第五列是各硬盘分区或raid设备的大小。
    点击该行可以改变该行的属性配置，包括：挂载点目录、是否格式化硬盘分区、文件系统类型。
    注意：1、有些挂载点不能单挂出去，例如：/etc,/bin,/sbin,/lib。
    2、有些挂载点不能挂载reiserfs、xfs文件系统，例如：/,/boot。
    3、当"/"挂载在raid设备时，"/boot"挂载点必须单挂出来。
    4、当处理器为安腾系列时，需要挂载"/tmppoint"，且格式化为vfat格式。
    </Chinese>
    </text>

  <text key='#network.help'>
    <English>
    Hostname is used to identify computers. It could identify a specific computer system in various forms of electronic transmissions.
    The installation program offers two ways to set an IP address of the host. One is automatically configuration (DHCP) and the other is manually configuration.
    Automatically Configuration: DHCP allows a computer to be configured automatically. The DHCP sever will allocate an IP address to the host since the host startup. If you want to choose this way to get an IP address, make sure there is an DHCP sever in the network.
    Manually configuration: You could manually configure an static IP address, netmask, gateway and DNS server. If you choose to use this way to set an IP address, the netmask, gateway, DNS server and domain must be configured also.
    Domain could be a definitized name or location in the internet used by an unit, an organization or private person.
    IP address, netmask, gateway, primary DNS server, secondary DNS server: Input four numbers, each ranging from 0 to 255, separated by dots, e.g., 192.168.1.1 .
    </English>
    <Chinese>    
    主机名标识计算机系统，主要用于各种形式的电子传输，以鉴别特定的计算机系统。
    安装程序提供DHCP动态分配IP和静态配置IP。
    DHCP动态分配IP：采用动态的IP地址，系统每次启动均由DHCP服务器分配。如果使用动态分配IP的方式，必须保证计算机所处的网络环境中存在DHCP服务器。
    静态配置IP：采用静态的IP地址、子网掩码、网关和DNS服务器,当选择静态配置IP时，IP地址、子网掩码、网关、DNS服务器、域名不能为空。
    域名：表示一个单位、机构或个人在Internet上有一个确定的名称或位置。
    IP地址、子网掩码、网关、首选DNS、备用DNS：输入四个0~255的数字，用点隔开，如192.168.1.1
    </Chinese>
  </text>

  <text key='#NCM'>
    <English>Network Configuration Management:</English>
    <Chinese>网络配置方式</Chinese>
  </text>

  <text key='#os-name'>
    <English>Rocky 4.2</English>
    <Chinese>磐石 4.2</Chinese>
  </text>

  <text key='#raid-add-active-numbers'>
    <English>Making a raid0 or raid1 needs two or more partitions.</English>
    <Chinese>当制作raid0或raid1时，硬盘分区必须两个或两个以上。</Chinese>
  </text>

  <text key='#raid-add-active-numbers-2'>
    <English>Making a raid5 needs three or more partitions</English>
    <Chinese>当制作raid5的时,硬盘分区必须三个或三个以上。</Chinese>
  </text>

  <text key='#raid-add-warning'>
    <English>If you want to make a raid, you should choose a level of raid, and the active device list mustn't be null.</English>
    <Chinese>当添加raid设备时，使用设备列表不能为空，并且必须选定一个raid级别。</Chinese>
  </text>

  

  <text key='#raid-delete-warning'>
    <English>An existing raid, which wasn't made during this installation process, can't be deleted.</English>
    <Chinese>对于一个早已存在的raid设备（不是由安装程序创建的），你不能把它删除。</Chinese>
  </text>

  <text key='#raid.help'>
    <English>
    RAID is a technology that provides increased storage reliability through redundancy, combining multiple low-cost, less-reliable disk drives components into a logical unit where all drives in the array are interdependent. 
    If you don't want to make a RAID, you could click "next" to skip this step. The installation will go on normally.
    The partitions whose file system type are raid are listed in the Original frame, e.g., sda2, sdb2. The RAID are listed in the Device frame, e.g., md0, md1. The partitions to make a RAID are listed in the Active frame, and the spare partitions for the RAID are listed in the Spare frame.
    The original RAID will be retained. If you want to make a new RAID, select partitions in the original frame, then click "-->" to move them to the Active frame or Spare frame, according to their roles. There must be one or more partitions in the Active frame, relating to the raid level you want to make, but the spare partitions are not essential. A new RAID, named mdX (X stands for the number of the RAID), will be listed in the Device frame after you click "-->" beside the Device frame.
    </English>
    <Chinese>
    磁盘阵列技术(RAID)诞生于1987年，由美国加州大学伯克利分校提出。该技术是把多块独立的硬盘（物理硬盘）按不同的方式组合起来形成一个硬盘组（逻辑硬盘），从而提供比单个硬盘更高的存储性能和提供数据备份技术。
    如果用户不懂该技术可以直接点击下一步,系统将不制作RAID,并不影响系统的安装及运行。
    原始框中是满足制作RAID的硬盘分区,如sda1、sdb2等。设备框中是原本系统已经制作好的RAID,如md0、md1等。系装安装时将保留原有的RAID设备。若要制作新RAID,请在原始框中选中硬盘分区后通过点击"－>",硬盘分区会进入使用框或备用框中。要制作RAID，使用框中必须要有硬盘分区，可以有一个或多个。备用框中硬盘分区是可选的，可以有一个或多个,也可以没有。完成上步操作后在级别框中选择raid的级别，最后点击"->"在设备框中产生新的mdX设备。
    </Chinese>
  </text>

  <text key='#serial number.help'>
    <English>
    Serial number is the permission to run secure functions of Linx Rocky Secure OS.
    Please Input the correct serial number in the frame, so that secure functions could run.
    Please contact Linx Technology Co.,Ltd. to get the serial number.
    Website: www.linx-info.com
    </English>
    <Chinese>    
    安装序列号是计算机运行凝思磐石安全操作系统的许可,请在序列号框内输入正确的序列号,以便操作系统的安全功能,能从计算机启动.
    如何获取安装序列号请联系北京凝思科技有限公司.
    网站：www.linx-info.com
    </Chinese>
  </text>

  <text key='#service.help'>
    <English>
    The color of the servers listed in the frame suggests whether they are self-starting since system startup. Gary means no, and the probable 
    reason is packages providing the servers haven't been selected to install.
    </English>
    <Chinese>
    显示框中表示系统启动过程中自动启动的服务。
    灰色选项说明不支持该服务，可能是因为没有选上该服务所对应的软件包。
    </Chinese>
  </text>

  <text key='#software group.help'>
    <English>
    There are two kinds of packages and package groups, one is mandatory, the other is optional.
    The mandatory packages of a group will be installed by default if you select the group. You could first click a group, and then select optional packages want to install in the pop-up dialog box.
    Base group is the only mandatory group to install, consist of packages for a base system. The mandatory packages of Base group will be installed by default, you could select optional packages of it.
    Development group is consist of tools of C, C++, DDD, etc. There's no mandatory package in Development group, you could select optional packages of it.
    GUI group is consist of various packages relating to X11. There are mandatory packages and optional packages. Mandatory packages will be installed by default if you select this group. You could select optional packages freely.
    Network group is consist of various network sevices packages. There's no mandatory package, you could select optional packages of it.
    Internet group is consist of software like World Wide Web browser Firefox. There are mandatory packages and optional packages. Mandatory packages will be installed by default if you select this group. You could select optional packages freely.
    Multimedia group is consist of a variety of media libraries.There's no mandatory package, you could select optional packages of it.
    Others group is consist of packages that are not included in groups above, e.g., kde, vm, network tools. There's no mandatory package, you could select optional packages of it.
    </English>
    <Chinese>
    软件包组分为必选软件包组和可选软件包。系统默认时会安装必选软件包组里的必选软件包。在安装软件包时，先点击软件包组，在弹出的对话框中选上所须要的软件包。
    基础类软件包组(base)是必选组，包括构成系统的基本软件包，分为必选软件包和可选软件包。必选软件包是系统默认安装的，可选包可以自由选择    
    开发软件包组（development）包括C、C++(Fortran)、DDD等开发工具，都是可选包，可以自由选择安装
    图形类软件包组（gui）包括Xll相关的各种程序。图形类软件包分为必选包和可选包，当选择安装该软件包组后，必选包是默认安装的，可选包可以自由选择安装。
    网络服务类软件包组（network_service）包括各种网络服务包。网络服务类软件包都是可选软件包，可以自由选择安装。
    因特网类软件组(internet)包括万维网浏览器Firefox等。因特网类软件包分为必选包和可选包，当选择安装该软件包组后，必选包是默认安装的，可选包可以自由选择安装。
    多媒体类软件包组(multi-media)包括各种媒体库。多媒体类软件包都是可选软件包，可以自由选择安装。
    其它软件包组(kde、vm、network_tools)都是可选软件包，可以自由选择安装。
    </Chinese>
  </text>

  <text key='#Welcome'>
    <English>Welcome to use Linx Rocky Secure Operating System v4.2</English>
    <Chinese>欢迎使用凝思磐石安全操作系统 v4.2</Chinese>
  </text>

  <text key='#Welcome.help'>
    <English>
    Dear user, welcome to Linx Rocky Secure OS!
    </English>
    <Chinese>
    尊敬的用户，你好！欢迎使用凝思磐石操作系统。
    </Chinese>
   </text>

  <text key='#Installation-confirmation'>
    <English>Installation configure finish. Press "ok" to start the installation. Press "Cancel" to cancel the installation.</English>
    <Chinese>安装配置完成，按"ok"键开始安装, 按"Cancel"取消安装.</Chinese>
  </text>

  <text>
    <English>Active</English>
    <Chinese>使用</Chinese>
  </text>

  <text>
    <English>Cancel</English>
    <Chinese>取消</Chinese>
  </text>

  <text>
    <English>Copyright</English>
    <Chinese>版权</Chinese>
  </text>

  <text>
    <English>delete</English>
    <Chinese>删除</Chinese>
  </text>

  <text>
    <English>dependency</English>
    <Chinese>软件依赖</Chinese>
  </text>

  <text>
    <English>Device</English>
    <Chinese>设备</Chinese>
  </text>

  <text>
    <English>Directory</English>
    <Chinese>目录</Chinese>
  </text>

  <text>
    <English>Domain name</English>
    <Chinese>域名</Chinese>
  </text>

  <text>
    <English>dynamic</English>
    <Chinese>动态</Chinese>
  </text>

  <text>
    <English>edit</English>
    <Chinese>编辑</Chinese>
  </text>

  <text>
    <English>Filesystem</English>
    <Chinese>文件系统</Chinese>
  </text>

  <text>
    <English>Format</English>
    <Chinese>格式化</Chinese>
  </text>

  <text>
    <English>Gateway</English>
    <Chinese>网关</Chinese>
  </text>

  <text>
    <English>host name</English>
    <Chinese>主机名</Chinese>
  </text>

  <text>
    <English>prepar_installation</English>
    <Chinese>安装信息</Chinese>
  </text>

  <text>
    <English>install sequence</English>
    <Chinese>安装顺序</Chinese>
  </text>

  <text>
    <English>IP</English>
    <Chinese>IP</Chinese>
  </text>

  <text>
    <English>Level</English>
    <Chinese>级别</Chinese>
  </text>

  <text>
    <English>Linx</English>
    <Chinese>Linx</Chinese>
  </text>

  <text>
    <English>Mandatory</English>
    <Chinese>必选</Chinese>
  </text>

  <text>
    <English>mount</English>
    <Chinese>挂载硬盘</Chinese>
  </text>

  <text>
    <English>new</English>
    <Chinese>新建</Chinese>
  </text>

  <text>
    <English>Not-Format</English>
    <Chinese>不格式化</Chinese>
  </text>

  <text>
    <English>network</English>
    <Chinese>网络</Chinese>
  </text>

  <text>
    <English>next</English>
    <Chinese>下一步</Chinese>
  </text>

  <text>
    <English>OK</English>
    <Chinese>确定</Chinese>
  </text>

  <text>
    <English>Optional</English>
    <Chinese>可选</Chinese>
  </text>

  <text>
    <English>previous</English>
    <Chinese>上一步</Chinese>
  </text>

  <text>
    <English>Primary DNS</English>
    <Chinese>首选DNS</Chinese>
  </text>

  <text>
    <English>quit</English>
    <Chinese>退出</Chinese>
  </text>

  <text>
    <English>raid</English>
    <Chinese>磁盘阵列</Chinese>
  </text>

  <text>
    <English>Raw</English>
    <Chinese>原始</Chinese>
  </text>

  <text>
    <English>reset</English>
    <Chinese>重置</Chinese>
  </text>

  <text>
    <English>Secondary DNS</English>
    <Chinese>备用DNS</Chinese>
  </text>

  <text>
    <English>Select all</English>
    <Chinese>全选</Chinese>
  </text>

  <text>
    <English>serial number</English>
    <Chinese>序列号</Chinese>
  </text>

  <text>
    <English>service</English>
    <Chinese>服务</Chinese>
  </text>

  <text>
    <English>Size</English>
    <Chinese>大小</Chinese>
  </text>

  <text>
    <English>software group</English>
    <Chinese>软件组</Chinese>
  </text>

  <text>
    <English>Spare</English>
    <Chinese>备用</Chinese>
  </text>

  <text>
    <English>Subnet mask</English>
    <Chinese>子网掩码</Chinese>
  </text>

  <text>
    <English>static</English>
    <Chinese>静态</Chinese>
  </text>

  <text>
    <English>welcome</English>
    <Chinese>欢迎</Chinese>
  </text>
 
  <sequence name='main'>
    <widget name='welcome'/>
    <widget name='serial number'/>
    <widget name='raid'/>
    <widget name='mount'/>
    <widget name='network'/>
    <widget name='software group'/>
    <widget name='dependency'/>
    <widget name='service'/>
    <widget name='prepar_installation'/>
  </sequence>
</interface>
