#  Copyright (C) 1991, 1992, 1993  1994 Free Software Association of Germany
# 
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the DFSL or the GNU General Public License as 
#  published by the Free Software Association of Germany.
# 
#  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
#  DFSL or the GNU General Public License for more details.
# 
#  You should have received a copy of the DFSL or the GNU General 
#  Public License along with this program; if not, write to the 
#  Free Software Association, c/o Michaela Merz, Heimatring 19,
#  6000 Frankfurt/Main 80, Germany. Or write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
# 
# 
# 
#   gflexrc is part of GREAT 
#   Written by Ruediger <styx@leda.fsag.de> 
#                  and 
#   Michaela Merz <misch@elara.fsag.de 
# 
################################################################### 
	

DEFAULT
{
	#sound $GREAT_SOUND_DIR/duck.au 
	# drop_action "$GREAT_BIN_DIR/xgfile $X"
	drop_action "$GREAT_EDITOR $X"
}


__dummy
{
	alias "{__commands text*}{*script__}"
	multidrop  "{x}{Edit}{$GREAT_BIN_DIR/textedit -textfile $0 }"
	multidrop  "{x}{Execute}{# $0 }"
        multidrop  "{x}{Execute in Xterm}{mxterm -e $0 }"
}

__Linux/i386*
{
	multidrop  "{x}{Execute}{$0 }"
        multidrop  "{x}{Execute in Xterm}{mxterm -e $0 }"
}

__cpio*
{
	multidrop  "{edit.xpm}{Extract}{#cpio -iv < $0 }"
        multidrop  "{edit.xpm}{Display}{#cpio -ivt < $0 | gshow -pipe }"
        multidrop  "{edit.xpm}{Compress}{compress $0 }"
}

*.tar
{
	alias	{__TAR*}{__POSIXTAR*} 
	multidrop  "{edit.xpm}{Extract}{#cd [?TargetDir] ; tar xvof $0 }"
	multidrop  "{edit.xpm}{Display}{#tar tvf $0 | gshow -pipe }"
	multidrop  "{edit.xpm}{Compress}{compress $0 }"
}

*.Z
{
	alias "{__COMPRESSED__}"
	multidrop "{edit.xpm}{Uncompress}{uncompress $0 }"
	multidrop "{edit.xpm}{View}{#uncompress < $0 | gshow -pipe }"
}

*.z
{
	alias "{__gzip compressed*}"
	multidrop "{edit.xpm}{Unzip}{gzip -d $0 }"
	multidrop "{edit.xpm}{View}{#gzip -d < $0 | gshow -pipe }"
	multidrop "{edit.xpm}{View Tar}{#gzip -d < $0 | tar tvf - | gshow -pipe }"
}
*.c
{
	alias {*.C}{*.h}
	pixmap edit.xpm
	name Textedit
	push_action $XEDITOR
	drop_action "mxterm -e vi $0"
	multidrop "{edit.xpm}{Make}{cc -c [?CompilerOptions:] $0 }"
#	multidrop "{edit.xpm}{Edit}{mxterm -e vi $0 }"
	multidrop "{edit.xpm}{Edit}{asedit $0 }"
}

*.txt
{
	alias {*.doc}
	pixmap edit.xpm
	name Textedit
	push_action $XEDITOR
	drop_action "$GREAT_BIN_DIR/textedit -textfile $0"
}

*.gif
{
	alias {*.gif}{*.tiff}{*.jpg}
	pixmap xman.xpm
	name "Manual"
	push_action "xman -notopbox"
	multidrop "{x}{View}{xv $0 }"
	multidrop "{p}{Edit}{xpaint $0 }"
}


*.xpm
{
	push_action "xman -notopbox"
	drop_action "pixmap -f $0"
}

*.xbm
{
	drop_action "bitmap $0"
}

gflex.dir
{
	drop_action "gfm -cwd $X"
}

__PostScript*
{
	multidrop "{p}{Edit}{$GREAT_BIN_DIR/textedit -textfile $0 }"
	multidrop "{i}{Display}{ghostview $0 }"
#	drop_action "ghostview $0 "
}

*.html
{
	alias "{__HTML*}"
	multidrop "{xmosaic.xpm}{View}{Mosaic file:$0 }"
	multidrop "{edit.xpm}{Edit}{$GREAT_BIN_DIR/textedit -textfile $0 }"
}

*.au
{
	alias "{*.voc}{*.voc_14}{__Sun Audio*}{__Creative Sound*}"
	sound groot.none
	drop_action "gsound -stop $X"
#	multidrop "{x}{SendTo}{#cat $0 | gsdata [?SendTo] au }"
}

__TEXT__
{
	alias "{__ascii text*}{*TEXT__}"
	drop_action "$GREAT_BIN_DIR/asedit $0"
}
