home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
userroleob.tcl
< prev
next >
Wrap
Text File
|
1997-10-17
|
3KB
|
105 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)userroleob.tcl /main/titanic/3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)userroleob.tcl /main/titanic/3 17 Oct 1997 Copyright 1996 Cayenne Software 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 customLevelVersion
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::customLevelVersion {this} {
return [[$this info] set SecurityLevel]
}
method UserRoleObj::initializeInfo {this securityLevel} {
[$this info] contents ""
$this setInfo SecurityLevel $securityLevel
}
method UserRoleObj::removeObjects {this} {
set box $wmttoolObj.removeWarning
YesNoWarningDialog new $box \
-title "Confirm Object Delete" \
-message [BrowserProcs::removeMessage] \
-noPressed {%this delete} \
-yesPressed {
set script ""
foreach obj [$wmttoolObj selectedObjSet] {
if {"$script" != ""} {
append script " ;"
}
append script " $obj destroy"
}
$wmttoolObj startCommand tcl "$script" "" "" {1 0} 1
%this delete
}
$box delCancelButton
$box popUp
}
# Do not delete this line -- regeneration end marker