#
# Copyright (C) by Stefano Falsetto
# e-mail contact ....: mailto:stefko5@inwind.it
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#
# Config plugin (phase 4) for cdlabelgen

configure_cdlabelgen() {
  begin_check "cdlabelgen"
  find_prg cdlabelgen
  CDLABELGEN=$FOUND_PRG
  if [ ! -z "$CDLABELGEN" ]; then
    DESCRIPTION="Create a CD cover from an item list using cdlabelgen"
    WHERE=END
    PARAMETERS="--cdlabelgen|--cat|--subcat|--psout|--print"
    LABEL_PRINT=
    LABEL_PRINTCMD="lpr"
    DEF_LABEL_PSOUT="CD_cover.ps"
    DEF_LABEL_SUBCAT="Various songs"
    DEF_LABEL_CAT="Audio collection"
    DEF_LABEL_FILENAME="CoverTitles.txt"
  else
    missing cdlabelgen "http://www.red-bean.com/~bwf/software/cdlabelgen/"
  fi
}

cat_variables_cdlabelgen () {
cat <<EOF
# Complete path for cdlabelgen
CDLABELGEN="$CDLABELGEN"

# If set print cover
LABEL_PRINT="$LABEL_PRINT"

# Print command 
LABEL_PRINTCMD="$LABEL_PRINTCMD"

# Default output filename
DEF_LABEL_PSOUT="$DEF_LABEL_PSOUT"

# Default subcategory
DEF_LABEL_SUBCAT="$DEF_LABEL_SUBCAT"

# Default category
DEF_LABEL_CAT="$DEF_LABEL_CAT"

# Default items filename
DEF_LABEL_FILENAME="$DEF_LABEL_FILENAME"

EOF
}

