home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
newviewdia.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
80 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)newviewdia.tcl 1.12
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)newviewdia.tcl 1.12 02 Apr 1996 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
require "newcustobj.tcl"
Class NewViewDialog : {NewCustObjectDialog} {
constructor
method destructor
method repTypeChanged
}
constructor NewViewDialog {class this name} {
set this [NewCustObjectDialog::constructor $class $this $name]
# Start constructor user section
$this title ViewObject
interface DlgColumn $this.DC {
allowResize 1
Label L {
text "Repository Type:"
}
DropDwnList repObjectDDL {
entrySet {}
rowCount 10
}
Label L {
text "Browser Type:"
}
DropDwnList broObjectDDL {
entrySet {all}
rowCount 10
}
Label L {
text "Name:"
}
SingleLineText nameSLT {
}
}
$this okPressed {
set name [%this.DC.nameSLT text]
set repObj [%this.DC.repObjectDDL selected]
set broType [%this.DC.broObjectDDL selected]
%this popDown
[.main editorArea] newObject $repObj $broType $name [%this edit]
}
$this helpPressed { .main helpOnName newView }
$this checkList [list "$this.DC.nameSLT textModified text"]
$this.DC.repObjectDDL entrySet [lsort [[.main BrowsObj] names]]
$this.DC.repObjectDDL selected [lindex [$this.DC.repObjectDDL \
entrySet] 0]
$this.DC.repObjectDDL selectionChanged "$this repTypeChanged"
# End constructor user section
return $this
}
method NewViewDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this NewCustObjectDialog::destructor
}
method NewViewDialog::repTypeChanged {this} {
set repType [$this.DC.repObjectDDL selected]
set types [CustEditor::subTypes $repType]
$this.DC.broObjectDDL entrySet "all $types"
}
# Do not delete this line -- regeneration end marker