home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
griddialog.tcl
< prev
next >
Wrap
Text File
|
1997-10-10
|
2KB
|
70 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)griddialog.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)griddialog.tcl /main/titanic/2 10 Oct 1997 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
Class GridDialog : {TemplateDialog} {
constructor
method destructor
method popUp
method updateArea
attribute area
}
constructor GridDialog {class this name} {
set this [TemplateDialog::constructor $class $this $name]
# Start constructor user section
$this title Grid
interface DlgColumn $this.c {
NamedGroup n {
label "Grid Size"
DlgRow r {
VerRadioGroup size {
entrySet {1 2 4 8 16 32 64}
selected 16
}
spaceType EVEN
}
}
}
$this config -modal yes -okPressed {%this updateArea} \
-helpPressed {.main helpOnName grid}
# End constructor user section
return $this
}
method GridDialog::destructor {this} {
# Start destructor user section
# End destructor user section
}
method GridDialog::popUp {this} {
set area [$this area]
$this.c.n.r.size selected [$area gridSize]
$this TemplateDialog::popUp
}
method GridDialog::updateArea {this} {
set area [$this area]
$area gridSize [$this.c.n.r.size selected]
if {[m4_var get M4_grid_delta] != [$area gridSize]} {
m4_var set M4_grid_delta [$area gridSize]
}
}
# Do not delete this line -- regeneration end marker