home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
ot2varse.tcl
< prev
next >
Wrap
Text File
|
1997-11-13
|
1KB
|
45 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)ot2varse.tcl /main/titanic/4 14 Jul 1997 18 Jun 1997
# Author: H. Broeze
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)ot2varse.tcl /main/titanic/4 13 Nov 1997 18 Jun 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
Class VarFileSelection : {FileChooser} {
method destructor
constructor
method handleOk
}
method VarFileSelection::destructor {this} {
# Start destructor user section
# End destructor user section
}
constructor VarFileSelection {class this name } {
set this [FileChooser::constructor $class $this $name]
# Start constructor user section
$this config \
-okPressed "$this handleOk" \
-title "Save to Var File ..." \
-selectionPolicy SINGLE \
-filter "*.var"
# End constructor user section
return $this
}
method VarFileSelection::handleOk {this} {
set selVarFile [lindex [$this selectedSet] 0]
regsub -all {\\} $selVarFile "/" tclFileName
.main startCommand mtool "otsh -f ot2var.tcl -- $tclFileName" "" "Starting saving object model to VAR file" {0 0} 0
}
# Do not delete this line -- regeneration end marker