home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
browseropt.tcl
< prev
next >
Wrap
Text File
|
1997-10-16
|
3KB
|
99 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)browseropt.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)browseropt.tcl /main/titanic/4 16 Oct 1997 Copyright 1997 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} \
-helpPressed {.main helpOnName font} \
-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 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