home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)nameconfli.tcl 1.4
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)nameconfli.tcl 1.4 01 Feb 1996 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 "Change Name" \
- -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} {
- [$this nameChange] changeName $useOld
- $this popDown
- }
-
- # Do not delete this line -- regeneration end marker
-
-