blob: 7a024c67a38a7351658dcb58e7596c5243d6218b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Managed window class definition for GDBtk.
# Copyright 1998, 1999, 2000, 2001 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License (GPL) 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.
class ManagedWin {
inherit itk::Widget
public {
method constructor {args}
method destructor {}
method reconfig {} {}
method destroy_toplevel {}
method quit_if_last {} {return 1}
method pickle {}
method reveal {}
method window_name {wname {iname ""}}
proc find {win}
proc open {class args}
proc open_dlg {class args}
proc init {}
proc restart {}
proc startup {}
proc shutdown {}
}
protected {
# The Tk's toplevel window for this ManagedWin
variable _top
# Variable which holds the geometry of this window
variable _geometry {}
# this is the counter of TopLevelWins open
# when it hits 0, exit.
common numTopWins 0
common _screenwidth
common _screenheight
method _freeze_me {}
method _thaw_me {}
# Should this window be reopened when we startup?
method _ignore_on_save {} { return 0 }
# Should this window's size be remembered?
proc dont_remember_size {} { return 0 }
}
private {
proc _create {class args}
proc _open {class args}
proc _make_icon_window {name {file "gdbtk_icon"}}
}
}
|