OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [gdbtcl/] [managedwin.ith] - Blame information for rev 578

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Managed window class definition for GDBtk.
2
# Copyright 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
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
 
29
    proc find {win}
30
    proc open {class args}
31
    proc open_dlg {class args}
32
    proc init {}
33
    proc restart {}
34
    proc startup {}
35
    proc shutdown {}
36
  }
37
 
38
  protected {
39
    # The Tk's toplevel window for this ManagedWin
40
    variable _top
41
 
42
    # Variable which holds the geometry of this window
43
    variable _geometry {}
44
 
45
    # this is the counter of TopLevelWins open
46
    # when it hits 0, exit.
47
    common numTopWins 0
48
 
49
    common _screenwidth
50
    common _screenheight
51
 
52
    method _freeze_me {}
53
    method _thaw_me {}
54
 
55
    proc dont_remember_size {} { return 0 }
56
  }
57
 
58
  private {
59
    proc _create {class args}
60
    proc _open {class args}
61
    proc _make_icon_window {name {file "gdbtk_icon"}}
62
  }
63
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.