home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
mergeinfoo.tcl
< prev
next >
Wrap
Text File
|
1997-11-20
|
3KB
|
106 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)mergeinfoo.tcl /main/titanic/6
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)mergeinfoo.tcl /main/titanic/6 20 Nov 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
Class MergeInfoObject : {BrowsObject} {
constructor
method destructor
method initialize
attribute conflict
attribute repObj
}
constructor MergeInfoObject {class this name repObj} {
set this [BrowsObject::constructor $class $this $name]
$this repObj $repObj
# Start constructor user section
$this initialize
# End constructor user section
return $this
}
method MergeInfoObject::destructor {this} {
# Start destructor user section
# End destructor user section
}
method MergeInfoObject::initialize {this} {
set rep [$this repObj]
if [$rep hasConflict] {
$this conflict Yes
} else {
$this conflict No
}
set fromRepObj [$rep fromRepObj]
set toRepObj [$rep toRepObj]
set name [$fromRepObj getInfo Name]
# Set icons and default foldState
set uiType "[$fromRepObj getInfo Type]"
set objType "[$fromRepObj uiClass]"
set typeSpec [getObjectSpec [.main objectHdlr] "$objType" "$uiType" 0]
if {"$typeSpec" != ""} {
set smallIcon [$typeSpec smallIcon]
set largeIcon [$typeSpec largeIcon]
} else {
set smallIcon ""
set largeIcon ""
}
set details ""
lappend details $uiType
lappend details [$fromRepObj getInfo PropertyName]
lappend details [$this conflict]
set baseRepObj [$rep baseRepObj]
if {[isCommand $baseRepObj] &&
([$baseRepObj isA Version] ||
[$baseRepObj isA CorporateGroupVersion]) &&
![catch {set versionName [$baseRepObj versionName]}]} {
lappend details $versionName
} else {
lappend details ""
}
set fromRepObj [$rep fromRepObj]
if {[isCommand $fromRepObj] &&
([$fromRepObj isA Version] ||
[$fromRepObj isA CorporateGroupVersion]) &&
![catch {set versionName [$fromRepObj versionName]}]} {
lappend details $versionName
} else {
lappend details ""
}
set toRepObj [$rep toRepObj]
if {[isCommand $toRepObj] &&
([$toRepObj isA Version] ||
[$toRepObj isA CorporateGroupVersion]) &&
![catch {set versionName [$toRepObj versionName]}]} {
lappend details $versionName
} else {
lappend details ""
}
$this config \
-label $name \
-details $details \
-smallIcon $smallIcon \
-largeIcon $largeIcon \
}
# Do not delete this line -- regeneration end marker