home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
newpropdef.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
88 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)newpropdef.tcl 1.6
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)newpropdef.tcl 1.6 04 Apr 1996 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
require "newcustobj.tcl"
Class NewPropDefDialog : {NewCustObjectDialog} {
constructor
method destructor
method popUp
}
constructor NewPropDefDialog {class this name} {
set this [NewCustObjectDialog::constructor $class $this $name]
# Start constructor user section
$this title "New Property Definition"
$this autoPopDown 0
interface DlgColumn $this.DC {
allowResize 1
Label L {
text "Name:"
}
SingleLineText shortNameSLT {
}
Label L {
text "Long Name:"
}
SingleLineText longNameSLT {
}
Label L {
text "Interface Class:"
}
DropDwnComboBox ifClassDDCB {
rowCount 10
}
}
$this okPressed {
set short [%this.DC.shortNameSLT text]
set long [%this.DC.longNameSLT text]
set class [%this.DC.ifClassDDCB text]
if {[[.main editorArea] getDefObject $short] != ""} {
wmtkerror "Property '$short' already exists."
} else {
%this popDown
[.main editorArea] newObject $short $long \
$class [%this edit]
}
}
lappend checkList "$this.DC.shortNameSLT textModified text"
lappend checkList "$this.DC.longNameSLT textModified text"
lappend checkList "$this.DC.ifClassDDCB textModified text"
$this checkList $checkList
$this helpPressed { .main helpOnName newPropDefinition }
# End constructor user section
return $this
}
method NewPropDefDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this NewCustObjectDialog::destructor
}
method NewPropDefDialog::popUp {this} {
global PropDefEdArea::ifClasses
$this.DC.shortNameSLT text ""
$this.DC.longNameSLT text ""
$this.DC.ifClassDDCB text ""
$this.DC.ifClassDDCB entrySet ${PropDefEdArea::ifClasses}
$this TemplateDialog::popUp
}
# Do not delete this line -- regeneration end marker