home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
cbattrfilt.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
3KB
|
83 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)cbattrfilt.tcl 1.7
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)cbattrfilt.tcl 1.7 04 Apr 1996 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
require "cbfilter.tcl"
Class CBAttrFilter : {CBFilter} {
constructor
method destructor
}
constructor CBAttrFilter {class this name propKnowledgeDB} {
set this [CBFilter::constructor $class $this $name $propKnowledgeDB]
# Start constructor user section
PropLocation new .propLocation \
-phaseType [[[[ClientContext::global] currentPhase] phase] type] \
-diagramType $CAD_TYPE \
-componentType $CDM_ATTR
# Component (NameType label) properties
.propLocation labelType $LT_NAME_TYPE
.propLocation containerKind Component
.propLocation containerType $CDM_ATTR
set propHolder {$feature getMatrixComponent}
$this addFilterElements [$propKnowledgeDB \
definitions .propLocation] $propHolder
# Name item properties
.propLocation containerKind Item
.propLocation containerType $IT_DATA
set propHolder {set wrk [$feature getNameWorkItem]; \
if {[$wrk isNil]} {set propObject $wrk} \
else {set propObject [$wrk properties]}}
$this addFilterElements [$propKnowledgeDB \
definitions .propLocation] $propHolder
# Type item properties
.propLocation containerKind Item
.propLocation containerType $IT_CLASS
set propHolder {set wrk [$feature getTypeWorkItem]; \
if {[$wrk isNil]} {set propObject $wrk} \
else {set propObject [$wrk properties]}}
$this addFilterElements [$propKnowledgeDB \
definitions .propLocation] $propHolder
# Implicit properties
$this addImplicitPropFilterElement $COMP_KEY "Key" \
"CheckButton" "-state 0"
$this addImplicitPropFilterElement $COMP_CLASS_ATTR "Is Class Feature" \
"CheckButton" "-state 0"
$this addImplicitPropFilterElement $COMP_INITIAL_VALUE "Initial Value" \
"SingleLineText" "-columnCount 30"
$this addImplicitPropFilterElement $COMP_DERIVED_ATTR "Is Derived" \
"CheckButton" "-state 0"
.propLocation delete
$this loadFromString [m4_var get M4_attribute_filter]
$this keepChanges
# End constructor user section
return $this
}
method CBAttrFilter::destructor {this} {
# Start destructor user section
# End destructor user section
$this CBFilter::destructor
}
# Do not delete this line -- regeneration end marker