####################################################
# general preference settings

	# the name of the camera device
set prefs(device) /dev/photopc
	# the baud rate
set prefs(baud) 115200
	# the location of the photopc app
set prefs(photopc) photopc
	# turn on debugging output
set prefs(dbg) 0
	# temporary directory for downloads
set prefs(tmpDir) /usr/tmp/phototk[pid]
	# the name of a proc that can convert a jpg to a ppm
# set prefs(convert) ImageMagickConvert
# set prefs(convert) DjpegConvert

####################################################
# An example convert proc

# Edit the '*Convert' procs below to supply a command line 
# utility that can convert a jpg to a ppm.  tk widgets 
# can't display jpgs  but the camera knocks out jpgs.

# this mirrors the internal default
proc DjpegConvert { from to } {
#	puts "converting $from to $to with djpeg"
	exec djpeg -fast -pnm -outfile $to $from 
}

# this is the old default
proc ImageMagickConvert { from to } {
#	puts "converting $from to $to with ImageMagick"
	exec convert $from $to
}

####################################################
# Vibe settings

# These settings control the look and feel of the
# app.  Beware, there are a few things that will
# look funky if these values change (mostly just
# the images that were edited to blend with their
# widget's background color and changing the font
# size will change some of the widget layouts).

set vibe(defFont) -adobe-helvetica-medium-o-normal--10-100-75-75-p-57-iso8859-1
set vibe(borderWidth) 10
set vibe(defBg) #000000
set vibe(defFg) #9999cc
set vibe(quitBg) #440000
set vibe(editBg) #220022
set vibe(liveBg) #004400
set vibe(prefsBg) #004444
set vibe(aboutBg) #000044
set vibe(quitBg) #440000

