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