#!/bin/sh
#Barry Kauler www.puppylinux.com
#2007 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html)
#v411 modified network-connect button.
#100215 fix exit button.
#101019 added video upgrade wizard.
#120202 BK: internationalized.
#130216 BK: change text for mouse.
#131210 zigbert: gui (gtkdialog) improvements.

export TEXTDOMAIN=wizardwizard
export OUTPUT_CHARSET=UTF-8

[ -s /usr/sbin/pdesktop ] && BUTTON_33='<button image-position="2"><label>'$(gettext 'Desktop')'</label>'"`/usr/lib/gtkdialog/xml_button-icon windows.svg huge`"'<action>/usr/sbin/pdesktop &</action></button>' || BUTTON_33='<text><label>""</label></text>'

export WizardWizard='
<window title="'$(gettext 'Puppy Setup')'" icon-name="gtk-preferences">
<vbox space-expand="true" space-fill="true">
  '"`/usr/lib/gtkdialog/xml_info fixed puppy_config.svg 60 "$(gettext "This is the basic setup guide for Puppy. More configuration is found in the <b>Desktop</b> and <b>Setup</b> menu.")"`"'
  <vbox spacing="10" space-expand="true" space-fill="true">
  <frame '$(gettext 'Wizards')'>
    <hbox spacing="10" homogeneous="true" space-expand="true" space-fill="true">
      <button image-position="2">
        <label>'$(gettext 'Language / Country')'</label>
        '"`/usr/lib/gtkdialog/xml_button-icon country.svg huge`"'
        <action>/usr/sbin/countrywizard &</action>
      </button>
      <button image-position="2">
        <label>'$(gettext 'Startup')'</label>
        '"`/usr/lib/gtkdialog/xml_button-icon startup_services.svg huge`"'
        <action>/usr/sbin/bootmanager &</action>
      </button>
      <button image-position="2">
        <label>'$(gettext 'Mouse / Keyboard')'</label>
         '"`/usr/lib/gtkdialog/xml_button-icon mouse_keyboard.svg huge`"'
        <action>/usr/sbin/input-wizard &</action>
      </button>
    </hbox>
  
    <hbox spacing="10" homogeneous="true" space-expand="true" space-fill="true">
      <button image-position="2">
        <label>'$(gettext 'Sound')'</label>
        '"`/usr/lib/gtkdialog/xml_button-icon sound.svg huge`"'
        <action>/usr/sbin/alsawizard &</action>
      </button>
      <button image-position="2">
        <label>'$(gettext 'Graphics / Screen')'</label>
        '"`/usr/lib/gtkdialog/xml_button-icon graphics.svg huge`"'
        <action>/usr/sbin/xserverwizard &</action>
      </button>
      <button image-position="2">
        <label>'$(gettext 'Accelerated graphics')'</label>
        '"`/usr/lib/gtkdialog/xml_button-icon graphics_3D.svg huge`"'
        <action>/usr/sbin/video_upgrade_wizard & </action>
      </button>
    </hbox>

    <hbox spacing="10" homogeneous="true" space-expand="true" space-fill="true">
      <button image-position="2">
        <label>'$(gettext 'Internet')'</label>
        '"`/usr/lib/gtkdialog/xml_button-icon internet_connect.svg huge`"'
        <action>/usr/sbin/connectwizard &</action>
      </button>
      <button image-position="2">
        <label>'$(gettext 'Printer')'</label>
        '"`/usr/lib/gtkdialog/xml_button-icon print.svg huge`"'
        <action>/usr/sbin/cups_shell &</action>
      </button>
      '$BUTTON_33'
    </hbox>
  </frame>
  </vbox>

  <hbox space-expand="false" space-fill="false">
    <button>'"`/usr/lib/gtkdialog/xml_button-icon quit`"'<label>'$(gettext 'Quit')'</label></button>
  </hbox>
 </vbox>
</window>'

. /usr/lib/gtkdialog/xml_info gtk #build bg_pixmap for gtk-theme
gtkdialog -p WizardWizard

unset WizardWizard
