home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)cadpanel.tcl /main/3
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cadpanel.tcl /main/3 5 Jun 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
-
- require edcontrolp.tcl
-
- # End user added include file section
-
-
- Class CADPanel : {DlgColumn} {
- constructor
- method destructor
- method area
- attribute _area
- attribute endPanel
- attribute startPanel
- attribute symbPanel
- }
-
- constructor CADPanel {class this name} {
- set this [DlgColumn::constructor $class $this $name]
- # Start constructor user section
-
- $this symbPanel [EdControlPanel new $this.symb]
- $this config -horStretchFactor 0 -horShrinkFactor 0
- HorSeparator new $this.sep
- DlgRow new $this.mult
- $this startPanel [VerControlPanel new $this.mult.start \
- -entrySet {start_one start_optional start_many} \
- -selected start_one \
- -selectionChanged "
- \[$this area\] currentStartMultiplicity \
- \[string range \[$this.mult.start selected\] 6 end\]
- "]
- $this endPanel [VerControlPanel new $this.mult.end \
- -entrySet {end_one end_optional end_many} \
- -selected end_one \
- -selectionChanged "
- \[$this area] currentEndMultiplicity \
- \[string range \[$this.mult.end selected\] 4 end\]
- "]
-
- # End constructor user section
- return $this
- }
-
- method CADPanel::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- method CADPanel::area {this {ar -}} {
- if {$ar == "-"} {
- return [$this _area]
- }
- $this _area $ar
- [$this symbPanel] area $ar
- $ar currentStartMultiplicity \
- [string range [$this.mult.start selected] 6 end]
- $ar currentEndMultiplicity \
- [string range [$this.mult.end selected] 4 end]
- }
-
- # Do not delete this line -- regeneration end marker
-
-