File indexing completed on 2025-01-26 05:13:50
0001 #!/bin/sh 0002 # Run from command line, to open a kde help page in kfm/konqueror 0003 # Argument : The classname (case sensitive !). 0004 # Both doxygen and kdoc docs are supported. 0005 0006 # You can edit this line to set the directory holding your KDE docs, or you 0007 # can use the environment variable KDEDOCS to avoid future conflicts with this 0008 # file if the default changes. 0009 KDEDOCS=${KDEDOCS:-"$KDEDIR/share/doc/HTML/en/kdelibs-apidocs"} 0010 0011 if [ $# = 1 ]; then 0012 if [ -e "$KDEDOCS/doxygen.css" ]; then 0013 # Docs are laid out in doxygen style. 0014 if [ -f "$KDEDOCS/class$1.html" ]; then 0015 kfmclient exec "$KDEDOCS/class$1.html" 0016 elif [ -f "$KDEDOCS"/*/html/"class$1.html" ]; then 0017 kfmclient exec "$KDEDOCS"/*/html/"class$1.html" 0018 else 0019 classstring=`echo "$1" | sed -e 's/::/_1_1/'` 0020 if [ -f "$KDEDOCS/class$classstring.html" ]; then 0021 kfmclient exec "$KDEDOCS/class$classstring.html" 0022 elif [ -f "$KDEDOCS"/*/html/"class$classstring.html" ]; then 0023 kfmclient exec "$KDEDOCS"/*/html/"class$classstring.html" 0024 elif [ -f "$KDEDOCS"/class*_1_1"$1.html" ]; then 0025 kfmclient exec "$KDEDOCS"/class*_1_1"$1.html" 0026 elif [ -f "$KDEDOCS"/*/html/class*_1_1"$1.html" ]; then 0027 kfmclient exec "$KDEDOCS"/*/html/class*_1_1"$1.html" 0028 else 0029 echo "No class $1 in $KDEDOCS/*" 0030 exit 1 0031 fi 0032 fi 0033 elif [ -e "$KDEDOCS/kdecore/index.html" ]; then 0034 # Docs are laid out in kdoc style. 0035 if [ -f "$KDEDOCS"/*/"$1.html" ]; then 0036 kfmclient exec "$KDEDOCS"/*/"$1.html" 0037 else 0038 echo "No class $1 in $KDEDOCS/*" 0039 exit 1 0040 fi 0041 else 0042 echo "$KDEDOCS does not appear to contain your KDE docs." 0043 exit 1 0044 fi 0045 else 0046 echo "Usage : $0 <classname>" 0047 exit 1 0048 fi