home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
userroleob.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
3KB
|
100 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)userroleob.tcl 1.2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)userroleob.tcl 1.2 23 Feb 1996 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
require "browsdbobj.tcl"
Class UserRoleObj : {BrowsDbObj} {
constructor
method destructor
method changeLinks
method initializeInfo
method removeObjects
}
constructor UserRoleObj {class this name} {
set this [BrowsDbObj::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method UserRoleObj::destructor {this} {
# Start destructor user section
# End destructor user section
$this BrowsDbObj::destructor
}
method UserRoleObj::changeLinks {this} {
TemplateDialog new $wmttoolObj.changeLink \
-modal yes \
-title "Change Link Status" \
-helpPressed {.main helpOnName changeLink} \
-cancelPressed {%this delete} \
-okPressed {
set status [%this.top.status selected]
set script ""
foreach obj [$wmttoolObj selectedObjSet] {
if {"$script" != ""} {
append script " ;"
}
append script " $obj use $status"
}
$wmttoolObj startCommand tcl "$script" "" "" {1 0} 1
%this delete
}
interface DlgColumn $wmttoolObj.changeLink.top {
Label messageLab {
text "Status:"
}
VerRadioGroup status {
entrySet {defaultOff defaultOn alwaysOn}
}
}
if {[llength [$wmttoolObj selectedObjSet]] == 1} {
$wmttoolObj.changeLink.top.status selected \
[[lindex [$wmttoolObj selectedObjSet] 0] getInfo Link]
} else {
$wmttoolObj.changeLink.top.status selected defaultOff
}
$wmttoolObj.changeLink popUp
}
method UserRoleObj::initializeInfo {this securityLevel} {
[$this info] contents ""
$this setInfo SecurityLevel $securityLevel
}
method UserRoleObj::removeObjects {this} {
set box $wmttoolObj.removeWarning
WarningDialog new $box \
-title "Delete Warning" \
-message [BrowserProcs::removeMessage] \
-helpPressed {.main helpOnName removeWarning} \
-cancelPressed {%this delete} \
-okPressed {
set script ""
foreach obj [$wmttoolObj selectedObjSet] {
if {"$script" != ""} {
append script " ;"
}
append script " $obj destroy"
}
$wmttoolObj startCommand tcl "$script" "" "" {1 0} 1
%this delete
}
$box popUp
}
# Do not delete this line -- regeneration end marker