home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
crsysstgde.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
78 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)crsysstgde.tcl 1.3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)crsysstgde.tcl 1.3 24 Jan 1996 Copyright 1994 Westmount Technology
# Start user added include file section
require "crsysdefdi.tcl"
# End user added include file section
require "crfilestgd.tcl"
Class CrSysStgDef : {CrFileStgDef} {
constructor
method destructor
method infoList
method writeObject
method open
attribute systemName
}
constructor CrSysStgDef {class this name specification} {
set this [CrFileStgDef::constructor $class $this $name $specification]
# Start constructor user section
$this smallIcon folder_16
$this largeIcon folder_32
# End constructor user section
return $this
}
method CrSysStgDef::destructor {this} {
# Start destructor user section
# End destructor user section
$this CrFileStgDef::destructor
}
method CrSysStgDef::infoList {this} {
set list [$this OpenDefObject::infoList]
set list [concat $list \"System Name\"]
set list [concat $list \"[$this systemName]\"]
set list [concat $list \"Diagram Qualifier\"]
set list [concat $list \"[$this fileQualifier]\"]
set list [concat $list \"Diagram Name\"]
set list [concat $list \"[$this fileName]\"]
set list [concat $list \"Diagram Type\"]
set list [concat $list \"[$this fileType]\"]
return $list
}
method CrSysStgDef::writeObject {this fid} {
set formatString "%-25s | %s | %-10s | %-10s | %-10s | %s"
puts $fid [format $formatString [$this name] [$this type] \
[$this systemName] [$this fileQualifier] \
[$this fileName] [$this fileType]]
}
method CrSysStgDef::open {this} {
if {![$this editable]} {
return
}
.main busy TRUE
set definer [[.main editorArea] crSysDefiner]
if {[catch {$definer load $this}]} {
set definer [CrSysDefDialog new .main.crSysDefiner]
[.main editorArea] crSysDefiner $definer
$definer load $this
}
.main busy FALSE
}
# Do not delete this line -- regeneration end marker