home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
crsysstgde.tcl
< prev
next >
Wrap
Text File
|
1997-03-14
|
2KB
|
74 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)crsysstgde.tcl /main/titanic/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)crsysstgde.tcl /main/titanic/1 14 Mar 1997 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]
lappend list {System Name} [$this systemName]
lappend list {Diagram Qualifier} [$this fileQualifier]
lappend list {Diagram Name} [$this fileName]
lappend list {Diagram Type} [$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