home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
cbsubclass.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
84 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)cbsubclass.tcl 1.4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)cbsubclass.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 CBSubClassTextList : {CBClassInfoTextList} {
constructor
method destructor
method updateView
method collectSubClasses
method browser
attribute _browser
}
constructor CBSubClassTextList {class this name} {
set this [CBClassInfoTextList::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method CBSubClassTextList::destructor {this} {
set ref [$this _browser]
if {$ref != ""} {
$ref _subClassTL ""
}
# Start destructor user section
# End destructor user section
$this CBClassInfoTextList::destructor
}
method CBSubClassTextList::updateView {this currentClass} {
$this removeTextListEntries
$this removeEntries
set inViewList [List new]
$this collectSubClasses $currentClass $inViewList
$this sortTextListEntries
$this fillEntries
$this deselectEntries
}
method CBSubClassTextList::collectSubClasses {this aClass inViewList} {
foreach subClass [$aClass getSubClasses] {
if {[$subClass name] == ""} {
continue
}
if {[lsearch [$inViewList contents] $subClass] != -1} {
continue
}
$this addTextListEntry $subClass
$inViewList insert $subClass
}
}
# Do not delete this line -- regeneration end marker
method CBSubClassTextList::browser {this args} {
if {$args == ""} {
return [$this _browser]
}
set ref [$this _browser]
if {$ref != ""} {
$ref _subClassTL ""
}
set obj [lindex $args 0]
if {$obj != ""} {
$obj _subClassTL $this
}
$this _browser $obj
}