home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)crfilestgd.tcl 1.3
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)crfilestgd.tcl 1.3 24 Jan 1996 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- require "crfiledefd.tcl"
- # End user added include file section
-
- require "opendefobj.tcl"
-
- Class CrFileStgDef : {OpenDefObject} {
- constructor
- method destructor
- method infoList
- method writeObject
- method open
- attribute fileQualifier
- attribute fileName
- attribute fileType
- }
-
- constructor CrFileStgDef {class this name specification} {
- set this [OpenDefObject::constructor $class $this $name $specification]
- # Start constructor user section
- $this smallIcon folder_16
- $this largeIcon folder_32
- # End constructor user section
- return $this
- }
-
- method CrFileStgDef::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this OpenDefObject::destructor
- }
-
- method CrFileStgDef::infoList {this} {
- set list [$this OpenDefObject::infoList]
- 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 CrFileStgDef::writeObject {this fid} {
- set formatString "%-25s | %s | %-10s | %-10s | %s"
- puts $fid [format $formatString [$this name] [$this type] \
- [$this fileQualifier] [$this fileName] [$this fileType]]
- }
-
- method CrFileStgDef::open {this} {
- if {![$this editable]} {
- return
- }
-
- .main busy TRUE
- set definer [[.main editorArea] crFileDefiner]
- if {[catch {$definer load $this}]} {
- set definer [CrFileDefDialog new .main.crFileDefiner]
- [.main editorArea] crFileDefiner $definer
- $definer load $this
- }
- .main busy FALSE
- }
-
- # Do not delete this line -- regeneration end marker
-
-