<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>bootrecover</class>
<author>Silvan Calarco</author>
<license>GPL</license>
<version>0.5</version>
<widget class="QWizard">
    <property name="name">
        <cstring>bootrecover</cstring>
    </property>
    <property name="geometry">
        <rect>
            <x>0</x>
            <y>0</y>
            <width>593</width>
            <height>514</height>
        </rect>
    </property>
    <property name="sizePolicy">
        <sizepolicy>
            <hsizetype>5</hsizetype>
            <vsizetype>5</vsizetype>
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
        </sizepolicy>
    </property>
    <property name="caption">
        <string>openmamba boot loader recovery wizard</string>
    </property>
    <property name="icon">
        <pixmap>image0</pixmap>
    </property>
    <widget class="QWidget">
        <property name="name">
            <cstring>introduction</cstring>
        </property>
        <attribute name="title">
            <string>Welcome!</string>
        </attribute>
        <widget class="CheckBox">
            <property name="name">
                <cstring>BackBox</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>180</x>
                    <y>50</y>
                    <width>20</width>
                    <height>20</height>
                </rect>
            </property>
            <property name="text">
                <string></string>
            </property>
            <property name="checked">
                <bool>false</bool>
            </property>
            <property name="associations" stdset="0">
                <stringlist>
                    <string></string>
                    <string></string>
                    <string></string>
                </stringlist>
            </property>
        </widget>
        <widget class="CheckBox">
            <property name="name">
                <cstring>NextBox</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>130</x>
                    <y>50</y>
                    <width>20</width>
                    <height>20</height>
                </rect>
            </property>
            <property name="text">
                <string></string>
            </property>
            <property name="checked">
                <bool>true</bool>
            </property>
        </widget>
        <widget class="GroupBox">
            <property name="name">
                <cstring>GroupBox2</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>10</x>
                    <y>10</y>
                    <width>560</width>
                    <height>160</height>
                </rect>
            </property>
            <property name="sizePolicy">
                <sizepolicy>
                    <hsizetype>7</hsizetype>
                    <vsizetype>7</vsizetype>
                    <horstretch>0</horstretch>
                    <verstretch>0</verstretch>
                </sizepolicy>
            </property>
            <property name="paletteBackgroundColor">
                <color>
                    <red>255</red>
                    <green>255</green>
                    <blue>255</blue>
                </color>
            </property>
            <property name="title">
                <string></string>
            </property>
            <widget class="ScriptObject">
                <property name="name">
                    <cstring>AcceptScript</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>280</y>
                        <width>32</width>
                        <height>32</height>
                    </rect>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string>@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, true)
</string>
                    </stringlist>
                </property>
            </widget>
            <widget class="Label">
                <property name="name">
                    <cstring>Label21</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>410</x>
                        <y>390</y>
                        <width>130</width>
                        <height>21</height>
                    </rect>
                </property>
                <property name="text">
                    <string>Version 0.4</string>
                </property>
                <property name="alignment">
                    <set>AlignVCenter|AlignRight</set>
                </property>
            </widget>
            <widget class="Label">
                <property name="name">
                    <cstring>Label29</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>420</x>
                        <y>130</y>
                        <width>130</width>
                        <height>16</height>
                    </rect>
                </property>
                <property name="paletteForegroundColor">
                    <color>
                        <red>40</red>
                        <green>96</green>
                        <blue>6</blue>
                    </color>
                </property>
                <property name="font">
                    <font>
                        <pointsize>8</pointsize>
                    </font>
                </property>
                <property name="text">
                    <string>www.openmamba.org</string>
                </property>
            </widget>
            <widget class="ScriptObject">
                <property name="name">
                    <cstring>wizardScript</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>50</y>
                        <width>32</width>
                        <height>32</height>
                    </rect>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string>@dcop(@dcopid, KommanderIf, setEnabled(QString,bool), next, @NextBox.checked)
@dcop(@dcopid, KommanderIf, setEnabled(QString,bool), back, @BackBox.checked)
@dcop(@dcopid, KommanderIf, setEnabled(QString,bool), finish, true)
@dcop(@dcopid, KommanderIf, setVisible(QString,bool), help, false)
</string>
                    </stringlist>
                </property>
            </widget>
            <widget class="PixmapLabel">
                <property name="name">
                    <cstring>PixmapLabel2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>80</x>
                        <y>40</y>
                        <width>400</width>
                        <height>74</height>
                    </rect>
                </property>
                <property name="pixmap">
                    <pixmap>image1</pixmap>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string></string>
                    </stringlist>
                </property>
            </widget>
            <widget class="Label">
                <property name="name">
                    <cstring>Label1_2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>280</x>
                        <y>100</y>
                        <width>230</width>
                        <height>20</height>
                    </rect>
                </property>
                <property name="font">
                    <font>
                        <pointsize>11</pointsize>
                        <italic>1</italic>
                    </font>
                </property>
                <property name="text">
                    <string>GNU/Linux distribution</string>
                </property>
                <property name="alignment">
                    <set>AlignCenter</set>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string></string>
                    </stringlist>
                </property>
            </widget>
            <widget class="Label">
                <property name="name">
                    <cstring>Label1</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>10</y>
                        <width>540</width>
                        <height>34</height>
                    </rect>
                </property>
                <property name="paletteForegroundColor">
                    <color>
                        <red>0</red>
                        <green>0</green>
                        <blue>0</blue>
                    </color>
                </property>
                <property name="font">
                    <font>
                        <pointsize>20</pointsize>
                    </font>
                </property>
                <property name="text">
                    <string>Boot loader recovery tool for</string>
                </property>
                <property name="alignment">
                    <set>AlignVCenter|AlignLeft</set>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string></string>
                    </stringlist>
                </property>
            </widget>
            <widget class="Label">
                <property name="name">
                    <cstring>Label18_2_2_2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>120</y>
                        <width>400</width>
                        <height>29</height>
                    </rect>
                </property>
                <property name="font">
                    <font>
                        <pointsize>8</pointsize>
                        <italic>1</italic>
                    </font>
                </property>
                <property name="text">
                    <string>Copyright (c) 2007-2011 by Silvan Calarco
Released under the terms of the GNU GPL v3 license</string>
                </property>
                <property name="textFormat">
                    <enum>AutoText</enum>
                </property>
                <property name="alignment">
                    <set>WordBreak|AlignVCenter</set>
                </property>
            </widget>
        </widget>
        <widget class="Label">
            <property name="name">
                <cstring>Label30</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>10</x>
                    <y>190</y>
                    <width>560</width>
                    <height>20</height>
                </rect>
            </property>
            <property name="font">
                <font>
                    <bold>1</bold>
                </font>
            </property>
            <property name="text">
                <string>This program will recover the openmamba boot loader.</string>
            </property>
        </widget>
        <widget class="Label">
            <property name="name">
                <cstring>Label18_2</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>10</x>
                    <y>220</y>
                    <width>560</width>
                    <height>200</height>
                </rect>
            </property>
            <property name="text">
                <string>This operation is normally needed after the very first sector of the disk (Master Boot Record) has been rewritten by the installation of another operating system. 

Usually you will need to use this program only after the installation of a release of Microsoft Windows to restore the openmamba boot menu.

This tool is also useful before the installation of a third party boot manager in the Master Boot Record, by moving the openmamba boot loader installation from the MBR to its own partition.</string>
            </property>
            <property name="alignment">
                <set>WordBreak|AlignTop</set>
            </property>
            <property name="associations" stdset="0">
                <stringlist>
                    <string></string>
                </stringlist>
            </property>
        </widget>
    </widget>
    <widget class="QWidget">
        <property name="name">
            <cstring>disk_choice</cstring>
        </property>
        <attribute name="title">
            <string>System partition choice</string>
        </attribute>
        <widget class="CheckBox">
            <property name="name">
                <cstring>removablebox</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>420</x>
                    <y>240</y>
                    <width>150</width>
                    <height>20</height>
                </rect>
            </property>
            <property name="text">
                <string>removab&amp;le devices</string>
            </property>
        </widget>
        <widget class="Label">
            <property name="name">
                <cstring>driverlabel</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>404</x>
                    <y>155</y>
                    <width>121</width>
                    <height>31</height>
                </rect>
            </property>
        </widget>
        <widget class="Label">
            <property name="name">
                <cstring>Label21_2</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>20</x>
                    <y>10</y>
                    <width>540</width>
                    <height>30</height>
                </rect>
            </property>
            <property name="font">
                <font>
                    <pointsize>15</pointsize>
                </font>
            </property>
            <property name="text">
                <string>Choose openmamba system partition</string>
            </property>
            <property name="alignment">
                <set>AlignCenter</set>
            </property>
        </widget>
        <widget class="GroupBox">
            <property name="name">
                <cstring>PartitionBox</cstring>
            </property>
            <property name="enabled">
                <bool>true</bool>
            </property>
            <property name="geometry">
                <rect>
                    <x>10</x>
                    <y>60</y>
                    <width>560</width>
                    <height>370</height>
                </rect>
            </property>
            <property name="sizePolicy">
                <sizepolicy>
                    <hsizetype>3</hsizetype>
                    <vsizetype>7</vsizetype>
                    <horstretch>0</horstretch>
                    <verstretch>0</verstretch>
                </sizepolicy>
            </property>
            <property name="title">
                <string>Where do you want to install the boot loader from?</string>
            </property>
            <property name="associations" stdset="0">
                <stringlist>
                    <string></string>
                </stringlist>
            </property>
            <widget class="Label">
                <property name="name">
                    <cstring>Label3</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>340</y>
                        <width>180</width>
                        <height>20</height>
                    </rect>
                </property>
                <property name="font">
                    <font>
                        <bold>1</bold>
                    </font>
                </property>
                <property name="text">
                    <string>Install bootloader from:</string>
                </property>
                <property name="alignment">
                    <set>AlignVCenter|AlignLeft</set>
                </property>
            </widget>
            <widget class="Label">
                <property name="name">
                    <cstring>showdevice</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>180</x>
                        <y>340</y>
                        <width>350</width>
                        <height>20</height>
                    </rect>
                </property>
                <property name="text">
                    <string></string>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string></string>
                    </stringlist>
                </property>
            </widget>
            <widget class="Label">
                <property name="name">
                    <cstring>Label24</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>30</y>
                        <width>540</width>
                        <height>40</height>
                    </rect>
                </property>
                <property name="text">
                    <string>Please, select the openmamba system partition where you want the boot loader to be installed from.</string>
                </property>
                <property name="textFormat">
                    <enum>RichText</enum>
                </property>
                <property name="alignment">
                    <set>WordBreak|AlignTop</set>
                </property>
            </widget>
            <widget class="ListBox">
                <property name="name">
                    <cstring>devicesbox</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>90</y>
                        <width>540</width>
                        <height>230</height>
                    </rect>
                </property>
                <property name="populationText">
                    <string></string>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string></string>
                    </stringlist>
                </property>
            </widget>
        </widget>
        <widget class="ScriptObject">
            <property name="name">
                <cstring>scanDevices</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>540</x>
                    <y>0</y>
                    <width>32</width>
                    <height>32</height>
                </rect>
            </property>
            <property name="associations" stdset="0">
                <stringlist>
                    <string>@devicesbox.clear
@BackBox.setChecked(false)
@NextBox.setChecked(false)
@execBegin
function get_udisks_key() {
   LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
}
devices=`udisks --enumerate-device-files | grep -v /dev/disk | sort -n -r`
partlabel=

for device in $devices; do
   native_path=`get_udisks_key $device native-path`
   [ -e $native_path/partition ] || continue
   is_system_internal=`get_udisks_key $device "system internal"`
   volsize=`get_udisks_key $device size`
   volsize=`expr $volsize / 1024 / 1024`
   volname=`get_udisks_key $device label`
   [ "$volname" ] || volname="unnamed"
   parttype=`get_udisks_key $device usage`
   [ "$parttype" ] || parttype="unknown"
   partscheme=`get_udisks_key $device scheme`
   [ "$partscheme" ] || partscheme="unknown"
   fstype=`get_udisks_key $device type`
   [ "$fstype" ] || fstype="unformatted"
   add_info=""
   is_mounted=`get_udisks_key $device "is mounted"`
   [ "$is_mounted" = "1" ] || {
      mkdir /mnt/${device:5:5} &amp;&amp; mount $device /mnt/${device:5:5}
   }
   mount_point=`get_udisks_key $device "mount paths"`
   add_info=""
   [ "$is_system_internal" == "1" ] || {
      add_info=",removable"
      [ @removablebox.checked == 1 ] || continue
   }

   if [ "$partscheme" == "mbr" -o "$partscheme" == "embr" ]; then
      partlabel="$partlabel&lt;br&gt;${device:5:5} $fstype $volname $volsize MB"
      case "$fstype" in
         ext2|ext3|ext4|reiserfs|reiser4)
            [ "$mount_point" -a -e $mount_point/etc/openmamba-release ] &amp;&amp; {
               release=`cat $mount_point/etc/openmamba-release`
               dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox "${device:5:5} $mount_point ($fstype,$volname,$volsize MB${add_info})" 0
            }
            ;;
         *) ;;
      esac
   elif [ "$partscheme" == "gpt" -o "$partscheme" == "unknown" -a $volsize -gt 0 ]; then
      case "$fstype" in
         swap|iso9660) ;;
         ext2|ext3|ext4|reiserfs|reiser4)
           [ "$mount_point" -a -e $mount_point/etc/openmamba-release ] &amp;&amp; {
               release=`cat $mount_point/etc/openmamba-release`
               dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox "${device:5:5} $mount_point $volsize MB ($release)" 0
            }
            ;;
         *) ;;
      esac
   fi
done
@execEnd
</string>
                </stringlist>
            </property>
        </widget>
        <widget class="ScriptObject">
            <property name="name">
                <cstring>setlabel</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>540</x>
                    <y>40</y>
                    <width>32</width>
                    <height>32</height>
                </rect>
            </property>
            <property name="populationText">
                <string></string>
            </property>
            <property name="associations" stdset="0">
                <stringlist>
                    <string>@execBegin
function get_udisks_key() {
   LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
}
function get_udisks_key_last() {
   LANG=C udisks --show-info $1 | grep " $2:" | tail -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
}
@if (@devicesbox.currentItem &gt;= 0)
   currdev=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
   @showdevice.setText(@devicesbox.item(@devicesbox.currentItem))
   @dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, true)
   @BackBox.setChecked(true)

   #
   # set MBR combo box
   #
   dcop @dcopid KommanderIf "clear(QString)" mbrbox
   devices=`udisks --enumerate-device-files | grep -v /dev/disk`
   dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "$currdev (@i18n("System partition"))" 0

   for device in $devices; do
      native_path=`get_udisks_key $device native-path`
      if [ -e $native_path/partition ]; then
          partition_label=`get_udisks_key_last $device label`
          if [ "${partition_label:0:3}" = "EFI" ]; then
             dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "${device:5:5} (@i18n("EFI system partition"))" 0
          fi
      else
         is_system_internal=`get_udisks_key $device "system internal"`
         partscheme=`get_udisks_key $device scheme`
         if [ "$is_system_internal" == "1" -o "@removablebox.checked" == "1" ]; then
            [ "$partscheme" == "mbr" ] &amp;&amp; \
               dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "${device:5:5} (master boot record)" 0
         fi
      fi
   done
   dcop @dcopid KommanderIf "setCurrentItem(int)" 0
@endif
@execEnd
@setBootableCheckbox.execute()
</string>
                </stringlist>
            </property>
        </widget>
    </widget>
    <widget class="QWidget">
        <property name="name">
            <cstring>bootloader</cstring>
        </property>
        <attribute name="title">
            <string>Computer startup configuration</string>
        </attribute>
        <widget class="Label">
            <property name="name">
                <cstring>Label21_2_2</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>20</x>
                    <y>10</y>
                    <width>540</width>
                    <height>30</height>
                </rect>
            </property>
            <property name="font">
                <font>
                    <pointsize>15</pointsize>
                </font>
            </property>
            <property name="text">
                <string>Configure the boot manager</string>
            </property>
            <property name="alignment">
                <set>AlignCenter</set>
            </property>
        </widget>
        <widget class="ScriptObject">
            <property name="name">
                <cstring>setBootableCheckbox</cstring>
            </property>
            <property name="enabled">
                <bool>false</bool>
            </property>
            <property name="geometry">
                <rect>
                    <x>530</x>
                    <y>0</y>
                    <width>32</width>
                    <height>32</height>
                </rect>
            </property>
            <property name="associations" stdset="0">
                <stringlist>
                    <string>@BackBox.setChecked(true)
@NextBox.setChecked(true)
@execBegin
mbrstring=@String.section(@mbrbox.item(@mbrbox.currentItem)," ",1)
mbrdevice=@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
mbrpart=${mbrdevice:3:2}
if [ "$mbrpart" -a "${mbrstring/EFI}" = "${mbrstring}" ]; then
   if [ $mbrpart -le 4 ]; then
      dcop @dcopid KommanderIf setEnabled bootableBox true
   else
      dcop @dcopid KommanderIf setEnabled bootableBox false
      dcop @dcopid KommanderIf setChecked bootableBox false
   fi
else
   dcop @dcopid KommanderIf setEnabled bootableBox false
fi
@execEnd
</string>
                </stringlist>
            </property>
        </widget>
        <widget class="ButtonGroup">
            <property name="name">
                <cstring>BootloaderBox</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>10</x>
                    <y>50</y>
                    <width>560</width>
                    <height>370</height>
                </rect>
            </property>
            <property name="sizePolicy">
                <sizepolicy>
                    <hsizetype>3</hsizetype>
                    <vsizetype>4</vsizetype>
                    <horstretch>0</horstretch>
                    <verstretch>0</verstretch>
                </sizepolicy>
            </property>
            <property name="title">
                <string>Bootloader configuration</string>
            </property>
            <widget class="Label">
                <property name="name">
                    <cstring>Label29_2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>20</y>
                        <width>531</width>
                        <height>40</height>
                    </rect>
                </property>
                <property name="text">
                    <string>Please select where you want to install the boot manager.</string>
                </property>
                <property name="alignment">
                    <set>WordBreak|AlignVCenter</set>
                </property>
            </widget>
            <widget class="QLayoutWidget">
                <property name="name">
                    <cstring>Layout5_2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>60</y>
                        <width>530</width>
                        <height>26</height>
                    </rect>
                </property>
                <hbox>
                    <property name="name">
                        <cstring>unnamed</cstring>
                    </property>
                    <property name="margin">
                        <number>0</number>
                    </property>
                    <property name="spacing">
                        <number>6</number>
                    </property>
                    <widget class="Label">
                        <property name="name">
                            <cstring>Label3_2_3</cstring>
                        </property>
                        <property name="sizePolicy">
                            <sizepolicy>
                                <hsizetype>1</hsizetype>
                                <vsizetype>1</vsizetype>
                                <horstretch>0</horstretch>
                                <verstretch>0</verstretch>
                            </sizepolicy>
                        </property>
                        <property name="text">
                            <string>Install bootloader on:</string>
                        </property>
                    </widget>
                    <widget class="ComboBox">
                        <property name="name">
                            <cstring>mbrbox</cstring>
                        </property>
                        <property name="sizePolicy">
                            <sizepolicy>
                                <hsizetype>3</hsizetype>
                                <vsizetype>1</vsizetype>
                                <horstretch>0</horstretch>
                                <verstretch>0</verstretch>
                            </sizepolicy>
                        </property>
                        <property name="associations" stdset="0">
                            <stringlist>
                                <string></string>
                            </stringlist>
                        </property>
                    </widget>
                    <widget class="CheckBox">
                        <property name="name">
                            <cstring>bootableBox</cstring>
                        </property>
                        <property name="enabled">
                            <bool>false</bool>
                        </property>
                        <property name="text">
                            <string>set &amp;bootable</string>
                        </property>
                        <property name="checked">
                            <bool>true</bool>
                        </property>
                        <property name="associations" stdset="0">
                            <stringlist>
                                <string></string>
                                <string></string>
                                <string></string>
                            </stringlist>
                        </property>
                    </widget>
                </hbox>
            </widget>
        </widget>
    </widget>
    <widget class="QWidget">
        <property name="name">
            <cstring>endinstall</cstring>
        </property>
        <attribute name="title">
            <string>End of installation</string>
        </attribute>
        <widget class="CheckBox">
            <property name="name">
                <cstring>confirmBox</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>104</x>
                    <y>135</y>
                    <width>20</width>
                    <height>20</height>
                </rect>
            </property>
            <property name="text">
                <string></string>
            </property>
        </widget>
        <widget class="Label">
            <property name="name">
                <cstring>finallabel</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>20</x>
                    <y>0</y>
                    <width>540</width>
                    <height>50</height>
                </rect>
            </property>
            <property name="font">
                <font>
                    <pointsize>18</pointsize>
                </font>
            </property>
            <property name="text">
                <string>Installation completed.</string>
            </property>
            <property name="alignment">
                <set>AlignCenter</set>
            </property>
        </widget>
        <widget class="TextEdit">
            <property name="name">
                <cstring>installlog</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>20</x>
                    <y>60</y>
                    <width>540</width>
                    <height>360</height>
                </rect>
            </property>
            <property name="hScrollBarMode">
                <enum>AlwaysOn</enum>
            </property>
            <property name="textFormat">
                <enum>LogText</enum>
            </property>
            <property name="populationText">
                <string></string>
            </property>
            <property name="associations" stdset="0">
                <stringlist>
                    <string></string>
                </stringlist>
            </property>
        </widget>
        <widget class="ScriptObject">
            <property name="name">
                <cstring>ScriptObject7</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>540</x>
                    <y>20</y>
                    <width>32</width>
                    <height>32</height>
                </rect>
            </property>
            <property name="associations" stdset="0">
                <stringlist>
                    <string>dcop @dcopid KommanderIf setText installlog "`cat ~/.bootrecover.log`"
</string>
                </stringlist>
            </property>
        </widget>
        <widget class="ScriptObject">
            <property name="name">
                <cstring>launchinstall</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>20</x>
                    <y>20</y>
                    <width>32</width>
                    <height>32</height>
                </rect>
            </property>
            <property name="associations" stdset="0">
                <stringlist>
                    <string>@NextBox.setChecked(false)
@execBegin
conffile=~/.bootrecover.conf
cat &gt; $conffile &lt;&lt; _EOF
#
# openmamba installation file
#
# created by openmamba bootrecover wizard
#
_EOF

@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), back,false)

installdevice=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
mountpoint=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",1)
mbrstring="@mbrbox.item(@mbrbox.currentItem)"
if [ "${mbrstring/EFI}" != "${mbrstring}" ]; then
   efidevice=/dev/@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
else
   mbrdevice=/dev/@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
fi

IFS=$'\n' 
CHAINLOAD_SELECTED=(`dcop @dcopid KommanderIf selection chainloadbox`)
for i in ${CHAINLOAD_SELECTED[*]}; do
   chainloaddevices="/dev/${i:0:4} $chainloaddevices"
done
IFS=$' \t\n' 

cat &gt;&gt;$conffile &lt;&lt; _EOF
INSTALL_DEVICE='/dev/$installdevice'
INSTALL_MOUNTPOINT='$mountpoint'
INSTALL_BOOTLOADER_DEVICE='$mbrdevice'
INSTALL_BOOTLOADER_DEVICE_EFI='$efidevice'
INSTALL_BOOTLOADER_DEVICE_SETBOOTABLE=@bootableBox.checked
INSTALL_BOOTLOADER_CHAINLOAD=($chainloaddevices)
_EOF
@execEnd

@if (@Message.question(@i18n("Boot loader from") @String.section(@devicesbox.item(@devicesbox.currentItem)," ",0) @i18n("will installed to ") @mbrbox.item(@mbrbox.currentItem).
@i18n("OK to continue?"), @i18n("Warning"), @i18n("OK"), @i18n("Abort")) == 1)
   @confirmBox.setChecked(true)
@endif

@if (@confirmBox.checked); then
   @dcop(@dcopid, KommanderIf, setEnabled(QString,bool), back, false)
   @exec("sudo /usr/share/openmamba/bootrecover/bootrecover.sh ~/.bootrecover.conf @dcopid `whoami` &amp;&gt; ~/.bootrecover.log")
   @execBegin
      dcop @dcopid KommanderIf setText installlog "`cat ~/.bootrecover.log`"
   @execEnd
@endif

@if (!@confirmBox.checked); then
   @Message.info(@i18n("Installation aborted."))
   @dcop(@dcopid, MainApplication-Interface, quit())
@endif

@BackBox.setChecked(false)
</string>
                </stringlist>
            </property>
        </widget>
    </widget>
</widget>
<images>
    <image name="image0">
        <data format="XPM.GZ" length="25999">[encoded data, 18114 characters]</data>
    </image>
    <image name="image1">
        <data format="XPM.GZ" length="63226">[encoded data, 16166 characters]</data>
    </image>
</images>
<connections>
    <connection>
        <sender>mbrbox</sender>
        <signal>textChanged(const QString&amp;)</signal>
        <receiver>setBootableCheckbox</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>bootrecover</sender>
        <signal>selected(const QString&amp;)</signal>
        <receiver>wizardScript</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>installlog</sender>
        <signal>widgetOpened()</signal>
        <receiver>ScriptObject7</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>mbrbox</sender>
        <signal>widgetTextChanged(const QString&amp;)</signal>
        <receiver>setBootableCheckbox</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>NextBox</sender>
        <signal>widgetOpened()</signal>
        <receiver>wizardScript</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>devicesbox</sender>
        <signal>widgetOpened()</signal>
        <receiver>scanDevices</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>devicesbox</sender>
        <signal>selectionChanged()</signal>
        <receiver>setlabel</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>NextBox</sender>
        <signal>stateChanged(int)</signal>
        <receiver>wizardScript</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>mbrbox</sender>
        <signal>widgetOpened()</signal>
        <receiver>setBootableCheckbox</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>installlog</sender>
        <signal>widgetOpened()</signal>
        <receiver>launchinstall</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>installlog</sender>
        <signal>widgetOpened()</signal>
        <receiver>launchinstall</receiver>
        <slot>adjustSize()</slot>
    </connection>
</connections>
<tabstops>
    <tabstop>devicesbox</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
</UI>
