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

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1997
  4. #
  5. #      File:           @(#)newccfiled.tcl    /main/titanic/4
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)newccfiled.tcl    /main/titanic/4   25 Nov 1997 Copyright 1997 Cayenne Software Inc.
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14. require_module_file "newvsfiled.tcl" vcm
  15.  
  16. Class NewCCFileDialog : {NewVSFileDialog} {
  17.     constructor
  18.     method destructor
  19.     method createInterface
  20.     method createVSFile
  21. }
  22.  
  23. constructor NewCCFileDialog {class this name} {
  24.     set this [NewVSFileDialog::constructor $class $this $name]
  25.     # Start constructor user section
  26.     # End constructor user section
  27.     return $this
  28. }
  29.  
  30. method NewCCFileDialog::destructor {this} {
  31.     # Start destructor user section
  32.     # End destructor user section
  33.     $this NewVSFileDialog::destructor
  34. }
  35.  
  36.  
  37. # Add creation comments to the dialog.
  38. #
  39. method NewCCFileDialog::createInterface {this} {
  40.     $this NewVSFileDialog::createInterface
  41.  
  42.     # Adjust the interface
  43.     $this title "New ClearCase File"
  44.     
  45.     Label new $this.DC.L -text "Creation comments:"
  46.     MultiLineText new $this.DC.CCFileComment -columnCount 80
  47.     $this helpPressed { .main helpOnName newClearcaseFile }
  48. }
  49.  
  50.  
  51. # Create the ClearCase file.
  52. #
  53. method NewCCFileDialog::createVSFile {this name type} {
  54.     wmtkmessage "Creating ClearCase file '$name'"
  55.  
  56.     vsCommandHandler suspendOutput
  57.     busy {
  58.     set comment [$this.DC.CCFileComment text]
  59.     set ccSystem [[ClientContext::global] currentSystem]
  60.     set ccFile [$ccSystem createVSFile $name $type "$comment"]
  61.  
  62.     .main updateView
  63.     }
  64.     wmtkmessage ""
  65.     vsCommandHandler showOutput
  66.  
  67.     return $ccFile
  68. }
  69.  
  70. # Do not delete this line -- regeneration end marker
  71.  
  72.