home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)proplocobj.tcl /main/titanic/1
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)proplocobj.tcl /main/titanic/1 14 Mar 1997 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "locobject.tcl"
-
- Class PropLocObject : {LocObject} {
- constructor
- method destructor
- method updateView
- method infoList
- method writeObject
- method open
- attribute shortName
- attribute longName
- attribute cnt
- attribute cntType
- }
-
- constructor PropLocObject {class this name specification} {
- set this [LocObject::constructor $class $this $name $specification]
- # Start constructor user section
- $this smallIcon folder_16
- $this largeIcon folder_32
- $this conversionSet "PROPLOC id"
- $this id $this
- # End constructor user section
- return $this
- }
-
- method PropLocObject::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this LocObject::destructor
- }
-
- method PropLocObject::updateView {this} {
-
- if [$this editable] {
- set level "[$this specLevel] *"
- } else {
- set level [$this specLevel]
- }
-
- $this label [$this shortName]
- $this details [list [$this longName] \
- [$this cnt] \
- [$this cntType] \
- $level \
- [$this phase] \
- [$this fileType] \
- [$this componentType] \
- [$this labelType] \
- [$this condition]]
- }
-
- method PropLocObject::infoList {this} {
-
- return [list {Short Name} [$this shortName] \
- {Long Name} [$this longName] \
- {Container Kind} [$this cnt] \
- {Container Type} [$this cntType] \
- {Specification Level} [$this specLevel] \
- {Phase Type} [$this phase] \
- {Diagram Type} [$this fileType] \
- {Component Type} [$this componentType] \
- {Label Type} [$this labelType] \
- Condition [$this condition]]
- }
-
- method PropLocObject::writeObject {this fid} {
-
- set format "%-15s | %-25s | %-10s | %-10s | %s | %s | %s | %s "
- puts $fid [format $format [$this shortName] [$this cnt] \
- [$this cntType] \
- [$this phase] [$this fileType] [$this componentType] \
- [$this labelType] [$this condition]]
- }
-
- method PropLocObject::open {this} {
-
- if {![$this editable]} {
- return
- }
-
- .main busy TRUE
- set definer [[.main editorArea] propLocDefiner]
- if {[catch {$definer load $this}]} {
- set definer [PropLocDialog new .main.propLocDefiner]
- [.main editorArea] propLocDefiner $definer
- $definer editorArea [.main editorArea]
- $definer load $this
- }
- .main busy FALSE
- }
-
- # Do not delete this line -- regeneration end marker
-
-