GDB (API)
/home/stan/gdb/src/gdb/gdbtk/library/about.tcl
Go to the documentation of this file.
00001 # About window for GDBtk.
00002 # Copyright (C) 1997, 1998, 1999, 2000, 2001 Red Hat, Inc.
00003 #
00004 # This program is free software; you can redistribute it and/or modify it
00005 # under the terms of the GNU General Public License (GPL) as published by
00006 # the Free Software Foundation; either version 2 of the License, or (at
00007 # your option) any later version.
00008 #
00009 # This program is distributed in the hope that it will be useful,
00010 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 # GNU General Public License for more details.
00013 
00014 
00015 # ----------------------------------------------------------------------
00016 # Implements About window
00017 # ----------------------------------------------------------------------
00018 
00019 itcl::class About {
00020   inherit ManagedWin ModalDialog
00021   constructor {args} {
00022     global gdb_ImageDir
00023     set f [frame $itk_interior.f]
00024     label $f.image1 -bg #ee0000 -image \
00025       [image create photo -file [file join $gdb_ImageDir insight.gif]]
00026     message $f.m -bg #ee0000 -fg white -text [gdb_cmd {show version}] \
00027       -aspect 500 -relief flat
00028     pack $f.image1 $f.m $itk_interior.f -fill both -expand yes
00029     pack  $itk_interior
00030     bind $f.image1 <1> [code $this unpost]
00031     bind $f.m <1> [code $this unpost]
00032     window_name "About Red Hat Insight"
00033   }
00034 
00035   # Don't quit if this is the last window.  The only way that this can
00036   # happen is if we are the splash screen. 
00037 
00038   method quit_if_last {} { 
00039     return 0
00040   }
00041 
00042 }
00043 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines