home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
notsaveddi.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
59 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)notsaveddi.tcl 1.9
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)notsaveddi.tcl 1.9 16 Jan 1996 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
Class NotSavedDialog : {YesNoWarningDialog} {
constructor
method destructor
method popUp
method handleYes
method handleNo
attribute action
attribute infoKind
attribute editor
}
constructor NotSavedDialog {class this name} {
set this [YesNoWarningDialog::constructor $class $this $name]
$this infoKind "Diagram"
# Start constructor user section
$this config -title "Not Saved" \
-helpPressed {.main helpOnName notSaved} \
-yesPressed {%this handleYes} \
-noPressed {%this handleNo}
# End constructor user section
return $this
}
method NotSavedDialog::destructor {this} {
# Start destructor user section
# End destructor user section
}
method NotSavedDialog::popUp {this} {
$this message "Save changes to [$this infoKind] first ?"
$this PopupDialog::popUp
}
method NotSavedDialog::handleYes {this} {
[$this editor] save
eval [$this action]
}
method NotSavedDialog::handleNo {this} {
eval [$this action]
}
# Do not delete this line -- regeneration end marker