home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
openlocobj.tcl
< prev
next >
Wrap
Text File
|
1997-03-14
|
3KB
|
99 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)openlocobj.tcl /main/titanic/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)openlocobj.tcl /main/titanic/1 14 Mar 1997 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 [list [$this type] \
$level \
[$this itemType] \
[$this phase] \
[$this fileType] \
[$this componentType] \
[$this labelType] \
[$this condition]]
}
method OpenLocObject::infoList {this} {
return [list 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