home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / clistuiobj.tcl < prev    next >
Encoding:
Text File  |  1996-05-29  |  2.0 KB  |  77 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cadre Technologies Inc.    1996
  4. #
  5. #      File:           @(#)clistuiobj.tcl    1.7
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)clistuiobj.tcl    1.7   26 Jan 1996 Copyright 1996 Cadre Technologies Inc.
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14. require "browsuiobj.tcl"
  15.  
  16. Class CListUiObj : {BrowsUiObj} {
  17.     constructor
  18.     method destructor
  19.     method controlledLists
  20.     method initializeInfo
  21. }
  22.  
  23. global CListUiObj::uiClass
  24. set CListUiObj::uiClass "ControlledLists"
  25.  
  26.  
  27. constructor CListUiObj {class this name} {
  28.     set this [BrowsUiObj::constructor $class $this $name]
  29.     # Start constructor user section
  30.  
  31.     $this uiName "<controlled lists>"
  32.     $this uiText "controlled lists"
  33.  
  34.     # End constructor user section
  35.     return $this
  36. }
  37.  
  38. method CListUiObj::destructor {this} {
  39.     # Start destructor user section
  40.     # End destructor user section
  41.     $this BrowsUiObj::destructor
  42. }
  43.  
  44. proc CListUiObj::associations {} {
  45.     return {controlledLists}
  46. }
  47.  
  48. proc CListUiObj::childTypes {assoc} {
  49.     if {[lsearch -exact "[CListUiObj::associations]" "$assoc"] == -1} {
  50.     return ""
  51.     }
  52.     return "[BrowserProcs::childTypes $assoc]"
  53. }
  54.  
  55. method CListUiObj::controlledLists {this} {
  56.     regsub -all \
  57.     \\\$this [[[$this parent] browserObjType]::controlledLists] \
  58.     "\[\$this parent\]" controlledListsCmd
  59.     set controlledLists ""
  60.     foreach cmd $controlledListsCmd {
  61.         eval lappend controlledLists $cmd
  62.     }
  63.     return $controlledLists
  64. }
  65.  
  66. proc CListUiObj::infoProperties {} {
  67.     return [BrowserProcs::infoProperties]
  68. }
  69.  
  70. method CListUiObj::initializeInfo {this dummy} {
  71.     $this BrowsUiObj::initializeInfo $dummy
  72.     $this setInfo Text "[$this uiText] of [[$this parent] getInfo Text]"
  73. }
  74.  
  75. # Do not delete this line -- regeneration end marker
  76.  
  77.