1 # Managed window class definition for GDBtk.
2 # Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License (GPL) as published by
6 # the Free Software Foundation; either version 2 of the License, or (at
7 # your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
15 itcl::class ManagedWin {
19 method constructor {args}
23 method destroy_toplevel {}
24 method quit_if_last {} {return 1}
27 method window_name {wname {iname ""}}
28 proc window_instance {ins}
31 proc open {class args}
32 proc open_dlg {class args}
38 common win_instance ""
42 # The Tk's toplevel window for this ManagedWin
45 # Variable which holds the geometry of this window
48 # this is the counter of TopLevelWins open
49 # when it hits 0, exit.
58 # Should this window be reopened when we startup?
59 method _ignore_on_save {} { return 0 }
61 # Should this window's size be remembered?
62 proc dont_remember_size {} { return 0 }
66 proc _create {class args}
67 proc _open {class args}
68 proc _make_icon_window {name {file "gdbtk_icon"}}