# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
# 
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
# 
# ROCK Linux: rock-src/misc/output/mythtvosd/config.in
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
# 
# 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. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
# 
# Many people helped and are helping developing ROCK Linux. Please
# have a look at https://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
# 
# --- ROCK-COPYRIGHT-NOTE-END ---


bool 'MythTV On-Screen-Display Output Plugin' ROCKCFG_OUTPUT_MYTHTVOSD 0

if [ "$ROCKCFG_OUTPUT_MYTHTVOSD" = 1 ] ; then
	menu_begin OUTPUT_MYTHTVOSD_MENU 'MythTV OSD Output Configuration'
	block_begin 1

		comment ' '
		comment 'Please use the Help menu, it should answer all your questions.'
		comment ' '
		comment 'For this to function, you need to merge misc/output/mythtvosd/osd.xml with'
		comment 'your osd.xml in <mythtvprefix>/share/mythtv/themes/<yourosdtheme>/osd.xml'
		comment ' '

		text 'Where is you "mythtvosd" binary?' \
			ROCKCFG_OUTPUT_MYTHTVOSD_BIN "`which mythtvosd || echo '/usr/bin/mythtvosd'`"

		comment ' '
		comment '- What would you like to be informed about?'
		block_begin 2

		bool 'Generic header at section start' \
			ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_HEADER 0
		bool 'Generic status messages' \
			ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_STATUS 0
		bool 'Generic error messages' \
			ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_ERROR 1
		comment ' '

		comment 'All texts will have the hostname prepended'
		comment ' '

		bool 'Package build refusals' \
			ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_PKG_DENY 0
		[ $ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_PKG_DENY -eq 1 ] &&
			text 'Text to display when package is denied' \
				ROCKCFG_OUTPUT_MYTHTVOSD_TXT_PKG_DENY \
				'-[$1]-$2-\> rejected ($3)'
		comment ' '

		bool 'Package build starting messages' \
			ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_PKG_START 1
		[ $ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_PKG_START -eq 1 ] &&
			text 'Text to display when package build starts' \
				ROCKCFG_OUTPUT_MYTHTVOSD_TXT_PKG_START \
				'-[$1]-$2/$3-\> starting.'
		comment ' '

		bool 'Package build finished messages' \
			ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_PKG_FINISH 1
		[ $ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_PKG_FINISH -eq 1 ] &&
			text 'Text to display when package build is finished' \
				ROCKCFG_OUTPUT_MYTHTVOSD_TXT_PKG_FINISH \
				'-[$1]-$2/$3-\> finished succesfully.'
		comment ' '

		bool 'Package build aborted messages' \
			ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_PKG_ABORT 1
		[ $ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_PKG_ABORT -eq 1 ] &&
			text 'Text to display when package build has been aborted' \
				ROCKCFG_OUTPUT_MYTHTVOSD_TXT_PKG_ABORT \
				'-[$1]-$2/$3-\> aborted!'
		comment ' '

		bool 'Package build errorquote messages' \
			ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_ERRORQUOTE 0
		[ $ROCKCFG_OUTPUT_MYTHTVOSD_ENABLE_ERRORQUOTE -eq 1 ] &&
			text 'Text to display when the logfile would be quoted' \
				ROCKCFG_OUTPUT_MYTHTVOSD_TXT_ERRORQUOTE \
				'An Error occured. Please have a look at the logfile!'
		block_end

	block_end
	menu_end
fi
