home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / revengpbdl.tcl < prev    next >
Text File  |  1997-04-01  |  2KB  |  63 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1997
  4. #
  5. #      File:           @(#)revengpbdl.tcl    /main/hindenburg/3
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)revengpbdl.tcl    /main/hindenburg/3   1 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 "revengdlg.tcl"
  15.  
  16. Class RevEngPbDlg : {RevEngDlg} {
  17.     method destructor
  18.     constructor
  19.     method getOptions
  20. }
  21.  
  22. method RevEngPbDlg::destructor {this} {
  23.     # Start destructor user section
  24.     # End destructor user section
  25.     $this RevEngDlg::destructor
  26. }
  27.  
  28. constructor RevEngPbDlg {class this name} {
  29.     set this [RevEngDlg::constructor $class $this $name \
  30.         "PowerBuilder" "reveng_pb"]
  31.  
  32.     interface DlgRow $this.top.case {
  33.                 verStretchFactor 0
  34.                 verShrinkFactor 0
  35.                 Label lab {
  36.                         text Case
  37.                 }
  38.                 OptionMenu kind {
  39.                         entrySet {
  40.                                 "First Case"
  41.                                 "Upper Case"
  42.                                 "Lower Case"
  43.                         }
  44.                         selected "First Case"
  45.                 }
  46.     }
  47.  
  48.     return $this
  49. }
  50.  
  51. method RevEngPbDlg::getOptions {this} {
  52.     set script [$this RevEngDlg::getOptions]
  53.  
  54.     case "[$this.top.case.kind selected]" in {
  55.         {"First Case"} {append script " -IF"}
  56.         {"Upper Case"} {append script " -IU"}
  57.         {"Lower Case"} {append script " -IL"}
  58.     }
  59.     return $script
  60. }
  61.  
  62. # Do not delete this line -- regeneration end marker
  63.