home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
newgroupvd.tcl
< prev
next >
Wrap
Text File
|
1996-06-12
|
2KB
|
74 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)newgroupvd.tcl 1.2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)newgroupvd.tcl 1.2 06 Mar 1996 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
require "newobjentr.tcl"
Class NewGroupVDlg : {NewObjEntryDlg} {
constructor
method destructor
method handleEdit
method handleOk
method handleTextModified
}
constructor NewGroupVDlg {class this name} {
set this [NewObjEntryDlg::constructor $class $this $name]
# Start constructor user section
$this config \
-title "New Group Version" \
-message "Name:" \
-okPressed "$this handleOk"
PushButton new $this.edit \
-label Edit \
-activated "$this handleEdit"
# End constructor user section
return $this
}
method NewGroupVDlg::destructor {this} {
# Start destructor user section
# End destructor user section
$this NewObjEntryDlg::destructor
}
method NewGroupVDlg::handleEdit {this} {
$this popDown
$this handleOk
if [isCommand [$this createdObj]] {
[$this createdObj] editFile
}
}
method NewGroupVDlg::handleOk {this} {
set groupName [$this entry]
set script "$this createdObj \"\""
append script " ;"
append script " $this createdObj \
\[[$this dbObj] createGroupVersion [list $groupName] \]"
$wmttoolObj startCommand tcl \
"$script" "" \
"Creating group version '$groupName'..." \
{1 0} 1
}
method NewGroupVDlg::handleTextModified {this} {
$this NewObjEntryDlg::handleTextModified
$this.edit sensitive [$this okSensitive]
}
# Do not delete this line -- regeneration end marker