Warning, /utilities/kdialog/tests/test is written in an unsupported language. File is not indexed.

0001 echo "yesno box:"
0002 kdialog --geometry 400x300+100+50 --title "This is a yesno box" --yesno "Choose: yes or no"
0003 if [ $? = 0 ]; then
0004   echo " your choice was: yes"
0005 else
0006   echo " your choice was: no"
0007 fi
0008 
0009 echo "continue or cancel warning box:"
0010 kdialog --geometry 200x300+100-50 --title "This is a warningcontinuecancel box" --warningcontinuecancel "Choose: continue or cancel"
0011 if [ $? = 0 ]; then
0012   echo " your choice was: continue"
0013 else
0014   echo " your choice was: cancel"
0015 fi
0016 
0017 echo "message box:"
0018 kdialog --geometry 300x400-100-50 --title "This is a message" --msgbox "Well, this is it:\nthe message"
0019 
0020 echo "input box:"
0021 kdialog --title "This is a input box" --inputbox "What is your name" "Joe User"
0022 if [ $? = 0 ]; then
0023   echo " you accepted"
0024 else
0025   echo " you did not accept"
0026 fi
0027 
0028 echo "input box, with geometry:"
0029 kdialog --geometry 300x400-100-50 --title "This is a input box" --inputbox "What is your name" "Joe User"
0030 if [ $? = 0 ]; then
0031   echo " you accepted"
0032 else
0033   echo " you did not accept"
0034 fi
0035 
0036 echo "text box:"
0037 kdialog --geometry 300x400-100-50 --icon "about-kde" --title "This is a text box" --textbox widgets.h 400 300
0038 
0039 echo "menu:"
0040 kdialog --icon "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
0041 
0042 echo "checklist:"
0043 kdialog --geometry 400x300+100+50 --icon "about-kde" --title "This is a checklist" --checklist "Choose some of these" a English on  b German off  c French off d Spanish on
0044 
0045 echo "radiolist:"
0046 kdialog --geometry 400x300+100+50 --icon "about-kde" --title "This is a radiolist" --radiolist "Choose one of these" a English off b German off c French on d Spanish off
0047 
0048 echo "combobox:"
0049 kdialog --geometry 400x300+100+50 --icon "about-kde" --default "Chocolate" --title "This is a combobox" --combobox "Pick your favorite ice-cream flavor:" "Vanilla" "Chocolate" "Strawberry" "Fudge"
0050 
0051 echo "passivepopup:"
0052 kdialog --geometry 1x1+200+350 --title "This is a passive popup" --passivepopup "It will disappear in about 10 seconds" 10
0053 
0054 echo "password:"
0055 kdialog --title "This is a password dialog" --geometry 400x300+100+50 --icon "desktop" --icon "about-kde" --password "Enter the password:"
0056 
0057 echo "Open File:"
0058 kdialog --getopenfilename . "*.cpp *.cc *.c |C and C++ Source Files"
0059 
0060 echo "Open multiple files:"
0061 kdialog --multiple --getopenfilename . "*.cpp *.cc *.c |C and C++ Source Files"
0062 
0063 echo "Open multiple files, output on separate lines:"
0064 kdialog --multiple --separate-output --getopenfilename . "*.cpp *.cc *.c |C and C++ Source Files"
0065 
0066 echo "Open URL:"
0067 kdialog --getopenurl . "*.cpp *.cc *.c |C and C++ Source Files"
0068 
0069 echo "Open multiple URLs:"
0070 kdialog --multiple --getopenurl . "*.cpp *.cc *.c |C and C++ Source Files"
0071 
0072 echo "Open multiple URLs, output on separate lines:"
0073 kdialog --multiple --separate-output --getopenurl . "*.cpp *.cc *.c |C and C++ Source Files"