OSDN Git Service

* dll_init.cc (dll_global_dtors): Add an additional test to avoid walking the
[pf3gnuchains/pf3gnuchains4x.git] / gdb / gdbtk / library / managedwin.ith
1 # Managed window class definition for GDBtk.
2 # Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
3 #
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.
8 #
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.
13
14
15 itcl::class ManagedWin {
16   inherit itk::Widget
17   
18   public {
19     method constructor {args}
20     method destructor {}
21
22     method reconfig {} {}
23     method destroy_toplevel {}
24     method quit_if_last {} {return 1}
25     method pickle {}
26     method reveal {}
27     method window_name {wname {iname ""}}
28     proc window_instance {ins}
29
30     proc find {win}
31     proc open {class args}
32     proc open_dlg {class args}
33     proc init {}
34     proc restart {}
35     proc startup {}
36     proc shutdown {}
37
38     common win_instance ""
39   }
40
41   protected {
42     # The Tk's toplevel window for this ManagedWin
43     variable _top
44
45     # Variable which holds the geometry of this window
46     variable _geometry {}
47
48     # this is the counter of TopLevelWins open
49     # when it hits 0, exit.
50     common numTopWins 0
51
52     common _screenwidth
53     common _screenheight
54
55     method _freeze_me {}
56     method _thaw_me {}
57
58     # Should this window be reopened when we startup?
59     method _ignore_on_save {} { return 0 }
60
61     # Should this window's size be remembered?
62     proc dont_remember_size {} { return 0 }
63   }
64
65   private {
66     proc _create {class args}
67     proc _open {class args}
68     proc _make_icon_window {name {file "gdbtk_icon"}}
69     variable _wname {}
70     variable _iname {}
71   }
72 }