home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
newopendef.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
69 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)newopendef.tcl 1.7
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)newopendef.tcl 1.7 04 Apr 1996 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
require "newcustobj.tcl"
Class NewOpenDefDialog : {NewCustObjectDialog} {
constructor
method destructor
}
constructor NewOpenDefDialog {class this name} {
set this [NewCustObjectDialog::constructor $class $this $name]
# Start constructor user section
$this title OpenStrategy
$this autoPopDown 0
interface DlgColumn $this.DC {
allowResize 1
Label L {
text "Name:"
}
SingleLineText nameSLT {
}
Label L {
text "Type:"
}
DropDwnList typeDDL {
entrySet {}
rowCount 5
}
}
$this okPressed {
set name [%this.DC.nameSLT text]
set type [%this.DC.typeDDL selected]
%this popDown
[.main editorArea] newObject $type $name [%this edit]
}
$this helpPressed { .main helpOnName newOpenDefinition }
lappend checkList "$this.DC.nameSLT textModified text"
lappend checkList "$this.DC.typeDDL selectionChanged selected"
$this checkList $checkList
$this.DC.typeDDL entrySet \
{search createFile createSystemAndFile userDefined group}
$this.DC.typeDDL selected [lindex [$this.DC.typeDDL entrySet] 0]
# End constructor user section
return $this
}
method NewOpenDefDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this NewCustObjectDialog::destructor
}
# Do not delete this line -- regeneration end marker