home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
cbsupercla.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
87 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)cbsupercla.tcl 1.4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)cbsupercla.tcl 1.4 19 Oct 1995 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
require "cbclassinf.tcl"
Class CBSuperClassTextList : {CBClassInfoTextList} {
constructor
method destructor
method updateView
method collectSuperClasses
method browser
attribute _browser
}
constructor CBSuperClassTextList {class this name} {
set this [CBClassInfoTextList::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method CBSuperClassTextList::destructor {this} {
set ref [$this _browser]
if {$ref != ""} {
$ref _superClassTL ""
}
# Start destructor user section
# End destructor user section
$this CBClassInfoTextList::destructor
}
method CBSuperClassTextList::updateView {this currentClass} {
$this removeTextListEntries
$this removeEntries
set inViewList [List new]
$this collectSuperClasses $currentClass $inViewList
$this sortTextListEntries
$this fillEntries
$this deselectEntries
}
method CBSuperClassTextList::collectSuperClasses {this aClass inViewList} {
foreach superClass [$aClass getSuperClasses] {
if {[$superClass name] == ""} {
continue
}
if {[lsearch [$inViewList contents] $superClass] != -1} {
continue
}
$this addTextListEntry $superClass
$inViewList insert $superClass
if {[[$this browser] isInFlatViewMode]} {
$this collectSuperClasses $superClass $inViewList
}
}
}
# Do not delete this line -- regeneration end marker
method CBSuperClassTextList::browser {this args} {
if {$args == ""} {
return [$this _browser]
}
set ref [$this _browser]
if {$ref != ""} {
$ref _superClassTL ""
}
set obj [lindex $args 0]
if {$obj != ""} {
$obj _superClassTL $this
}
$this _browser $obj
}