#!/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.
#24aug10 shinobar: i18n, exit button
#16aug10 rodin.s: gettext for Upgrade X drivers

export TEXTDOMAIN=usr_sbin
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8

#    <action>/usr/sbin/printerwizard.sh &</action>
#    <action>/usr/sbin/modem-wizard &</action>

#  <hbox>
#   <text>
#    <label>This Wizard Wizard is a guide to using the Wizards in Puppy</label>
#   </text>
#  </hbox>

#    <action>exit</action>

export WizardWizard="
<window title=\"$(gettext 'Puppy Setup')\" icon-name=\"gtk-preferences\">
 <vbox>

  <hbox>
   <text>
    <label>$(gettext 'Configure Puppy for your country')...</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-font.xpm</input>
    <action>/usr/sbin/countrywizard &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>$(gettext 'Configure startup of Puppy')...</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/module16.xpm</input>
    <action>/usr/sbin/bootmanager &</action>
   </button>
  </hbox>

  <hbox>
   <text>
    <label>$(gettext 'Change the mouse and keyboard')...</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/Mouse.xpm</input>
    <action>/usr/sbin/input-wizard &</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>$(gettext 'Setup ALSA sound')...</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-speaker.xpm</input>
    <action>/usr/sbin/alsawizard &</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>$(gettext 'Setup the X video')...</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-x.xpm</input>
    <action>/usr/sbin/xserverwizard &</action>
   </button>
  </hbox>
  
  <hbox>
   <text>
    <label>$(gettext 'Upgrade X drivers')...</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/x16.xpm</input>
    <action>/usr/sbin/video_upgrade_wizard & </action>
   </button>
  </hbox>
  
  <hbox>
   <text>
    <label>$(gettext 'Connect to Internet or Intranet')...</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/pc2www.xpm</input>
    <action>/usr/sbin/connectwizard yes &</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>$(gettext 'Setup CUPS printing')...</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/tb_print.xpm</input>
    <action>/usr/sbin/cups_shell &</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>$(gettext 'Setup CD and DVD reader and burner drives')...</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-cd.xpm</input>
    <action>/usr/sbin/cdburner-wizard &</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>$(gettext 'Setup a firewall')...</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/mini-firewall.xpm</input>
    <action>rxvt -e /usr/sbin/firewallinstallshell &</action>
   </button>
  </hbox>


  <hbox>
   <button><input file stock=\"gtk-quit\"></input><label>$(gettext 'Quit')</label></button>
  </hbox>
 </vbox>
</window>
"

#echo "$WizardWizard" | gtkdialog --stdin
gtkdialog3 --program=WizardWizard

unset WizardWizard
