home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)itempropin.tcl 1.2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)itempropin.tcl 1.2 13 Nov 1995 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- # End user added include file section
-
-
- Class ItemPropInfo : {PIPropInfo} {
- constructor
- method destructor
- method load
- method edit
- method save
- method quit
- attribute loaded
- attribute saved
- attribute contents
- attribute propObj
- }
-
- global ItemPropInfo::allPropInfos
- set ItemPropInfo::allPropInfos [Dictionary new]
-
-
- constructor ItemPropInfo {class this propObj} {
- set this [PIPropInfo::constructor $class $this]
- $this loaded 0
- $this saved 1
- $this contents 0
- $this propObj $propObj
- # Start constructor user section
-
- global ${ItemPropInfo::allPropInfos}
- ${ItemPropInfo::allPropInfos} set $propObj $this
-
- # End constructor user section
- return $this
- }
-
- method ItemPropInfo::destructor {this} {
- # Start destructor user section
-
- global ${ItemPropInfo::allPropInfos}
- ${ItemPropInfo::allPropInfos} unset [$this propObj]
-
- # End destructor user section
- }
-
- proc ItemPropInfo::getPropInfo {propObj} {
- global ${ItemPropInfo::allPropInfos}
- set info [${ItemPropInfo::allPropInfos} set $propObj]
- if {$info == ""} {
- set info [ItemPropInfo new $propObj]
- }
- return $info
- }
-
- method ItemPropInfo::load {this} {
- if [$this loaded] {
- return
- }
- $this PIPropInfo::load [$this propObj]
- $this loaded 1
- $this saved 0
- $this contents 1
- }
-
- method ItemPropInfo::edit {this} {
- if [$this loaded] {
- return
- }
- $this PIPropInfo::edit [$this propObj]
- $this loaded 1
- $this saved 0
- $this contents 1
- }
-
- method ItemPropInfo::save {this} {
- if [$this saved] {
- return
- }
- $this PIPropInfo::save
- $this saved 1
- }
-
- method ItemPropInfo::quit {this} {
- if {![$this contents]} {
- return
- }
- $this PIPropInfo::quit
- $this contents 0
- $this loaded 0
- $this saved 1
- }
-
- # Do not delete this line -- regeneration end marker
-
-