home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
filepropse.tcl
< prev
next >
Wrap
Text File
|
1997-09-05
|
3KB
|
111 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)filepropse.tcl /main/titanic/7
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)filepropse.tcl /main/titanic/7 5 Sep 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "fileprdbob.tcl"
require_module_file "propertyse.tcl" docwriter
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
}
proc FilepropSection::validDocument {obj} {
set document [$obj systemVersion]
if {"[[$document system] type]" != "document"} {return 0}
set editor [$document editor]
if {! [isCommand $editor]} {return 0}
return 1
}
method FilepropSection::promoter {this} {
$this FilePRDbObj::promoter
if {![FilepropSection::validDocument $this]} {
return
}
$this extension txt
set document [$this systemVersion]
set editor [$document editor]
$this document $document
$this uiType Fileprop
set editorName [$editor name]
set editorVersion [$editor version]
set class [Document::getClass $editorName $editorVersion Fileprop]
if {$class != "" && ![$this isA $class]} {
$class promote $this
}
# now promote to DocSection
DocSection::promoter $this
}
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