home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)checkbrobj.tcl 1.4
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)checkbrobj.tcl 1.4 21 Mar 1996 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- require classmaker.tcl
- # End user added include file section
-
-
- Class CheckBrObject : {BrowsObject} {
- constructor
- method destructor
- method define
- attribute group
- }
-
- constructor CheckBrObject {class this name} {
- set this [BrowsObject::constructor $class $this $name]
- # Start constructor user section
- $this activated "$this define"
- # End constructor user section
- return $this
- }
-
- method CheckBrObject::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- method CheckBrObject::define {this} {
-
- if [[[$this view] checkDialog] readOnly] {
- # no define if readOnly
- return
- }
-
- set number [[[$this view] checkDialog] number]
- set box .main.chckObjDlg$number
- if {! [isCommand $box]} {
- ClassMaker::extend TemplateDialog ChckObjDlg {CheckBrObject}
- interface ChckObjDlg $box {
- DlgColumn DC {
- NamedGroup nameNG {
- DlgRow DR {
- spaceType EVEN
- Label L {
- text "Check value"
- }
- VerRadioGroup checkValueVRG {
- entrySet {warning default error off}
- }
- }
- }
- }
- }
- $box config \
- -okPressed {
- set value [%this.DC.nameNG.DR.checkValueVRG selected]
- set details [[%this CheckBrObject] details]
- set details [lreplace $details 0 0 $value]
- [%this CheckBrObject] details $details
- [[%this CheckBrObject] view] sortit
- [%this CheckBrObject] makeVisible
- } \
- -helpPressed {.main helpOnName checkConfigValueDialog} \
- -modal 1
- }
-
- $box config \
- -CheckBrObject $this \
- -title "Group: [$this label]"
- set details [$this details]
- $box.DC.nameNG.DR.checkValueVRG selected [lindex $details 0]
- $box.DC.nameNG label "Description: [lindex $details 1]"
-
- $box popUp
- }
-
- # Do not delete this line -- regeneration end marker
-
-