2002-07-17 14:21:33 +00:00
echo "yesno box:"
2004-08-28 12:21:35 +00:00
./kdialog --geometry 400x300+100+50 --title "This is a yesno box" --yesno "Choose: yes or no"
2002-07-17 14:21:33 +00:00
if [ $? = 0 ]; then
echo " your choice was: yes"
else
echo " your choice was: no"
fi
2003-08-18 11:46:23 +00:00
echo "continue or cancel warning box:"
2004-08-28 12:21:35 +00:00
./kdialog --geometry 200x300+100-50 --title "This is a warningcontinuecancel box" --warningcontinuecancel "Choose: continue or cancel"
2003-08-18 11:46:23 +00:00
if [ $? = 0 ]; then
echo " your choice was: continue"
else
echo " your choice was: cancel"
fi
2002-07-17 14:21:33 +00:00
echo "message box:"
2004-08-28 12:18:54 +00:00
./kdialog --geometry 300x400-100-50 --title "This is a message" --msgbox "Well, this is it:\nthe message"
2002-07-17 14:21:33 +00:00
echo "input box:"
2004-04-26 12:32:44 +00:00
./kdialog --title "This is a input box" --inputbox "What is your name" "Joe User"
2002-07-17 14:21:33 +00:00
if [ $? = 0 ]; then
echo " you accepted"
else
echo " you did not accept"
fi
2004-08-28 12:18:54 +00:00
echo "input box, with geometry:"
./kdialog --geometry 300x400-100-50 --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
2002-07-17 14:21:33 +00:00
echo "text box:"
2004-08-28 12:18:54 +00:00
./kdialog --geometry 300x400-100-50 --miniicon "about_kde" --title "This is a text box" --textbox widgets.h 400 300
2002-07-17 14:21:33 +00:00
echo "menu:"
2004-08-28 12:18:54 +00:00
./kdialog --miniicon "about_kde" --geometry 300x400-100-50 --title "This is a menu" --default "French" --menu "Choose one of these" a English b German c French d Spanish
2002-07-17 14:21:33 +00:00
echo "checklist:"
2004-08-28 12:18:54 +00:00
./kdialog --geometry 400x300+100+50 --miniicon "about_kde" --title "This is a checklist" --checklist "Choose some of these" a English on b German off c French off d Spanish on
2002-07-17 14:21:33 +00:00
echo "radiolist:"
2004-08-28 12:18:54 +00:00
./kdialog --geometry 400x300+100+50 --miniicon "about_kde" --title "This is a radiolist" --radiolist "Choose one of these" a English off b German off c French on d Spanish off
2003-08-31 01:12:27 +00:00
echo "combobox:"
2004-08-28 12:18:54 +00:00
./kdialog --geometry 400x300+100+50 --miniicon "about_kde" --default "Chocolate" --title "This is a combobox" --combobox "Pick your favorite ice-cream flavor:" "Vanilla" "Chocolate" "Strawberry" "Fudge"
2004-04-26 12:32:44 +00:00
echo "passivepopup:"
2004-08-28 12:18:54 +00:00
./kdialog --geometry 400x300+100+50 --title "This is a passive popup" --passivepopup "It will disappear in about 10 seconds" 10
2004-04-30 11:16:17 +00:00
echo "password:"
2004-08-28 12:18:54 +00:00
./kdialog --title "This is a password dialog" --geometry 400x300+100+50 --icon "desktop" --miniicon "about_kde" --password "Enter the password:"
2004-04-30 11:16:17 +00:00