home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
mtrxvdbobj.tcl
< prev
next >
Wrap
Text File
|
1997-10-16
|
3KB
|
126 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)mtrxvdbobj.tcl /main/titanic/9
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)mtrxvdbobj.tcl /main/titanic/9 16 Oct 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "filevobj.tcl"
Class MtrxVDbObj : {Matrix FileVObj} {
method destructor
constructor
method promoter
method browserObjType
method canBeDragged
method editFile
method showFile
method esFile
}
method MtrxVDbObj::destructor {this} {
# Start destructor user section
# End destructor user section
$this FileVObj::destructor
}
constructor MtrxVDbObj {class this name} {
set this [Matrix::constructor $class $this $name]
set this [FileVObj::constructor $class $this $name]
return $this
}
selfPromoter Matrix {this} {
MtrxVDbObj promote $this
}
method MtrxVDbObj::promoter {this} {
$this FileVObj::promoter
module_promoter MtrxVDbObj $this
}
proc MtrxVDbObj::associations {} {
return "[FileVObj::associations]"
}
method MtrxVDbObj::browserObjType {this} {
return "MtrxVDbObj"
}
method MtrxVDbObj::canBeDragged {this} {
if {"[$this getInfo Type]" == "dsm"} {
return 0
}
return [$this FileVObj::canBeDragged]
}
proc MtrxVDbObj::childTypes {assoc} {
if {[lsearch -exact "[MtrxVDbObj::associations]" "$assoc"] == -1} {
return ""
}
return "[BrowserProcs::childTypes $assoc]"
}
proc MtrxVDbObj::controlledLists {} {
return "[FileVObj::controlledLists]"
}
proc MtrxVDbObj::infoProperties {} {
return "[FileVObj::infoProperties]"
}
method MtrxVDbObj::editFile {this {levelPath ""}} {
$this esFile $levelPath
}
method MtrxVDbObj::showFile {this {levelPath ""}} {
$this esFile $levelPath ro
}
method MtrxVDbObj::esFile {this levelPath {ro ""}} {
busy {
set es edit
set editable 1
if [string length $ro] {
set es show
set editable 0
}
set file [$this file]
case "[$file type]" in {
{dsm} {
# default no action possible, try modules
module_proc MtrxVDbObj::${es}File $this
}
{cdm} {
require "opencdmdlg.tcl"
set box .main.openCdm
OpenCdmDlg new $box \
-editable $editable \
-levelPath [LevelPath new $levelPath] \
-cdm $this
set popUpState [$box popUp]
if {! [lindex $popUpState 0]} {
$box delete
set message [lindex $popUpState 1]
if {"$message" != ""} {
wmtkerror $message
}
}
}
{default} {
set obj "[$file qualifiedName :].[$file type]"
wmtkerror "Don't know how to $es '$obj'"
}
}
}
}
# Do not delete this line -- regeneration end marker