home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
csclientno.tcl
< prev
next >
Wrap
Text File
|
1996-09-19
|
2KB
|
73 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)csclientno.tcl /main/hindenburg/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)csclientno.tcl /main/hindenburg/4 19 Sep 1996 Copyright 1996 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "csprocessn.tcl"
Class CSClientNode : {CSProcessNode} {
constructor
method destructor
method context
method doUpdate
attribute client
}
constructor CSClientNode {class this name i_client} {
set this [CSProcessNode::constructor $class $this $name]
$this client $i_client
# Start constructor user section
$this process $i_client
$this label [$i_client owner]@[$i_client host]
$this hasChildren 0
if {[$i_client host] == [ORB::currentHost] &&
[$i_client pid] == [ORB::currentProcessId]} {
$this icon rep_clself_16
} else {
$this icon rep_client_16
}
# Allow clients to be dropped in the lock list of the
# Lock Management window, to initialize the "Set Lock..."
# dialog with this client's host, pid and user.
#
$this conversionSet "CSCLIENTNODE context"
# End constructor user section
return $this
}
method CSClientNode::destructor {this} {
# Start destructor user section
# End destructor user section
$this CSProcessNode::destructor
}
method CSClientNode::context {this} {
set client [$this client]
return [list [$client host] [$client pid] [$client owner]]
}
method CSClientNode::doUpdate {this {rebuild 1}} {
$this CSProcessNode::doUpdate $rebuild
set info [$this info]
set client [$this client]
$info addHeader "Client"
$info addItem "Of Server" [[$client server] name]
}
# Do not delete this line -- regeneration end marker