home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
filepropse.tcl
< prev
next >
Wrap
Text File
|
1996-06-05
|
2KB
|
94 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)filepropse.tcl /main/3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)filepropse.tcl /main/3 5 Jun 1996 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
require "fileprdbob.tcl"
require "propertyse.tcl"
Class FilepropSection : {PropertySection FilePRDbObj} {
method destructor
constructor
method promoter
method edit
method makeFixed
method makeSelected
method uiName
method docTitle
}
method FilepropSection::destructor {this} {
# Start destructor user section
# End destructor user section
$this PropertySection::destructor
$this FilePRDbObj::destructor
}
constructor FilepropSection {class this name document} {
set this [FilePRDbObj::constructor $class $this $name]
set this [PropertySection::constructor $class $this $name $document]
return $this
}
selfPromoter FilePRDbObj {this} {
set sysV [$this systemVersion]
if {"[[$sysV system] type]" != "document"} return
set editor [$sysV editor]
if {! [isCommand $editor]} return
set editorName [$editor name]
set editorVersion [$editor version]
set class [Document::getClass $editorName $editorVersion Fileprop]
if {$class != ""} {
$class promote $this $sysV
}
}
method FilepropSection::promoter {this document} {
$this PropertySection::promoter $document
$this uiType Fileprop
}
method FilepropSection::edit {this} {
$this PropertySection::edit
}
method FilepropSection::makeFixed {this} {
set cv [[$this document] configVersion]
$this status fixed $cv
}
method FilepropSection::makeSelected {this} {
set cv [[$this document] configVersion]
$this status selected $cv
}
method FilepropSection::uiName {this args} {
return [$this PropertySection::uiName $args]
}
method FilepropSection::docTitle {this} {
set title "Properties of file"
set file [$this referredFile]
if {! [$file isNil]} {
set title "$title '[$file name].[$file type]'"
} else {
set title "$title <unknown>"
}
return $title
}
# Do not delete this line -- regeneration end marker