home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)groupdefdi.tcl 1.3
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)groupdefdi.tcl 1.3 04 Apr 1996 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- # End user added include file section
-
- require "opendefdia.tcl"
-
- Class GroupDefDialog : {OpenDefDialog} {
- constructor
- method destructor
- method createInterface
- method clearInterface
- method fromInterface
- method toInterface
- }
-
- constructor GroupDefDialog {class this name} {
- set this [OpenDefDialog::constructor $class $this $name]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method GroupDefDialog::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this OpenDefDialog::destructor
- }
-
- method GroupDefDialog::createInterface {this} {
- interface NoteBkPage $this.definitionNBP {
- label Definition
- DlgColumn DC {
- Label nameL { text Name: }
- SingleLineText nameSLT {}
- Label membersL { text Members: }
- TextList membersTL {
- rowCount 5
- selectionPolicy MULTIPLE
- }
- }
- }
- $this dPage $this.definitionNBP.DC
- }
-
- method GroupDefDialog::clearInterface {this} {
- $this OpenDefDialog::clearInterface
- [$this dPage].membersTL entrySet {}
- [$this dPage].membersTL selectedSet {}
- }
-
- method GroupDefDialog::fromInterface {this} {
- [$this curObject] members [[$this dPage].membersTL selectedSet]
- return ""
- }
-
- method GroupDefDialog::toInterface {this} {
- set stgSet {}
- foreach stg [[.main editorArea] getObjects] {
- if {$stg == [$this curObject]} {break}
- lappend stgSet [$stg name]
- }
- [$this dPage].membersTL entrySet $stgSet
- [$this dPage].membersTL selectedSet [[$this curObject] members]
- }
-
- # Do not delete this line -- regeneration end marker
-
-