#!/bin/sh

GTKDIALOG=gtkdialog

#export TMPDIR=/tmp/gtkdialog/examples/"`basename $0`"
#mkdir -p "$TMPDIR"

export TEXTDOMAIN=quickpet
export OUTPUT_CHARSET=UTF-8
. gettext.sh 

MAIN_DIALOG='
<window title="Quickpet Tahr" window-position="1">
	<vbox>
	<menubar> 
  <menu>
    <menuitem tooltip-text="'"$(gettext "check quickpet version")"'">
         <label>"'"$(gettext "version")"'"</label>
         <action>/usr/local/quickpet_precise/version &</action>
    </menuitem>
    <menuitem tooltip-text="'"$(gettext "visit the puppy forum")"'">
         <label>"'"$(gettext "puppy forum")"'"</label>
         <action>defaultbrowser http://www.murga-linux.com/puppy/ &</action>
    </menuitem>
    <menuitem tooltip-text="'"$(gettext "visit tahrpup page on forum")"'">
         <label>"'"$(gettext "tahrpup help")"'"</label>
         <action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?t=96178 &</action>
    </menuitem>
    <menuitem tooltip-text="'"$(gettext "search the forum for answers")"'">
         <label>"'"$(gettext "puppylinux search")"'"</label>
         <action>defaultbrowser http://puppylinux.org/wikka/PuppyLinuxSearchEngine &</action>
    </menuitem>
    <menuitem tooltip-text="'"$(gettext "see bug fixes so far")"'">
         <label>"'"$(gettext "installed bugfixes")"'"</label>
         <action>/usr/local/quickpet_precise/bugfixes &</action>
    </menuitem>
    <menuitem>
         <label>"'"$(gettext "woof-woof")"'"</label>
         <action>aplay /usr/share/audio/2barks.wav &</action>
    </menuitem>
    <label>"'"$(gettext "help")"'"</label>
    </menu>
    <menu>
    <menuitem tooltip-text="'"$(gettext "change to large version")"'">
         <label>"'"$(gettext "big version")"'"</label>
         <action>/usr/local/quickpet_precise/size1 &</action>
         <action>exit:Exit</action>
    </menuitem>
    <label>"'"$(gettext "quickpet size")"'"</label>
    </menu>
         <menu>
    <menuitem tooltip-text="'"$(gettext "open the puppy package manager")"'">
         <label>"'"$(gettext "puppy package manager")"'"</label>
         <action>ppm &</action>
    </menuitem>
    <label>"'"$(gettext "PPM")"'"</label>
    </menu>
    </menubar>
		<notebook labels="'"$(gettext "Info|Browse|Net|Audio|Vid|Draw|Fun|Office|Useful|WM|Drivers")"'">
			<vbox>
         <text><label>"'"$(gettext "Welcome to Quickpet")"'"</label></text>
         <text><label>-------------------</label></text>
         	<text><label>"'"$(gettext "Quickpet enables you to install popular apps quickly.")"'"</label></text>
			<text><label>"'"$(gettext "more apps can be found in the puppy package manager")"'"</label></text>
			<text><label>-------------------</label></text>
			<button tooltip-text="'"$(gettext "install the latest updates & bug fixes")"'">
		        <label>"'"$(gettext "tahrpup updates")"'"</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qwoof2"></input>
				<action>/usr/local/quickpet_precise/tahrupdate &</action>
			</button>
			<button tooltip-text="'"$(gettext "tahrpup allows easy changing of 
kernels please read the read-me file")"'">
		        <label>"'"$(gettext "changing kernels")"'"</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qupup"></input>
				<action>defaultbrowser http://ftp.nluug.nl/ibiblio/distributions/puppylinux/puppy-tahr/kernels/ &</action>
			</button>
			<button tooltip-text="'"$(gettext "puppy linux search engine")"'">
		        <label>"'"$(gettext "puppy search engine")"'"</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qsearch"></input>
				<action>defaultbrowser http://puppylinux.org/wikka/PuppyLinuxSearchEngine &</action>
			</button>
			</vbox>
			<vbox>
		     <button tooltip-text="'"$(gettext "install")"' firefox">
		        <label>firefox</label>
				<input file icon="qfirefox"></input>
				<action>/usr/local/quickpet_precise/firefox &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' seamonkey">
		        <label>seamonkey</label>
				<input file icon="qseamonkey"></input>
				<action>/usr/local/quickpet_precise/seamonkey &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' opera">
		        <label>opera</label>
				<input file icon="qopera"></input>
				<action>/usr/local/quickpet_precise/opera &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' google-chrome">
		        <label>chrome</label>
				<input file icon="qGoogle-Chrome"></input>
				<action>/usr/local/quickpet_precise/chrome &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' iron">
		        <label>iron</label>
				<input file icon="qIron"></input>
				<action>/usr/local/quickpet_precise/iron &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' tor-browser">
		        <label>tor</label>
				<input file icon="qtor"></input>
				<action>/usr/local/quickpet_precise/tor &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' slimboat browser">
		        <label>slimboat</label>
				<input file icon="qslimboat"></input>
				<action>/usr/local/quickpet_precise/slimboat &</action>
			</button>
			<frame>
			<pixmap>
			<height>75</height>
			<width>75</width>
         <input file>/usr/share/icons/qpupster.png</input>
         </pixmap>
         </frame>
			</vbox>
			<vbox>
		     <button tooltip-text="'"$(gettext "install the latest java from the puppy forum")"'">
		        <label>java</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qjava"></input>
				<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?t=61287 &</action>
			</button>
			<button tooltip-text="flash installer">
		        <label>flash</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qflash"></input>
				<action>getflash &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' skype">
		        <label>skype</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qskype"></input>
				<action>/usr/local/quickpet_precise/skype &</action>
			</button>
				<button tooltip-text="'"$(gettext "install")"' dropbox">
		        <label>dropbox installer</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qdropbox"></input>
				<action>/usr/local/quickpet_precise/dropbox &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' pidgin chat client">
		        <label>pidgin</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qpidgin"></input>
				<action>/usr/local/quickpet_precise/pidgin &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' instantbird chat client">
		        <label>instantbird</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qinstantbird"></input>
				<action>/usr/local/quickpet_precise/instantbird &</action>
			</button>
			<button tooltip-text="download google-earth">
		        <label>googleearth</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qgoogle_earth"></input>
				<action>/usr/local/quickpet_precise/googleearth &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' tixati torrent client">
		        <label>tixati</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qtixati"></input>
				<action>/usr/local/quickpet_precise/tixati &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' qbittorrent torrent client">
		        <label>qbittorent</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qqbittorrent"></input>
				<action>/usr/local/quickpet_precise/qbittorrent &</action>
			</button>
			</vbox>
			<vbox>
			<button tooltip-text="'"$(gettext "install")"' goggles music manager">
		        <label>gogglesmm</label>
				<input file icon="qgogglesmm"></input>
				<action>/usr/local/quickpet_precise/gogglesmm &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' guayadeque audio player">
		        <label>guayadeque</label>
				<input file icon="qguayadeque"></input>
				<action>/usr/local/quickpet_precise/guayadeque &</action>
			</button>
			<button tooltip-text="'"$(gettext "upload and manage upto 20,000 tracks to the cloud")"'">
		        <label>google music manager</label>
				<input file icon="qgooglemusic"></input>
				<action>/usr/local/quickpet_precise/googlemusic &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' qmmp audio player">
		        <label>qmmp</label>
				<input file icon="qqmmp"></input>
				<action>/usr/local/quickpet_precise/qmmp &</action>
			</button>
				<button tooltip-text="'"$(gettext "install")"' foobnix audio player">
		        <label>foobnix</label>
				<input file icon="qfoobnix"></input>
				<action>/usr/local/quickpet_precise/foobnix &</action>
			</button>
			<button tooltip-text="'"$(gettext "search and download from grooveshark")"'">
		        <label>grooveoff</label>
				<input file icon="qgrooveoff"></input>
				<action>/usr/local/quickpet_precise/grooveoff &</action>
			</button>
			<button tooltip-text="dj mixing software">
		        <label>mixxx 1.11.0</label>
				<input file icon="qmixxx"></input>
				<action>/usr/local/quickpet_precise/mixxx &</action>
			</button>
			<button tooltip-text="instal Linux multi media studio">
		        <label>LMMS</label>
				<input file icon="qlmms"></input>
				<action>/usr/local/quickpet_precise/lmms &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' spotify sfs">
		        <label>spotify</label>
				<input file icon="qspotify"></input>
				<action>/usr/local/quickpet_precise/spotify &</action>
			</button>
			</vbox>
			<vbox>
			<button tooltip-text="'"$(gettext "install")"' smplayer & smtube youtube viewer">
		        <label>smplayer</label>
				<input file icon="qsmplayer"></input>
				<action>/usr/local/quickpet_precise/smplayer &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' openshot video editor">
		        <label>openshot</label>
				<input file icon="qopenshot"></input>
				<action>/usr/local/quickpet_precise/openshot &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' avidemux video editor">
		        <label>avidemux</label>
				<input file icon="qavidemux"></input>
				<action>/usr/local/quickpet_precise/avidemux &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' kodi media centre (previously known as xbmc)">
		        <label>kodi</label>
				<input file icon="qkodi"></input>
				<action>/usr/local/quickpet_precise/kodi &</action>
			</button>
				<button tooltip-text="'"$(gettext "install")"' guvcview webcam software">
		        <label>guvcview</label>
				<input file icon="qguvcview"></input>
				<action>/usr/local/quickpet_precise/guvcview &</action>
			</button>
			<frame>
			<pixmap>
			<height>50</height>
			<width>50</width>
         <input file>/usr/share/icons/qpupold.png</input>
         </pixmap>
         </frame>
			</vbox>
			<vbox>
		     <button tooltip-text="'"$(gettext "install")"' gimp">
		        <label>gimp</label>
				<input file icon="qgimp"></input>
				<action>/usr/local/quickpet_precise/gimp &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' mypaint">
		        <label>mypaint</label>
				<input file icon="qmypaint"></input>
				<action>/usr/local/quickpet_precise/mypaint &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' blender">
		        <label>blender</label>
				<input file icon="qblender"></input>
				<action>/usr/local/quickpet_precise/blender &</action>
			</button>
			<button tooltip-text="'"$(gettext "flame fractal generator (requires JAVA)")"'">
		        <label>jwildfire</label>
				<input file icon="qjwildfire"></input>
				<action>/usr/local/quickpet_precise/jwildfire &</action>
			</button>
			<button tooltip-text="'"$(gettext "screen shot and annotation tool")"'">
		        <label>hotshots</label>
				<input file icon="qhotshots"></input>
				<action>/usr/local/quickpet_precise/hotshots &</action>
			</button>
				<button tooltip-text="'"$(gettext "install")"' libreCAD">
		        <label>libreCAD</label>
				<input file icon="qlibrecad"></input>
				<action>/usr/local/quickpet_precise/librecad &</action>
			</button>
			<frame>
			<pixmap>
			<height>30</height>
			<width>30</width>
         <input file>/usr/share/icons/qpuppylogo48.png</input>
         </pixmap>
         </frame>
			</vbox>
			<vbox>
			<button tooltip-text="'"$(gettext "excellent & challenging turn based battles")"'">
		        <label>battle for wesnoth</label>
		        <height>16</height>
		        <width>16</width>		        
				<input file icon="qwesnoth"></input>
				<action>/usr/local/quickpet_precise/wesnoth &</action>
			</button>
			<button tooltip-text="'"$(gettext "3D turnbased fighting with ragdoll physics")"'">
		        <label>toribash</label>
		        <height>16</height>
		        <width>16</width>		        
				<input file icon="qtorribash"></input>
				<action>/usr/local/quickpet_precise/toribash &</action>
			</button>
			<button tooltip-text="'"$(gettext "27 love2d games")"'">
		        <label>love2d lua games compilation</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qlove"></input>
				<action>/usr/local/quickpet_precise/love &</action>
			</button>
			<button tooltip-text="'"$(gettext "incredibly hard reaction game")"'">
		        <label>open hexagon</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qopenhexagon"></input>
				<action>/usr/local/quickpet_precise/openhexagon &</action>
			</button>
			<button tooltip-text="'"$(gettext "not all work on precise")"'">
		        <label>portable linux games website</label>
		        <action>defaultbrowser http://www.portablelinuxgames.org/ &</action>
			</button>
			<button tooltip-text="'"$(gettext "install steam  (experimental)")"'">
		        <label>steam</label>
		        <height>16</height>
		        <width>16</width>
				<input file icon="qsteam"></input>
				<action>/usr/local/quickpet_precise/steam &</action>
			</button>
            </vbox>
			<vbox>
			<button tooltip-text="'"$(gettext "install")"' openoffice">
		        <label>openoffice</label>
				<input file icon="qopenoffice"></input>
				<action>/usr/local/quickpet_precise/openoffice &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' libreoffice">
		        <label>libreoffice</label>
				<input file icon="qlibreoffice"></input>
				<action>/usr/local/quickpet_precise/libreoffice &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' thunderbird email">
		        <label>thunderbird</label>
				<input file icon="qthunderbird"></input>
				<action>/usr/local/quickpet_precise/thunderbird &</action>
			</button>
			<button tooltip-text="'"$(gettext "install")"' teamviewer9.sfs">
		        <label>teamviewer</label>
				<input file icon="qteamviewer"></input>
				<action>/usr/local/quickpet_precise/teamviewer &</action>
			</button>
				<button tooltip-text="'"$(gettext "install the latest calibre ebook reader")"'">
		        <label>calibre</label>
				<input file icon="qcalibre"></input>
				<action>/usr/local/quickpet_precise/calibre &</action>
			</button>
         <button tooltip-text="'"$(gettext "install")"' stellarium 0.11">
		        <label>stellarium</label>
				<input file icon="qstellarium"></input>
				<action>/usr/local/quickpet_precise/stellarium &</action>
			</button>
         <button tooltip-text="'"$(gettext "run windows programs")"'">
		        <label>wine</label>
				<input file icon="qwine"></input>
				<action>/usr/local/quickpet_precise/wine &</action>
			</button>
			<button tooltip-text="'"$(gettext "install the latest virtualbox from the puppy forum")"'">
		        <label>virtualbox</label>
				<input file icon="qvirtualbox"></input>
				<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=481055#481055 &</action>
			</button>
			<button tooltip-text="'"$(gettext "install the latest vmware player from the puppy forum")"'">
		        <label>vmware</label>
				<input file icon="qvmware"></input>
				<action>/usr/local/quickpet_precise/vmware &</action>
			</button>
	       </vbox>
			<vbox>
			<button tooltip-text="'"$(gettext "cpu temperature monitor for taskbar")"'">
		        <label>tempicontray</label>
		        <input file icon="qtemp"></input>
		       <action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?t=74702 &</action>
			</button>
			<button tooltip-text="'"$(gettext "radkys pupmates... various system tools")"'">
		        <label>radkys pupmates</label>
		        <input file icon="qpupmates"></input>
		        <action>defaultbrowser http://www.smokey01.com/radky/PupMates.html &</action>
			</button>
			<button tooltip-text="'"$(gettext "install bleachbit system cleaner")"'">
		        <label>bleachbit</label>
				<input file icon="qbleachbit"></input>
				<action>/usr/local/quickpet_precise/bleachbit &</action>
			</button>
			<button tooltip-text="'"$(gettext "install conky system monitor")"'">
		        <label>conky</label>
				<input file icon="qconky"></input>
				<action>/usr/local/quickpet_precise/conky &</action>
			</button>
			<frame>
			<pixmap>
			<height>40</height>
			<width>40</width>
         <input file>/usr/share/icons/qpupster.png</input>
         </pixmap>
			</frame>
			<button tooltip-text="'"$(gettext "install devx developer package (contains gcc compiler)")"'">
		        <label>devx</label>
		        <height>16</height>
		        <width>16</width>
		        <input file icon="qsfs"></input>
		        <action>defaultbrowser http://ftp.nluug.nl/ibiblio/distributions/puppylinux/puppy-tahr/iso/ &</action>
			</button>
			<button tooltip-text="'"$(gettext "install kernel sources ")"'">
		        <label>kernel src</label>
		        <height>16</height>
		        <width>16</width>
		        <input file icon="qkernel"></input>
		        <action>sfsget &</action>
			</button>
        </vbox>
         <vbox>
         <text><label>'"$(gettext "installing multiple window managers might cause some quirks")"'</label></text>
         <button tooltip-text="lxde desktop environment">
		        <label>lxde</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qlxde"></input>
				<action>defaultbrowser http://sourceforge.net/projects/lxpup/files/LxPup-by-SFS/Upup-Tahr/ &</action>
			</button>
			  <button tooltip-text="openbox WM & fbpanel">
		        <label>openbox & fbpanel</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qfbbox"></input>
				<action>/usr/local/quickpet_precise/fbbox &</action>
			</button>
			<button tooltip-text="xfce desktop environment">
		        <label>xfce</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qxfce"></input>
				<action>/usr/local/quickpet_precise/xfce &</action>
			</button>
			<text><label>"'"$(gettext "the compiz pet below is expermental and may")"'"</label></text>
			<text><label>"'"$(gettext "not work on some setups")"'"</label></text>
				<button tooltip-text="'"$(gettext "install compiz and emerald window manager ..requires reboot")"'">
		        <label>compiz & emerald</label>
		        <input file icon="qemerald"></input>
				<action>/usr/local/quickpet_precise/compiz &</action>
			</button>
			</vbox>
			<vbox>
			<button tooltip-text="'"$(gettext "Install proprietory graphic drivers")"'">
		        <label>"'"$(gettext "video upgrade wizard")"'"</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qgraphics"></input>
				<action>video_upgrade_wizard &</action>
			</button>
			</vbox>
		</notebook>
		<hbox>
			<button cancel></button>
			</hbox>
	</vbox>
</window>'
GUI="
<window>
 <vbox>
  <menubar>
   ...
  </menubar>
 </vbox>
 <action signal=\"hide\">exit:Exit</action>
</window>"
export MAIN_DIALOG

case $1 in
	-d | --dump) echo "$MAIN_DIALOG" ;;
	*) $GTKDIALOG --program=MAIN_DIALOG ;;
esac
