home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
openlocobj.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
3KB
|
99 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)openlocobj.tcl 1.4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)openlocobj.tcl 1.4 15 Feb 1996 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
require "openlocdia.tcl"
# End user added include file section
require "locobject.tcl"
Class OpenLocObject : {LocObject} {
constructor
method destructor
method updateView
method infoList
method writeObject
method open
attribute itemType
}
constructor OpenLocObject {class this name specification} {
set this [LocObject::constructor $class $this $name $specification]
# Start constructor user section
$this conversionSet "OPENSTGLOC id"
$this smallIcon folder_16
$this largeIcon folder_32
$this id $this
# End constructor user section
return $this
}
method OpenLocObject::destructor {this} {
# Start destructor user section
# End destructor user section
$this LocObject::destructor
}
method OpenLocObject::updateView {this} {
if [$this editable] {
set level "[$this specLevel] *"
} else {
set level [$this specLevel]
}
$this label [$this name]
$this details "\"[$this type]\"
\"$level\"
\"[$this itemType]\"
\"[$this phase]\"
\"[$this fileType]\"
\"[$this componentType]\"
\"[$this labelType]\"
\"[$this condition]\""
}
method OpenLocObject::infoList {this} {
return "Name \{[$this name]\} \
Type [$this type] \
{Specification Level} [$this specLevel] \
{Item Type} \{[$this itemType]\} \
Phase \{[$this phase]\} \
{Diagram Type} \{[$this fileType]\} \
{Component Type} \{[$this componentType]\} \
{Label Type} \{[$this labelType]\} \
Condition \{[$this condition]\}"
}
method OpenLocObject::writeObject {this fid} {
set formatString "%-25s | %-5s | %-12s | %-3s | %-15s | %-10s | %s"
puts $fid [format $formatString [$this name] \
[$this itemType] [$this phase] [$this fileType] \
[$this componentType] [$this labelType] [$this condition]]
}
method OpenLocObject::open {this} {
if {![$this editable]} {
return
}
.main busy TRUE
set definer [[.main editorArea] usageDefiner]
if {[catch {$definer load $this}]} {
set definer [OpenLocDialog new .main.usageDefiner]
[.main editorArea] usageDefiner $definer
$definer editorArea [.main editorArea]
$definer load $this
}
.main busy FALSE
}
# Do not delete this line -- regeneration end marker