home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
reppasswor.tcl
< prev
next >
Wrap
Text File
|
1996-10-18
|
2KB
|
60 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)reppasswor.tcl /main/hindenburg/3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)reppasswor.tcl /main/hindenburg/3 18 Oct 1996 Copyright 1996 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
Class RepPasswordDialog : {LoginDialog} {
constructor
method destructor
method ok
attribute plainPassword
attribute cryptedPassword
attribute changed
}
constructor RepPasswordDialog {class this name} {
set this [LoginDialog::constructor $class $this $name]
# Start constructor user section
$this config \
-modal 1 \
-title "Database Password" \
-message "Enter Database Password" \
-okPressed { %this ok } \
-entry ""
$this delHelpButton
# End constructor user section
return $this
}
method RepPasswordDialog::destructor {this} {
# Start destructor user section
# End destructor user section
}
method RepPasswordDialog::ok {this} {
$this plainPassword [$this entry]
if [string length [$this plainPassword]] {
$this cryptedPassword [ORB::cryptPassword [$this plainPassword]]
} else {
$this cryptedPassword ""
}
if {[$this changed] != ""} {
eval "[$this changed]"
}
}
# Do not delete this line -- regeneration end marker