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

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1997
  4. #
  5. #      File:           @(#)dragtreeno.tcl    /main/titanic/1
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)dragtreeno.tcl    /main/titanic/1   22 Apr 1997 Copyright 1997 Cayenne Software Inc.
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14. require "treenode.tcl"
  15.  
  16. # Draggable TreeNode.
  17.  
  18. Class DragTreeNode : {TreeNode} {
  19.     constructor
  20.     method destructor
  21.     method contextList
  22.     method promoter
  23. }
  24.  
  25. constructor DragTreeNode {class this name browsUiObj} {
  26.     set this [TreeNode::constructor $class $this $name $browsUiObj]
  27.     # Start constructor user section
  28.     # End constructor user section
  29.     return $this
  30. }
  31.  
  32. method DragTreeNode::destructor {this} {
  33.     # Start destructor user section
  34.     # End destructor user section
  35.     $this TreeNode::destructor
  36. }
  37.  
  38. method DragTreeNode::contextList {this} {
  39.     set context ""
  40.     set uiObj [$this browsUiObj]
  41.     set proj [$this getParent Project]
  42.     if {"$proj" != ""} {
  43.     lappend context [$proj getInfo Identity]
  44.     set confV [$this getParent ConfigVersion]
  45.     if {"$confV" != ""} {
  46.         lappend context [$confV getInfo Identity]
  47.         set phaseV [$this getParent PhaseVersion]
  48.         if {"$phaseV" != ""} {
  49.         lappend context [$phaseV getInfo Identity]
  50.         set sysV [$this getParent SystemVersion]
  51.         if {"$sysV" != ""} {
  52.             lappend context [$sysV getInfo Identity]
  53.         }
  54.         }
  55.     }
  56.     }
  57.     lappend context [$uiObj getInfo Identity]
  58.     lappend context [$uiObj browserType]
  59.     lappend context [$uiObj uiClass]
  60.     return [list $context]
  61. }
  62.  
  63.  
  64. # Call promoter of DragObject.
  65. #
  66. method DragTreeNode::promoter {this} {
  67.     $this conversionSet "BROWSUIOBJ contextList"
  68. }
  69.  
  70. # Do not delete this line -- regeneration end marker
  71.  
  72.  
  73.  
  74.