# tkxpilots Version 2.0pl0 - funky interface to xpilots
# Copyright (C) 1993-1994 Richard Oak.
#
#    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., 675 Mass Ave, Cambridge, MA 02139, USA.

proc show_warranty {{w .warranty}} {
        catch {destroy $w}
        toplevel $w
        wm title $w "Warranty"
        wm iconname $w "Warranty"

        frame $w.msg
        label $w.msg.text1 -text "(c) 1993-1994 Richard Oak" -font -*-lucida-bold-i-*-*-*-140-*-*-*-*-*-* -padx 100
        message $w.msg.text2 -text "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." -font -*-lucida-medium-r-*-*-*-120-*-*-*-*-*-* -width 400
        message $w.msg.text3 -text "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., 675 Mass Ave, Cambridge, MA 02139, USA." -font -*-lucida-medium-r-*-*-*-120-*-*-*-*-*-* -width 400
        pack $w.msg.text1 $w.msg.text2 $w.msg.text3 -side top -fill both -expand yes

        button $w.ok -text OK -command "destroy $w"

pack $w.msg -side top -expand yes -anchor center
pack $w.ok -side bottom -fill both
}
