echo "yesno box:"
kdialog --title "This is a yesno box" --yesno "Choose: yes or no"
if [ $? = 0 ]; then
  echo " your choice was: yes"
else
  echo " your choice was: no"
fi

echo "continue or cancel warning box:"
kdialog --title "This is a warningcontinuecancel box" --warningcontinuecancel "Choose: continue or cancel"
if [ $? = 0 ]; then
  echo " your choice was: continue"
else
  echo " your choice was: cancel"
fi

echo "message box:"
kdialog --title "This is a message" --msgbox "Well, this is it:\nthe message"

echo "input box:"
kdialog --title "This is a input box" --inputbox "What is your name" "Joe User"
if [ $? = 0 ]; then
  echo " you accepted"
else
  echo " you did not accept"
fi

echo "text box:"
kdialog --title "This is a text box" --textbox widgets.h 400 300

echo "menu:"
kdialog --title "This is a menu" --menu "Choose one of these" a English b German c French d Spanish

echo "checklist:"
kdialog --title "This is a checklist" --checklist "Choose some of these" a English on  b German off  c French off d Spanish on

echo "radiolist:"
kdialog --title "This is a radiolist" --radiolist "Choose one of these" a English off b German off c French on d Spanish off

echo "combobox:"
kdialog --title "This is a combobox" --combobox "Pick your favorite ice-cream flavor:" "Vanilla" "Chocolate" "Strawberry" "Fudge"
