home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1996
- #
- # File: @(#)custedopti.tcl /main/hindenburg/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)custedopti.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 CustEdOptions : {ToolOptions} {
- constructor
- method destructor
- method font
- }
-
- constructor CustEdOptions {class this name} {
- set this [ToolOptions::constructor $class $this $name]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method CustEdOptions::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this ToolOptions::destructor
- }
-
- method CustEdOptions::font {this} {
- # retrieve M4 variable
- set M4_font__uce [m4_var get M4_font -context uce]
-
- .main busy TRUE
- FontChooser new .main.font \
- -title "Customization Editor Font" \
- -value "$M4_font__uce" \
- -cancelPressed {%this delete} \
- -okPressed {
- [.main editorArea] font [%this value]
- if {"[m4_var get M4_font -context uce]" != "[%this value]"} {
- catch {m4_var set M4_font "[%this value]" -context uce}
- }
- %this delete
- }
- .main busy FALSE
- .main.font delHelpButton
- .main.font popUp
- }
-
- # Do not delete this line -- regeneration end marker
-
-