home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)roleuiobj.tcl 1.12
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)roleuiobj.tcl 1.12 23 Feb 1996 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
- WarningDialog new $box \
- -title "Delete Warning" \
- -message \
- "This action may transfer access on objects to the SuperUser role.\
- \n\n[BrowserProcs::removeMessage]" \
- -helpPressed {.main helpOnName removeWarning} \
- -cancelPressed {%this delete} \
- -okPressed {
- 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 popUp
- }
-
- method RoleUiObj::roles {this} {
- return [[$wmttoolObj corporateObj] roles]
- }
-
- # Do not delete this line -- regeneration end marker
-
-