home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 October / PCWorld_1998-10_cd.bin / software / prehled / komix / DATA.Z / ucdpanel.tcl < prev    next >
Text File  |  1997-08-21  |  2KB  |  59 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1997
  4. #
  5. #      File:           @(#)ucdpanel.tcl    /main/titanic/2
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)ucdpanel.tcl    /main/titanic/2   21 Aug 1997 Copyright 1997 Cayenne Software Inc.
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14. require "extendedco.tcl"
  15.  
  16. Class UCDPanel : {ExtendedControlPanel} {
  17.     constructor
  18.     method destructor
  19.     method updateArea
  20.     method createPanelExtension
  21.     attribute stereoPanel
  22. }
  23.  
  24. constructor UCDPanel {class this name} {
  25.     set this [ExtendedControlPanel::constructor $class $this $name]
  26.     # Start constructor user section
  27.     # End constructor user section
  28.     return $this
  29. }
  30.  
  31. method UCDPanel::destructor {this} {
  32.     # Start destructor user section
  33.     # End destructor user section
  34.     $this ExtendedControlPanel::destructor
  35. }
  36.  
  37. method UCDPanel::updateArea {this args} {
  38.     set stereoType [[$this stereoPanel] selected]
  39.     if { $stereoType == "none" } {
  40.     set stereoType ""
  41.     }
  42.  
  43.     [$this _area] currentStereoType $stereoType 
  44. }
  45.  
  46. method UCDPanel::createPanelExtension {this} {
  47.     $this stereoPanel [VerControlPanel new $this.stereo \
  48.         -entrySet { none uses extends } \
  49.         -tipSet { "No Generalization Stereotype" \
  50.         "Generalization Stereotype ½uses╗" \
  51.         "Generalization Stereotype ½extends╗" } \
  52.         -selected none \
  53.         -selectionChanged "$this updateArea"
  54.     ]
  55. }
  56.  
  57. # Do not delete this line -- regeneration end marker
  58.  
  59.