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

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cadre Technologies Inc.    1996
  4. #
  5. #      File:           @(#)lockbrobje.tcl    /main/titanic/2
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)lockbrobje.tcl    /main/titanic/2   2 Jul 1997 Copyright 1996 Cadre Technologies Inc.
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14.  
  15. Class LockBrObject : {BrowsObject} {
  16.     constructor
  17.     method destructor
  18.     attribute lock
  19. }
  20.  
  21. constructor LockBrObject {class this name ldes} {
  22.     set this [BrowsObject::constructor $class $this $name]
  23.     $this lock [$ldes id]
  24.     # Start constructor user section
  25.  
  26.         switch [$ldes types] {
  27.             Read    { $this smallIcon rep_rlock_16 }
  28.             Write    { $this smallIcon rep_wlock_16 }
  29.             default    { $this smallIcon rep_clock_16 }
  30.         }
  31.  
  32.     # End constructor user section
  33.     return $this
  34. }
  35.  
  36. method LockBrObject::destructor {this} {
  37.     # Start destructor user section
  38.     # End destructor user section
  39. }
  40.  
  41. # Do not delete this line -- regeneration end marker
  42.  
  43.