home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
nameconfli.tcl
< prev
next >
Wrap
Text File
|
1997-11-18
|
2KB
|
63 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)nameconfli.tcl /main/titanic/3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)nameconfli.tcl /main/titanic/3 18 Nov 1997 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
Class NameConflictDialog : {TemplateDialog} {
constructor
method destructor
method popUp
method changeName
attribute nameChange
}
constructor NameConflictDialog {class this name nameChange} {
set this [TemplateDialog::constructor $class $this $name]
$this nameChange $nameChange
# Start constructor user section
Label new $this.message -text "Specified name already in use"
$this delOkButton
PushButton new $this.overwrite -label Overwrite \
-activated "$this changeName 1"
PushButton new $this.refer -label Refer \
-activated "$this changeName 0"
$this config -modal yes -title "Name Conflict" \
-helpPressed {.main helpOnName nameConflict}
# End constructor user section
return $this
}
method NameConflictDialog::destructor {this} {
# Start destructor user section
# End destructor user section
}
method NameConflictDialog::popUp {this} {
$this.overwrite default no
$this.refer default no
$this cancelDefault yes
$this TemplateDialog::popUp
}
method NameConflictDialog::changeName {this useOld} {
busy {
$this busy 1
[$this nameChange] changeName $useOld
$this popDown
} {
$this busy 0
}
}
# Do not delete this line -- regeneration end marker