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

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1997
  4. #
  5. #      File:           @(#)mteditmenu.tcl    /main/titanic/1
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)mteditmenu.tcl    /main/titanic/1   7 Aug 1997 Copyright 1997 Cayenne Software Inc.
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14.  
  15. Class MTEditMenuProcs : {Object} {
  16.     constructor
  17.     method destructor
  18. }
  19.  
  20. constructor MTEditMenuProcs {class this name} {
  21.     set this [Object::constructor $class $this $name]
  22.     # Start constructor user section
  23.     # End constructor user section
  24.     return $this
  25. }
  26.  
  27. method MTEditMenuProcs::destructor {this} {
  28.     # Start destructor user section
  29.     # End destructor user section
  30. }
  31.  
  32. proc MTEditMenuProcs::selectAll {} {
  33.  
  34.     [.main infoView] selectedSet [[.main infoView] objectSet]
  35.     .main selectionChanged
  36. }
  37.  
  38. proc MTEditMenuProcs::invertSelection {} {
  39.  
  40.     foreach object [[.main infoView] objectSet] {
  41.         $object selectState [expr {![$object selectState]}]
  42.     }
  43.     .main selectionChanged
  44. }
  45.  
  46. # Do not delete this line -- regeneration end marker
  47.  
  48.