home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)checkbrvie.tcl /main/hindenburg/1
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)checkbrvie.tcl /main/hindenburg/1 29 Aug 1996 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- require checkbrobj.tcl
- # End user added include file section
-
-
- Class CheckBrView : {BrowsView} {
- constructor
- method destructor
- method sortit
- method setMessages
- attribute messageView
- attribute checkDialog
- }
-
- constructor CheckBrView {class this name} {
- set this [BrowsView::constructor $class $this $name]
- # Start constructor user section
- $this columnCount 60
- $this rowCount 10
- $this selectionPolicy BROWSE
- $this font "[m4_var get M4_font -context uce]"
- BrowsHeader new $this.group -label Group -width 16
- BrowsHeader new $this.checkValue -label "Check value" -width 12
- BrowsHeader new $this.description -label Description -width 70
- # End constructor user section
- return $this
- }
-
- method CheckBrView::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- method CheckBrView::sortit {this} {
-
- $this sort -column "$this.checkValue ascii decreasing"
- }
-
- method CheckBrView::setMessages {this group} {
-
- foreach entry [[$this messageView] objectSet] {
- $entry delete
- }
-
- set messageList [[$this checkDialog] getGroup $group]
-
- set count 0
- foreach entry $messageList {
- BrowsObject new [$this messageView].$count
- [$this messageView].$count label "[lindex $entry 0]"
- [$this messageView].$count details \{"[lindex $entry 1]"\}
- incr count
- }
- }
-
- # Do not delete this line -- regeneration end marker
-
-