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

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1997
  4. #
  5. #      File:           @(#)revengpbdl.tcl    /main/titanic/2
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)revengpbdl.tcl    /main/titanic/2   16 Jun 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.     interface CheckButton $this.top.association {
  49.         label "Reverse engineer associations"
  50.         state 1
  51.     }
  52.  
  53.     return $this
  54. }
  55.  
  56. method RevEngPbDlg::getOptions {this} {
  57.     set script [$this RevEngDlg::getOptions]
  58.  
  59.     case "[$this.top.case.kind selected]" in {
  60.         {"First Case"} {append script " -IF"}
  61.         {"Upper Case"} {append script " -IU"}
  62.         {"Lower Case"} {append script " -IL"}
  63.     }
  64.     if [$this.top.association state] {
  65.         append script " -a rev_assoc.tcl"
  66.     }
  67.     return $script
  68. }
  69.  
  70. # Do not delete this line -- regeneration end marker
  71.