home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
roleuiobj.tcl
< prev
next >
Wrap
Text File
|
1997-10-17
|
2KB
|
95 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)roleuiobj.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)roleuiobj.tcl /main/titanic/2 17 Oct 1997 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
require "browsuiobj.tcl"
Class RoleUiObj : {BrowsUiObj} {
constructor
method destructor
method initializeInfo
method removeObjects
method roles
}
global RoleUiObj::uiClass
set RoleUiObj::uiClass "Roles"
constructor RoleUiObj {class this name} {
set this [BrowsUiObj::constructor $class $this $name]
# Start constructor user section
$this uiName "<roles>"
$this uiText "roles"
# End constructor user section
return $this
}
method RoleUiObj::destructor {this} {
# Start destructor user section
# End destructor user section
$this BrowsUiObj::destructor
}
proc RoleUiObj::associations {} {
return {roles}
}
proc RoleUiObj::childTypes {assoc} {
if {[lsearch -exact "[RoleUiObj::associations]" "$assoc"] == -1} {
return ""
}
return "[BrowserProcs::childTypes $assoc]"
}
proc RoleUiObj::infoProperties {} {
return [BrowserProcs::infoProperties]
}
method RoleUiObj::initializeInfo {this dummy} {
$this BrowsUiObj::initializeInfo $dummy
$this setInfo Text \
"[$this uiText] of [[$wmttoolObj corporateObj] getInfo Text]"
}
method RoleUiObj::removeObjects {this} {
set box $wmttoolObj.removeWarning
YesNoWarningDialog new $box \
-title "Confirm Object Delete" \
-message \
"This action may transfer access on objects to the SuperUser role.\
\n\n[BrowserProcs::removeMessage]" \
-noPressed {%this delete} \
-yesPressed {
set script ""
foreach obj [$wmttoolObj selectedObjSet] {
if {"$script" != ""} {
append script " ;"
}
append script " [$wmttoolObj corporateObj] removeRole $obj"
}
$wmttoolObj startCommand tcl "$script" "" "" {1 0} 1
%this delete
}
$box delCancelButton
$box popUp
}
method RoleUiObj::roles {this} {
return [[$wmttoolObj corporateObj] roles]
}
# Do not delete this line -- regeneration end marker