home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
browseropt.tcl
< prev
next >
Wrap
Text File
|
1996-08-29
|
3KB
|
99 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)browseropt.tcl /main/hindenburg/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)browseropt.tcl /main/hindenburg/2 29 Aug 1996 Copyright 1996 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "tooloption.tcl"
Class BrowserOptions : {ToolOptions} {
constructor
method destructor
method font
method compareCmd
method editor
method previewer
method viewer
attribute editorContexts
attribute previewerContexts
attribute viewerContexts
}
constructor BrowserOptions {class this name} {
set this [ToolOptions::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method BrowserOptions::destructor {this} {
# Start destructor user section
# End destructor user section
$this ToolOptions::destructor
}
method BrowserOptions::font {this} {
# retrieve M4 variable
set M4_font__desk [m4_var get M4_font -context desk]
busy {
FontChooser new $wmttoolObj.font \
-title "Browser Font" \
-value "$M4_font__desk" \
-cancelPressed {%this delete} \
-okPressed {
[$wmttoolObj flatView] font [%this value]
[$wmttoolObj treeView] font [%this value]
if {"[m4_var get M4_font -context desk]" != "[%this value]"} {
catch {m4_var set M4_font "[%this value]" -context desk}
}
%this delete
}
}
$wmttoolObj.font delHelpButton
$wmttoolObj.font popUp
}
method BrowserOptions::compareCmd {this} {
# retrieve M4 variables
set M4_diff [m4_var get M4_diff]
# create dialog box
EntryDialog new $wmttoolObj.compareCommand \
-modal yes \
-title "Compare Command" \
-message "Compare Command:" \
-entry $M4_diff \
-helpPressed {.main helpOnName compareCommand} \
-cancelPressed {%this delete} \
-okPressed {
if {"[m4_var get M4_diff]" != "[%this entry]"} {
catch {m4_var set M4_diff [%this entry]}
}
%this delete
}
$wmttoolObj.compareCommand popUp
}
method BrowserOptions::editor {this} {
$this createBox editor
}
method BrowserOptions::previewer {this} {
$this createBox previewer
}
method BrowserOptions::viewer {this} {
$this createBox viewer
}
# Do not delete this line -- regeneration end marker