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

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1997
  4. #
  5. #      File:           @(#)mergedialo.tcl    /main/titanic/2
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)mergedialo.tcl    /main/titanic/2   14 Nov 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 MergeDialog : {EntryDialog} {
  16.     constructor
  17.     method destructor
  18.     method handleOK
  19.     attribute from
  20.     attribute to
  21. }
  22.  
  23. constructor MergeDialog {class this name} {
  24.     set this [EntryDialog::constructor $class $this $name]
  25.     # Start constructor user section
  26.     $this modal yes
  27.     $this message "Comment:                                     "
  28.     $this okPressed {%this handleOK}
  29.     $this title "Merge Version"
  30.     # End constructor user section
  31.     return $this
  32. }
  33.  
  34. method MergeDialog::destructor {this} {
  35.     # Start destructor user section
  36.     # End destructor user section
  37. }
  38.  
  39. method MergeDialog::handleOK {this} {
  40.  
  41.     [[$this to] version] createMergeLink [[$this from] version] [$this entry]
  42.     set curSet [[.main infoView] mergeArrowSet]
  43.     append curSet " [$this from] [$this to] "
  44.     [$this to] update
  45.     [.main infoView] mergeArrowSet $curSet
  46.     
  47. }
  48.  
  49. # Do not delete this line -- regeneration end marker
  50.  
  51.