#!/bin/sh

GTKDIALOG=gtkdialog

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

MAIN_DIALOG='
<window title="Quickpet Tahr" window-position="1">
	<vbox>
	<menubar> 
  <menu>
    <menuitem tooltip-text="check quickpet version">
         <label>version</label>
         <action>/usr/local/quickpet_precise/version &</action>
    </menuitem>
    <menuitem tooltip-text="visit the puppy forum">
         <label>puppy forum</label>
         <action>defaultbrowser http://www.murga-linux.com/puppy/ &</action>
    </menuitem>
    <menuitem tooltip-text="visit tahrpup page on forum">
         <label>tahrpup help</label>
         <action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?t=93998 &</action>
    </menuitem>
    <menuitem tooltip-text="see bug fixes so far">
         <label>installed bugfixes</label>
         <action>/usr/local/quickpet_precise/bugfixes &</action>
    </menuitem>
    <menuitem>
         <label>woof-woof</label>
         <action>aplay /usr/share/audio/2barks.wav &</action>
    </menuitem>
    <label>help</label>
    </menu>
    <menu>
    <menuitem tooltip-text="change to small version">
         <label>small version</label>
         <action>/usr/local/quickpet_precise/size2 &</action>
         <action>exit:Exit</action>
    </menuitem>
    <label>quickpet size</label>
    </menu>
         <menu>
    <menuitem tooltip-text="open the puppy package manager">
         <label>puppy package manager</label>
         <action>ppm &</action>
    </menuitem>
    <label>PPM</label>
    </menu>
    </menubar>
		<notebook labels="Info|Browsers|Internet|Audio|Video|Graphics|Games|Office&other|Useful pets|desktops|Drivers">
			<vbox>
         <text><label>Welcome to Quickpet</label></text>
         <text><label>-------------------</label></text>
         	<text><label>Quickpet enables you to install popular apps quickly.</label></text>
			<text><label>more apps can be found in the puppy package manager</label></text>
			<text><label>-------------------</label></text>
			<button tooltip-text="install the latest bug fixes">
		        <label>tahrpup bug fixes</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qwoof2"></input>
				<action>/usr/local/quickpet_precise/tahrupdate &</action>
			</button>
			<button tooltip-text="update quickpet">
		        <label>update quickpet</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="woofq"></input>
				<action>/usr/local/quickpet_precise/update &</action>
				<action>exit:Exit</action>
			</button>
			<button tooltip-text="tahrpup allows easy changing of 
kernels please read the read-me file">
		        <label>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>
			<frame>
			<pixmap>
			<height>150</height>
			<width>150</width>
         <input file>/usr/share/icons/woofq.png</input>
         </pixmap>
         </frame>
			</vbox>
			<vbox>
		     <button tooltip-text="install firefox browser">
		        <label>firefox</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qfirefox"></input>
				<action>/usr/local/quickpet_precise/firefox &</action>
			</button>
			<button tooltip-text="install seamonkey browser">
		        <label>seamonkey</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qseamonkey"></input>
				<action>/usr/local/quickpet_precise/seamonkey &</action>
			</button>
			<button tooltip-text="install opera browser">
		        <label>opera</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qopera"></input>
				<action>/usr/local/quickpet_precise/opera &</action>
			</button>
			<button tooltip-text="install google-chrome browser">
		        <label>chrome</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qGoogle-Chrome"></input>
				<action>/usr/local/quickpet_precise/chrome &</action>
			</button>
			<button tooltip-text="install iron browser">
		        <label>iron</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qIron"></input>
				<action>/usr/local/quickpet_precise/iron &</action>
			</button>
			<button tooltip-text="install tor-browser">
		        <label>tor</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qtor"></input>
				<action>/usr/local/quickpet_precise/tor &</action>
			</button>
			<button tooltip-text="install slimboat browser">
		        <label>slimboat</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qslimboat"></input>
				<action>/usr/local/quickpet_precise/slimboat &</action>
			</button>
			</vbox>
			<vbox>
		     <button tooltip-text="install the latest java from the puppy forum">
		        <label>java</label>
		        <height>32</height>
		        <width>32</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>32</height>
		        <width>32</width>
				<input file icon="qflash"></input>
				<action>getflash &</action>
			</button>
			<button tooltip-text="install skype">
		        <label>skype</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qskype"></input>
				<action>/usr/local/quickpet_precise/skype &</action>
			</button>
			<button tooltip-text="install pidgin chat client">
		        <label>pidgin</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qpidgin"></input>
				<action>/usr/local/quickpet_precise/pidgin &</action>
			</button>
			<button tooltip-text="install instantbird chat client">
		        <label>instantbird</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qinstantbird"></input>
				<action>/usr/local/quickpet_precise/instantbird &</action>
			</button>
			<button tooltip-text="download google-earth">
		        <label>googleearth</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qgoogle_earth"></input>
				<action>/usr/local/quickpet_precise/googleearth &</action>
			</button>
			<button tooltip-text="install tixati torrent client">
		        <label>tixati</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qtixati"></input>
				<action>/usr/local/quickpet_precise/tixati &</action>
			</button>
			<button tooltip-text="install qbittorrent torrent client">
		        <label>qbittorent</label>
		        <height>32</height>
		        <width>32</width>
				<input file icon="qqbittorrent"></input>
				<action>/usr/local/quickpet_precise/qbittorrent &</action>
			</button>
			</vbox>
			<vbox>
			<button tooltip-text="install goggles music manager">
		        <label>gogglesmm</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qgogglesmm"></input>
				<action>/usr/local/quickpet_precise/gogglesmm &</action>
			</button>
			<button tooltip-text="install guayadeque audio player">
		        <label>guayadeque</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qguayadeque"></input>
				<action>/usr/local/quickpet_precise/guayadeque &</action>
			</button>
			<button tooltip-text="upload and manage upto 20,000 tracks to the cloud">
		        <label>google music manager</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qgooglemusic"></input>
				<action>/usr/local/quickpet_precise/googlemusic &</action>
			</button>
			<button tooltip-text="install qmmp audio player">
		        <label>qmmp</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qqmmp"></input>
				<action>/usr/local/quickpet_precise/qmmp &</action>
			</button>
			<button tooltip-text="search and download from grooveshark">
		        <label>grooveoff</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qgrooveoff"></input>
				<action>/usr/local/quickpet_precise/grooveoff &</action>
			</button>
			<button tooltip-text="dj mixing software">
		        <label>mixxx 1.10.0</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qmixxx"></input>
				<action>/usr/local/quickpet_precise/mixxx &</action>
			</button>
			<button tooltip-text="instal Linux multi media studio">
		        <label>LMMS</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qlmms"></input>
				<action>/usr/local/quickpet_precise/lmms &</action>
			</button>
			<button tooltip-text="install simplegtkradio">
		        <label>simple gtk radio</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qradiotray"></input>
				<action>/usr/local/quickpet_precise/radio &</action>
			</button>
			<button tooltip-text="install spotify sfs">
		        <label>spotify</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qspotify"></input>
				<action>/usr/local/quickpet_precise/spotify &</action>
			</button>
			</vbox>
			<vbox>
			<button tooltip-text="install smplayer & smtube youtube viewer">
		        <label>smplayer</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qsmplayer"></input>
				<action>/usr/local/quickpet_precise/smplayer &</action>
			</button>
			<button tooltip-text="install openshot video editor">
		        <label>openshot</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qopenshot"></input>
				<action>/usr/local/quickpet_precise/openshot &</action>
			</button>
			<button tooltip-text="install avidemux video editor">
		        <label>avidemux</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qavidemux"></input>
				<action>/usr/local/quickpet_precise/avidemux &</action>
			</button>
			<button tooltip-text="install xbmc media centre">
		        <label>xbmc</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qxbmc"></input>
				<action>/usr/local/quickpet_precise/xbmc &</action>
			</button>
				<button tooltip-text="install guvcview webcam software">
		        <label>guvcview</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qguvcview"></input>
				<action>/usr/local/quickpet_precise/guvcview &</action>
			</button>
			</vbox>
			<vbox>
		     <button tooltip-text="install gimp">
		        <label>gimp</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qgimp"></input>
				<action>/usr/local/quickpet_precise/gimp &</action>
			</button>
			<button tooltip-text="install mypaint">
		        <label>mypaint</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qmypaint"></input>
				<action>/usr/local/quickpet_precice/mypaint &</action>
			</button>
			<button tooltip-text="install blender">
		        <label>blender</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qblender"></input>
				<action>/usr/local/quickpet_precise/blender &</action>
			</button>
			<button tooltip-text="flame fractal generator (requires JAVA)">
		        <label>jwildfire</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qjwildfire"></input>
				<action>/usr/local/quickpet_precise/jwildfire &</action>
			</button>
			<button tooltip-text="screen shot and annotation tool">
		        <label>hotshots</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qhotshots"></input>
				<action>/usr/local/quickpet_precise/hotshots &</action>
			</button>
			<button tooltip-text="install librecad">
		        <label>librcad</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qlibrecad"></input>
				<action>/usr/local/quickpet_precise/librecad &</action>
			</button>
			<frame>
			<pixmap>
			<height>100</height>
			<width>100</width>
         <input file>/usr/share/icons/qpuppylogo48.png</input>
         </pixmap>
         </frame>
			</vbox>
			<vbox>
			<button tooltip-text="excellent & challenging turn based battles">
		        <label>battle for wesnoth</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qwesnoth"></input>
				<action>/usr/local/quickpet_precise/wesnoth &</action>
			</button>
			<button tooltip-text="3D turnbased fighting with ragdoll physics">
		        <label>toribash</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qtorribash"></input>
				<action>/usr/local/quickpet_precise/toribash &</action>
			</button>
			<button tooltip-text="27 love2d games">
		        <label>love2d lua games compilation</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qlove"></input>
				<action>/usr/local/quickpet_precise/love &</action>
			</button>
			<button tooltip-text="incredibly hard reaction game">
		        <label>open hexagon</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qopenhexagon"></input>
				<action>/usr/local/quickpet_precise/openhexagon &</action>
			</button>
			<button tooltip-text="not all work on precise">
		        <label>portable linux games website</label>
		        <action>defaultbrowser http://www.portablelinuxgames.org/ &</action>
			</button>
			<button tooltip-text="install steam  (experimental)">
		        <label>steam</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qsteam"></input>
				<action>/usr/local/quickpet_precise/steam &</action>
			</button>
			</vbox>
			<vbox>
			<button tooltip-text="install openoffice">
		        <label>openoffice</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qopenoffice"></input>
				<action>/usr/local/quickpet_precise/openoffice &</action>
			</button>
			<button tooltip-text="install libreoffice">
		        <label>libreoffice</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qlibreoffice"></input>
				<action>/usr/local/quickpet_precise/libreoffice &</action>
			</button>
			<button tooltip-text="install thunderbird email">
		        <label>thunderbird</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qthunderbird"></input>
				<action>/usr/local/quickpet_precise/thunderbird &</action>
				</button>
			<button tooltip-text="install teamviewer9.sfs">
		        <label>teamviewer</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qteamviewer"></input>
				<action>/usr/local/quickpet_precise/teamviewer &</action>
			</button>
			<frame>
			<pixmap>
			<height>60</height>
			<width>60</width>
         <input file>/usr/share/icons/qwary.png</input>
         </pixmap>
         </frame>
         <button tooltip-text="install stellarium night sky viewer">
		        <label>stellarium</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qstellarium"></input>
				<action>/usr/local/quickpet_precise/stellarium &</action>
			</button>
         <button tooltip-text="run windows programs">
		        <label>wine</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qwine"></input>
				<action>/usr/local/quickpet_precise/wine &</action>
			</button>
			<button tooltip-text="install the latest virtualbox from the puppy forum">
		        <label>virtualbox</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qvirtualbox"></input>
				<action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?p=481055#481055 &</action>
			</button>
			<button tooltip-text="install the latest vmware player from the puppy forum">
		        <label>vmware</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qvmware"></input>
				<action>/usr/local/quickpet_precise/vmware &</action>
			</button>
	       </vbox>
			<vbox>
			<button tooltip-text="radkys pupmates... various system tools">
		        <label>radkys pupmates</label>
		        <height>48</height>
		        <width>48</width>
		        <input file icon="qpupmates"></input>
		        <action>defaultbrowser http://www.smokey01.com/radky/PupMates.html &</action>
			</button>
			<button tooltip-text="easily configure your firewall">
		        <label>firewall genie</label>
		        <height>48</height>
		        <width>48</width>
		        <input file icon="qfirewall"></input>
		        <action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?t=59616&sid=ce9751a5e910885337fb13e7fa3825f4 &</action>
			</button>
			<button tooltip-text="cpu temperature monitor">
		        <label>tempicontray</label>
		        <height>48</height>
		        <width>48</width>
		        <input file icon="qtemp"></input>
		       <action>defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?t=74702 &</action>
			</button>
			<button tooltip-text="conky system monitor">
		        <label>conky</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qconky"></input>
				<action>/usr/local/quickpet_precise/conky &</action>
			</button>
			<button tooltip-text="install bleachbit system cleaner">
		        <label>bleachbit</label>
		        <height>48</height>
		        <width>48</width>
				<input file icon="qbleachbit"></input>
				<action>/usr/local/quickpet_precise/bleachbit &</action>
			</button>
			<frame>
			<pixmap>
			<height>50</height>
			<width>50</width>
         <input file>/usr/share/icons/qpupold.png</input>
         </pixmap>
         </frame>
			<button tooltip-text="install devx developer package (contains gcc compiler)">
		        <label>devx</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qsfs"></input>
		        <action>defaultbrowser http://ftp.nluug.nl/ibiblio/distributions/puppylinux/puppy-tahr/iso/tahrpup-5.8.3.rc1/ &</action>
			</button>
			<button tooltip-text="install kernel sources ">
		        <label>kernel src</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qkernel"></input>
		        <action>sfsget &</action>
			</button>
         </vbox>
         <vbox>
         <text><label>a new tab for desktop environments and window managers</label></text>
			<button tooltip-text="lxde desktop environment">
		        <label>lxde desktop environment</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>
			<text><label>the compiz pet below is expermental and may</label></text>
			<text><label>not work on some setups</label></text>
			<button tooltip-text="install compiz and emerald window manager ..requires reboot">
		        <label>compiz & emerald</label>
		        <height>32</height>
		        <width>32</width>
		        <input file icon="qemerald"></input>
				<action>/usr/local/quickpet_precise/compiz &</action>
			</button>
			</vbox>
			<vbox>
			<button tooltip-text="nvidia driver installer">
		        <label>get-nvidia</label>
		        <input file icon="qnvidia-settings"></input>
				<action>/usr/local/quickpet_precise/getnvidia &</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
