home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
newmenuent.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
60 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)newmenuent.tcl 1.8
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)newmenuent.tcl 1.8 02 Apr 1996 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
require "newmenusep.tcl"
Class NewMenuEntryDialog : {NewMenuSeparatorDialog} {
constructor
method destructor
method popUp
attribute type
}
constructor NewMenuEntryDialog {class this name} {
set this [NewMenuSeparatorDialog::constructor $class $this $name]
# Start constructor user section
Label new $this.DC.L -text "Name:"
SingleLineText new $this.DC.nameSLT
$this okPressed {
set name [%this.DC.nameSLT text]
if {[%this.DC.parentDDL selected] == ""} {
error "No Parent Selected: object not created"
} else {
%this popDown
[.main editorArea] newObject [%this type] $name \
[%this.DC.parentDDL selected] [%this edit]
}
}
$this checkList [list "$this.DC.nameSLT textModified text"]
$this helpPressed { .main helpOnName newMenuPart }
# End constructor user section
return $this
}
method NewMenuEntryDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this NewMenuSeparatorDialog::destructor
}
method NewMenuEntryDialog::popUp {this type} {
$this title $type
$this type $type
$this NewMenuSeparatorDialog::popUp
}
# Do not delete this line -- regeneration end marker