home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)cbfontchoo.tcl /main/hindenburg/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cbfontchoo.tcl /main/hindenburg/2 3 Sep 1996 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- # End user added include file section
-
-
- Class CBFontChooser : {FontChooser} {
- constructor
- method destructor
- method handleOkPressed
- }
-
- constructor CBFontChooser {class this name} {
- set this [FontChooser::constructor $class $this $name]
- # Start constructor user section
- set M4_font__classbrowser [m4_var get M4_font -context classbrowser]
- $this config -title "Class Browser Font" \
- -value "$M4_font__classbrowser" \
- -okPressed "%this handleOkPressed"
- $this delHelpButton
- # End constructor user section
- return $this
- }
-
- method CBFontChooser::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- method CBFontChooser::handleOkPressed {this} {
- if {[m4_var get M4_font -context classbrowser] == [$this value]} {
- return
- }
- if {[catch {m4_var set M4_font [$this value] -context classbrowser}]} {
- wmtkerror "Unable to set Class Browser Font"
- return
- }
- $classBrowser setFont [$this value]
- }
-
- # Do not delete this line -- regeneration end marker
-
-