#! /bin/bash
#
Encoding=UTF-8
#############################################################################
#																			#
# Author D.M-Wilhelm aka Leiche <kellerleicheorig@aol.com> at Dec 24 2013	#
# Website <kellerleiche.bplaced.net> 										#
# Designed for PCLinuxOS'14 												#
# Release 2013-2017    														#
# License GPL2																#
#																			#
#############################################################################
				
# i18n - Internationalization - Internationalisierung
export TEXTDOMAIN=rpmbuild_gui
export TEXTDOMAINDIR="/usr/share/locale"

TITLE=$"Log FLV-Player and Converter"
dirname="$(dirname "$(readlink -e "$0")")"
VERSION=" `cat "$dirname"/Version`"
TMP_DIR=$HOME/.config/pclos-flv-player

EDIT_DIALOG='
<window window_position="1" title="'$TITLE$VERSION'" resizable="true" icon-name="info" skip_taskbar_hint="true">
	<vbox>
		<vbox wrap-mode="1" scrollable="true" width="600" height="200">
			<edit wrap-mode="2">
				<variable>EDIT</variable>
				<input file>'$TMP_DIR'/log</input>
			</edit>
		</vbox>	
		<hbox>
			##<button>
			##	<label>'$"Save"'</label>
			##	<variable>EDIT_DIALOG</variable>
			##	<action>mv '$CONF'/notice '$CONF'/notice.bak ; echo -e "$EDIT\n" | sed -e '/^\s*$/d' > '$CONF'/notice</action>
			##	<action type="refresh">EDIT</action>
			##</button>
			<button>
				<label>'$"Exit"'</label>
				<action type="exit">EDIT_DIALOG</action>
			</button>
		</hbox>
	</vbox>
</window>
'
#
export GUI="`echo "$EDIT_DIALOG" | sed -e 's/##.*//'`" 
gtkdialog -p GUI > /dev/null 2>&1

