home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)custmenufi.tcl 1.3
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)custmenufi.tcl 1.3 07 Jul 1995 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- # End user added include file section
-
- require "custfilter.tcl"
-
- Class CustMenuFilter : {CustFilter} {
- constructor
- method destructor
- method rehash
- method separatorFilter
- method isFilterActive
- attribute separator
- }
-
- constructor CustMenuFilter {class this name editorArea} {
- set this [CustFilter::constructor $class $this $name $editorArea]
- $this separator 0
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method CustMenuFilter::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this CustFilter::destructor
- }
-
- method CustMenuFilter::rehash {this} {
-
- $this CustFilter::rehash
-
- if {![$this separator]} {
- return
- }
-
- foreach i [[$this editorArea] getObjects] {
- if [$i isA SeparatorNode] {
- $i filteredOutState 1
- }
- }
- }
-
- method CustMenuFilter::separatorFilter {this state} {
-
- $this separator $state
- $this rehash
- }
-
- method CustMenuFilter::isFilterActive {this} {
-
- if {[$this CustFilter::isFilterActive] || [$this separator]} {
- return 1
- }
-
- return 0
- }
-
- # Do not delete this line -- regeneration end marker
-
-