<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>Form1</class>
<author>Silvan Calarco</author>
<license>GPL</license>
<version>0.1</version>
<widget class="QWizard">
    <property name="name">
        <cstring>Form1</cstring>
    </property>
    <property name="geometry">
        <rect>
            <x>0</x>
            <y>0</y>
            <width>600</width>
            <height>480</height>
        </rect>
    </property>
    <property name="caption">
        <string>openmamba report generator</string>
    </property>
    <widget class="QWidget">
        <property name="name">
            <cstring>page1</cstring>
        </property>
        <attribute name="title">
            <string>Introduction</string>
        </attribute>
        <widget class="GroupBox">
            <property name="name">
                <cstring>GroupBox5</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>10</x>
                    <y>160</y>
                    <width>570</width>
                    <height>240</height>
                </rect>
            </property>
            <property name="title">
                <string></string>
            </property>
            <widget class="Label">
                <property name="name">
                    <cstring>label</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>200</y>
                        <width>550</width>
                        <height>30</height>
                    </rect>
                </property>
                <property name="font">
                    <font>
                    </font>
                </property>
                <property name="text">
                    <string>&lt;b&gt;Please, press the Next button to continue.&lt;/b&gt;</string>
                </property>
                <property name="textFormat">
                    <enum>AutoText</enum>
                </property>
                <property name="alignment">
                    <set>WordBreak|AlignBottom</set>
                </property>
            </widget>
            <widget class="Label">
                <property name="name">
                    <cstring>Label6</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>10</y>
                        <width>550</width>
                        <height>110</height>
                    </rect>
                </property>
                <property name="text">
                    <string>Use this tool to create a report of your system to provide openmamba developers information on your hardware and software.

Important node: the report may contain sensible information for your system security, like your IP address. By submitting a report to reports@openmamba.org you authorize mambaSoft to processs the data with the purpose of data collection and debugging.</string>
                </property>
                <property name="alignment">
                    <set>WordBreak|AlignVCenter</set>
                </property>
            </widget>
            <widget class="ScriptObject">
                <property name="name">
                    <cstring>qt_dead_widget_setnext</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>520</x>
                        <y>200</y>
                        <width>32</width>
                        <height>32</height>
                    </rect>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string>@NextBox.setChecked(true)</string>
                    </stringlist>
                </property>
            </widget>
        </widget>
        <widget class="CheckBox">
            <property name="name">
                <cstring>BackBox</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>200</x>
                    <y>70</y>
                    <width>20</width>
                    <height>20</height>
                </rect>
            </property>
            <property name="text">
                <string></string>
            </property>
            <property name="checked">
                <bool>false</bool>
            </property>
        </widget>
        <widget class="CheckBox">
            <property name="name">
                <cstring>NextBox</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>150</x>
                    <y>70</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>0</y>
                    <width>570</width>
                    <height>150</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.1</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>110</y>
                        <width>130</width>
                        <height>20</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>backnext</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>0</x>
                        <y>10</y>
                        <width>32</width>
                        <height>32</height>
                    </rect>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string>@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, @NextBox.checked)
@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), back, @BackBox.checked)
@dcop(@dcopid, KommanderIf, enableWidget(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>10</y>
                        <width>400</width>
                        <height>74</height>
                    </rect>
                </property>
                <property name="pixmap">
                    <pixmap>image0</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>390</x>
                        <y>70</y>
                        <width>90</width>
                        <height>20</height>
                    </rect>
                </property>
                <property name="font">
                    <font>
                        <pointsize>11</pointsize>
                        <italic>1</italic>
                    </font>
                </property>
                <property name="text">
                    <string>GNU/Linux</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>Label18_2_2_2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>100</y>
                        <width>400</width>
                        <height>30</height>
                    </rect>
                </property>
                <property name="font">
                    <font>
                        <pointsize>8</pointsize>
                        <italic>1</italic>
                    </font>
                </property>
                <property name="text">
                    <string>Copyright (c) 2009-2010 by mambaSoft di 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>
    <widget class="QWidget">
        <property name="name">
            <cstring>page2</cstring>
        </property>
        <attribute name="title">
            <string>System identification</string>
        </attribute>
        <widget class="GroupBox">
            <property name="name">
                <cstring>GroupBox5_3</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>10</x>
                    <y>10</y>
                    <width>560</width>
                    <height>380</height>
                </rect>
            </property>
            <property name="title">
                <string></string>
            </property>
            <widget class="PixmapLabel">
                <property name="name">
                    <cstring>PixmapLabel2_2_2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>30</x>
                        <y>20</y>
                        <width>64</width>
                        <height>80</height>
                    </rect>
                </property>
                <property name="sizePolicy">
                    <sizepolicy>
                        <hsizetype>0</hsizetype>
                        <vsizetype>0</vsizetype>
                        <horstretch>0</horstretch>
                        <verstretch>0</verstretch>
                    </sizepolicy>
                </property>
                <property name="frameShadow">
                    <enum>Sunken</enum>
                </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>Label6_2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>110</x>
                        <y>40</y>
                        <width>410</width>
                        <height>50</height>
                    </rect>
                </property>
                <property name="text">
                    <string>Please, fill the boxes below with missing data if any, and press Next to continue.</string>
                </property>
                <property name="alignment">
                    <set>WordBreak|AlignVCenter</set>
                </property>
            </widget>
            <widget class="ScriptObject">
                <property name="name">
                    <cstring>initfields</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>530</x>
                        <y>20</y>
                        <width>32</width>
                        <height>32</height>
                    </rect>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string>@BackBox.setChecked(true)
@NextBox.setChecked(false)
@execBegin
. /etc/sysconfig/machine
dcop @dcopid KommanderIf setText Manufacturer "$SYSTEM_MANUFACTURER"
dcop @dcopid KommanderIf setText Product "$SYSTEM_PRODUCT_NAME"
dcop @dcopid KommanderIf setText Serial "$SYSTEM_SERIAL_NUMBER"
@execEnd

@Manufacturer.setEnabled(false)
@Product.setEnabled(false)
@Serial.setEnabled(false)

@if (! "@Manufacturer.text" )
@Manufacturer.setEnabled(true)
@endif

@if (! "@Product.text" )
@Product.setEnabled(true)
@endif

@if (! "@Serial.text" )
@Serial.setEnabled(true)
@endif

@execBegin
USERHOME=`getent passwd $USER | cut -d: -f6`
dcop @dcopid KommanderIf setText repdir $USERHOME/Desktop
@execEnd</string>
                    </stringlist>
                </property>
            </widget>
            <widget class="QLayoutWidget">
                <property name="name">
                    <cstring>Layout3</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>110</y>
                        <width>540</width>
                        <height>80</height>
                    </rect>
                </property>
                <grid>
                    <property name="name">
                        <cstring>unnamed</cstring>
                    </property>
                    <property name="margin">
                        <number>0</number>
                    </property>
                    <property name="spacing">
                        <number>6</number>
                    </property>
                    <widget class="Label" row="2" column="0">
                        <property name="name">
                            <cstring>Label9</cstring>
                        </property>
                        <property name="text">
                            <string>Serial number:</string>
                        </property>
                    </widget>
                    <widget class="Label" row="1" column="0">
                        <property name="name">
                            <cstring>Label8</cstring>
                        </property>
                        <property name="text">
                            <string>Product name:</string>
                        </property>
                    </widget>
                    <widget class="LineEdit" row="0" column="1">
                        <property name="name">
                            <cstring>Manufacturer</cstring>
                        </property>
                        <property name="enabled">
                            <bool>false</bool>
                        </property>
                        <property name="readOnly">
                            <bool>false</bool>
                        </property>
                        <property name="inputMask">
                            <string></string>
                        </property>
                        <property name="associations" stdset="0">
                            <stringlist>
                                <string></string>
                            </stringlist>
                        </property>
                    </widget>
                    <widget class="Label" row="0" column="0">
                        <property name="name">
                            <cstring>Label6_3</cstring>
                        </property>
                        <property name="text">
                            <string>Manufacturer:</string>
                        </property>
                    </widget>
                    <widget class="LineEdit" row="1" column="1">
                        <property name="name">
                            <cstring>Product</cstring>
                        </property>
                        <property name="enabled">
                            <bool>false</bool>
                        </property>
                        <property name="readOnly">
                            <bool>false</bool>
                        </property>
                        <property name="inputMask">
                            <string></string>
                        </property>
                    </widget>
                    <widget class="LineEdit" row="2" column="1">
                        <property name="name">
                            <cstring>Serial</cstring>
                        </property>
                        <property name="enabled">
                            <bool>false</bool>
                        </property>
                        <property name="echoMode">
                            <enum>Normal</enum>
                        </property>
                        <property name="readOnly">
                            <bool>false</bool>
                        </property>
                    </widget>
                </grid>
            </widget>
            <widget class="Label">
                <property name="name">
                    <cstring>Label6_2_2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>200</y>
                        <width>410</width>
                        <height>30</height>
                    </rect>
                </property>
                <property name="text">
                    <string>Please, select the directory where the report will be generated:</string>
                </property>
                <property name="alignment">
                    <set>WordBreak|AlignVCenter</set>
                </property>
            </widget>
            <widget class="Label">
                <property name="name">
                    <cstring>Label6_2_2_2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>260</y>
                        <width>410</width>
                        <height>30</height>
                    </rect>
                </property>
                <property name="text">
                    <string>Please, enter a brief description of the problem:</string>
                </property>
                <property name="alignment">
                    <set>WordBreak|AlignVCenter</set>
                </property>
            </widget>
            <widget class="ScriptObject">
                <property name="name">
                    <cstring>CheckFields</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>530</x>
                        <y>70</y>
                        <width>32</width>
                        <height>32</height>
                    </rect>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string>@if ((! "@Manufacturer.text") ||
     (! "@Product.text") ||
     (! "@Serial.text")) then
dcop @dcopid KommanderIf setChecked NextBox false
@NextBox.setChecked(false)
@endif
@if (("@Manufacturer.text" != "") &amp;&amp;
     ("@Product.text" != "") &amp;&amp;
     ("@Serial.text" != "")) then
dcop @dcopid KommanderIf setChecked NextBox true
@NextBox.setChecked(true)
@endif
</string>
                    </stringlist>
                </property>
            </widget>
            <widget class="FileSelector">
                <property name="name">
                    <cstring>repdir</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>230</y>
                        <width>540</width>
                        <height>26</height>
                    </rect>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string></string>
                    </stringlist>
                </property>
                <property name="buttonCaption" stdset="0">
                    <string></string>
                </property>
                <property name="selectionFilter">
                    <string></string>
                </property>
                <property name="selectionCaption">
                    <string></string>
                </property>
                <property name="selectionType">
                    <enum>Directory</enum>
                </property>
            </widget>
            <widget class="TextEdit">
                <property name="name">
                    <cstring>problem</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>290</y>
                        <width>540</width>
                        <height>80</height>
                    </rect>
                </property>
            </widget>
        </widget>
    </widget>
    <widget class="QWidget">
        <property name="name">
            <cstring>page3</cstring>
        </property>
        <attribute name="title">
            <string>openmamba system report generator for debugging</string>
        </attribute>
        <widget class="GroupBox">
            <property name="name">
                <cstring>GroupBox5_2</cstring>
            </property>
            <property name="geometry">
                <rect>
                    <x>10</x>
                    <y>10</y>
                    <width>570</width>
                    <height>380</height>
                </rect>
            </property>
            <property name="title">
                <string></string>
            </property>
            <widget class="QLayoutWidget">
                <property name="name">
                    <cstring>Layout1</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>100</x>
                        <y>40</y>
                        <width>390</width>
                        <height>33</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>reporttext</cstring>
                        </property>
                        <property name="sizePolicy">
                            <sizepolicy>
                                <hsizetype>1</hsizetype>
                                <vsizetype>5</vsizetype>
                                <horstretch>0</horstretch>
                                <verstretch>0</verstretch>
                            </sizepolicy>
                        </property>
                        <property name="font">
                            <font>
                                <bold>1</bold>
                            </font>
                        </property>
                        <property name="text">
                            <string>Creating report, please wait...</string>
                        </property>
                        <property name="alignment">
                            <set>AlignVCenter</set>
                        </property>
                    </widget>
                    <widget class="Label">
                        <property name="name">
                            <cstring>ReportLabel</cstring>
                        </property>
                        <property name="sizePolicy">
                            <sizepolicy>
                                <hsizetype>3</hsizetype>
                                <vsizetype>5</vsizetype>
                                <horstretch>0</horstretch>
                                <verstretch>0</verstretch>
                            </sizepolicy>
                        </property>
                        <property name="font">
                            <font>
                                <bold>1</bold>
                            </font>
                        </property>
                        <property name="text">
                            <string></string>
                        </property>
                        <property name="alignment">
                            <set>AlignVCenter</set>
                        </property>
                    </widget>
                </hbox>
            </widget>
            <widget class="PixmapLabel">
                <property name="name">
                    <cstring>PixmapLabel2_2</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>20</x>
                        <y>10</y>
                        <width>64</width>
                        <height>80</height>
                    </rect>
                </property>
                <property name="sizePolicy">
                    <sizepolicy>
                        <hsizetype>0</hsizetype>
                        <vsizetype>0</vsizetype>
                        <horstretch>0</horstretch>
                        <verstretch>0</verstretch>
                    </sizepolicy>
                </property>
                <property name="frameShadow">
                    <enum>Sunken</enum>
                </property>
                <property name="pixmap">
                    <pixmap>image1</pixmap>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string></string>
                    </stringlist>
                </property>
            </widget>
            <widget class="TextEdit">
                <property name="name">
                    <cstring>reportlog</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>10</x>
                        <y>110</y>
                        <width>550</width>
                        <height>200</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>makeReport</cstring>
                </property>
                <property name="geometry">
                    <rect>
                        <x>530</x>
                        <y>30</y>
                        <width>32</width>
                        <height>32</height>
                    </rect>
                </property>
                <property name="associations" stdset="0">
                    <stringlist>
                        <string>@BackBox.setChecked(false)
@execBegin

errfile=`mktemp`
inputfile=`mktemp`
cat &gt; $inputfile &lt;&lt; _EOF
@problem.text()
_EOF
problemtext=`echo @problem.text() | sed "s|\"|\\\"|"`
SYSTEM_MANUFACTURER=`dcop @dcopid KommanderIf text Manufacturer` \
SYSTEM_PRODUCT_NAME=`dcop @dcopid KommanderIf text Product` \
SYSTEM_SERIAL_NUMBER=`dcop @dcopid KommanderIf text Serial` \
pkexec openmamba-makereport @repdir.text() $HOME $inputfile &amp;&gt; $errfile
ret=$?
if [ $ret -eq 0 ]; then
   dcop @dcopid KommanderIf setChecked NextBox true
   dcop @dcopid KommanderIf setText ReportLabel "DONE"
else
   dcop @dcopid KommanderIf setChecked NextBox false
   dcop @dcopid KommanderIf setText ReportLabel "ERROR"
fi
dcop @dcopid KommanderIf setText reportlog "`cat $errfile`"
rm -f $errfile $inputfile
@execEnd
</string>
                    </stringlist>
                </property>
            </widget>
        </widget>
    </widget>
</widget>
<images>
    <image name="image0">
        <data format="XPM.GZ" length="63226">[encoded data, 16166 characters]</data>
    </image>
    <image name="image1">
        <data format="XPM.GZ" length="12321">[encoded data, 5430 characters]</data>
    </image>
</images>
<connections>
    <connection>
        <sender>NextBox</sender>
        <signal>stateChanged(int)</signal>
        <receiver>backnext</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>Manufacturer</sender>
        <signal>textChanged(const QString&amp;)</signal>
        <receiver>CheckFields</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>Serial</sender>
        <signal>textChanged(const QString&amp;)</signal>
        <receiver>CheckFields</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>Product</sender>
        <signal>textChanged(const QString&amp;)</signal>
        <receiver>CheckFields</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>BackBox</sender>
        <signal>widgetOpened()</signal>
        <receiver>backnext</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>Manufacturer</sender>
        <signal>widgetOpened()</signal>
        <receiver>initfields</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>reporttext</sender>
        <signal>widgetOpened()</signal>
        <receiver>makeReport</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>BackBox</sender>
        <signal>stateChanged(int)</signal>
        <receiver>backnext</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>Form1</sender>
        <signal>selected(const QString&amp;)</signal>
        <receiver>backnext</receiver>
        <slot>execute()</slot>
    </connection>
    <connection>
        <sender>NextBox</sender>
        <signal>widgetOpened()</signal>
        <receiver>backnext</receiver>
        <slot>execute()</slot>
    </connection>
</connections>
<layoutdefaults spacing="6" margin="11"/>
</UI>
