home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / diagram.mnu < prev    next >
Text File  |  1997-04-11  |  21KB  |  1,138 lines

  1. registerObject {
  2.     name        .file
  3.     type        CustMenuBarButton
  4.     objSpec        {
  5.         label        File
  6.         mnemonic    F
  7.     }
  8. }
  9.  
  10. registerObject {
  11.     name        .file.menu
  12.     type        CustMenu
  13.     objSpec        {
  14.         pinnable    1
  15.     }
  16. }
  17.  
  18. registerObject {
  19.     name        .edit
  20.     type        CustMenuBarButton
  21.     objSpec        {
  22.         label        Edit
  23.         mnemonic    E
  24.     }
  25. }
  26.  
  27. registerObject {
  28.     name        .edit.menu
  29.     type        CustMenu
  30.     objSpec        {
  31.         pinnable    1
  32.     }
  33. }
  34.  
  35. registerObject {
  36.     name        .view
  37.     type        CustMenuBarButton
  38.     objSpec        {
  39.         label        View
  40.         mnemonic    V
  41.     }
  42. }
  43.  
  44. registerObject {
  45.     name        .view.menu
  46.     type        CustMenu
  47.     objSpec        {
  48.         pinnable    1
  49.     }
  50. }
  51.  
  52. registerObject {
  53.     name        .item
  54.     type        CustMenuBarButton
  55.     objSpec        {
  56.         label        Item
  57.         mnemonic    I
  58.     }
  59. }
  60.  
  61. registerObject {
  62.     name        .item.menu
  63.     type        CustMenu
  64.     objSpec        {
  65.         pinnable    1
  66.     }
  67. }
  68.  
  69. registerObject {
  70.     name        .options
  71.     type        CustMenuBarButton
  72.     objSpec        {
  73.         label        Options
  74.         mnemonic    O
  75.     }
  76. }
  77.  
  78. registerObject {
  79.     name        .options.menu
  80.     type        CustMenu
  81.     objSpec        {
  82.         pinnable    1
  83.     }
  84. }
  85.  
  86. registerObject {
  87.     name        .check
  88.     type        CustMenuBarButton
  89.     objSpec        {
  90.         label        Check
  91.         mnemonic    C
  92.     }
  93. }
  94.  
  95. registerObject {
  96.     name        .check.menu
  97.     type        CustMenu
  98.     objSpec        {
  99.         pinnable    1
  100.     }
  101. }
  102.  
  103. registerObject {
  104.     name        .utilities
  105.     type        CustMenuBarButton
  106.     objSpec        {
  107.         label        Utilities
  108.         mnemonic    U
  109.     }
  110. }
  111.  
  112. registerObject {
  113.     name        .utilities.menu
  114.     type        CustMenu
  115.     objSpec        {
  116.         pinnable    1
  117.     }
  118. }
  119.  
  120. registerObject {
  121.     name        .help
  122.     type        CustMenuBarButton
  123.     objSpec        {
  124.         label        Help
  125.         mnemonic    H
  126.         helpButton    1
  127.     }
  128. }
  129.  
  130. registerObject {
  131.     name        .help.menu
  132.     type        CustMenu
  133.     objSpec        {
  134.         pinnable    1
  135.     }
  136. }
  137.  
  138. registerObject {
  139.     name        .file.menu.reload
  140.     type        CustMenuPushButton
  141.     objSpec        {
  142.         hintText    "Reloads this diagram."
  143.         label        Reload
  144.         mnemonic    l
  145.         activated    {
  146.             #CTGENCommandScript
  147.             .main edit [.main fileVersion] 
  148.             #CTGENEndCommandScript    
  149.         }
  150.         operations    {diagram edit}
  151.     }
  152. }
  153.  
  154. registerObject {
  155.     name        .file.menu.openbyname
  156.     type        CustMenuPushButton
  157.     objSpec        {
  158.         hintText    "Opens the diagram with the specified name."
  159.         label        {Open By Name...}
  160.         mnemonic    N
  161.         accelerator    Ctrl+N
  162.         activated    {
  163.             #CTGENCommandScript
  164.             .main openByName 
  165.             #CTGENEndCommandScript    
  166.         }
  167.         operations    edit
  168.     }
  169. }
  170.  
  171. registerObject {
  172.     name        .file.menu.open
  173.     type        CustMenuPushButton
  174.     inToolBar    1
  175.     inPopUpMenu    1
  176.     objSpec        {
  177.         hintText    "Opens a diagram for the selected component."
  178.         label        Open
  179.         mnemonic    O
  180.         accelerator    Ctrl+O
  181.         toolBarPixmap    open_16
  182.         activated    {
  183.             #CTGENCommandScript
  184.             .main open 
  185.             #CTGENEndCommandScript    
  186.         }
  187.         operations    open
  188.     }
  189. }
  190.  
  191. registerObject {
  192.     name        .file.menu.close
  193.     type        CustMenuPushButton
  194.     inToolBar    1
  195.     objSpec        {
  196.         hintText    "Closes this diagram."
  197.         label        Close
  198.         mnemonic    C
  199.         toolBarPixmap    close_16
  200.         activated    {
  201.             #CTGENCommandScript
  202.             .main close 
  203.             #CTGENEndCommandScript    
  204.         }
  205.     }
  206. }
  207.  
  208. registerObject {
  209.     name        .file.menu.read
  210.     type        CustMenuPushButton
  211.     objSpec        {
  212.         hintText    "Adds the contents of another diagram."
  213.         label        Read...
  214.         mnemonic    R
  215.         activated    {
  216.             #CTGENCommandScript
  217.             .main read 
  218.             #CTGENEndCommandScript    
  219.         }
  220.         operations    read
  221.     }
  222. }
  223.  
  224. registerObject {
  225.     name        .file.menu.save
  226.     type        CustMenuPushButton
  227.     inToolBar    1
  228.     objSpec        {
  229.         hintText    "Saves the changes made to this diagram."
  230.         label        Save
  231.         toolBarPixmap    save_16
  232.         mnemonic    S
  233.         accelerator    Ctrl+S
  234.         activated    {
  235.             #CTGENCommandScript
  236.             .main save 
  237.             #CTGENEndCommandScript    
  238.         }
  239.         operations    save
  240.     }
  241. }
  242.  
  243. registerObject {
  244.     name        .file.menu.properties
  245.     type        CustCascadeButton
  246.     objSpec        {
  247.         hintText    "Contains commands to handle file properties."
  248.         label        Properties
  249.         mnemonic    t
  250.     }
  251. }
  252.  
  253. registerObject {
  254.     name        .file.menu.properties.menu
  255.     type        CustMenu
  256. }
  257.  
  258. registerObject {
  259.     name        .file.menu.print
  260.     type        CustMenuPushButton
  261.     inToolBar    1
  262.     objSpec        {
  263.         hintText    "Prints this diagram."
  264.         label        Print
  265.         mnemonic    P
  266.         accelerator    Ctrl+P
  267.         toolBarPixmap    print_16
  268.         activated    {
  269.             #CTGENCommandScript
  270.             .main print 
  271.             #CTGENEndCommandScript    
  272.         }
  273.         operations    diagram
  274.     }
  275. }
  276.  
  277. registerObject {
  278.     name        .file.menu.separator1
  279.     type        CustMenuSeparator
  280.     objSpec        {
  281.     }
  282. }
  283.  
  284. registerObject {
  285.     name        .file.menu.separator2
  286.     type        CustMenuSeparator
  287.     objSpec        {
  288.     }
  289. }
  290.  
  291. registerObject {
  292.     name        .file.menu.exit
  293.     type        CustMenuPushButton
  294.     objSpec        {
  295.         hintText    "Exits the editor."
  296.         label        Exit
  297.         mnemonic    x
  298.         activated    {
  299.             #CTGENCommandScript
  300.             .main exit 
  301.             #CTGENEndCommandScript    
  302.         }
  303.         operations    edit
  304.     }
  305. }
  306.  
  307. registerObject {
  308.     name        .file.menu.properties.menu.edit
  309.     type        CustMenuPushButton
  310.     objSpec        {
  311.         hintText    "Edits the file properties of this diagram."
  312.         label        Edit...
  313.         mnemonic    E
  314.         accelerator    Ctrl+D
  315.         activated    {
  316.             #CTGENCommandScript
  317.             .main editDiagramProperties 
  318.             #CTGENEndCommandScript    
  319.         }
  320.         operations    save
  321.     }
  322. }
  323.  
  324. registerObject {
  325.     name        .file.menu.properties.menu.show
  326.     type        CustMenuPushButton
  327.     objSpec        {
  328.         hintText    "Shows the file properties of this diagram."
  329.         label        Show...
  330.         mnemonic    S
  331.         activated    {
  332.             #CTGENCommandScript
  333.             .main showDiagramProperties 
  334.             #CTGENEndCommandScript    
  335.         }
  336.         operations    diagram
  337.     }
  338. }
  339.  
  340. registerObject {
  341.     name        .file.menu.properties.menu.delete
  342.     type        CustMenuPushButton
  343.     objSpec        {
  344.         hintText    "Deletes the file properties of this diagram."
  345.         label        Delete...
  346.         mnemonic    D
  347.         activated    {
  348.             #CTGENCommandScript
  349.             .main removeDiagramProperties 
  350.             #CTGENEndCommandScript    
  351.         }
  352.         operations    save
  353.     }
  354. }
  355.  
  356. registerObject {
  357.     name        .edit.menu.undo
  358.     type        CustMenuPushButton
  359.     inPopUpMenu    1
  360.     objSpec        {
  361.         hintText    "Undoes the last edit action."
  362.         label        Undo
  363.         mnemonic    U
  364.         accelerator    Ctrl+Z
  365.         activated    {
  366.             #CTGENCommandScript
  367.             [.main editorArea] toggleUndo 
  368.             #CTGENEndCommandScript    
  369.         }
  370.         operations    undo
  371.     }
  372. }
  373.  
  374. registerObject {
  375.     name        .edit.menu.separator1
  376.     type        CustMenuSeparator
  377.     objSpec        {
  378.     }
  379. }
  380.  
  381. registerObject {
  382.     name        .edit.menu.cut
  383.     type        CustMenuPushButton
  384.     inToolBar    1
  385.     inPopUpMenu    1
  386.     objSpec        {
  387.         hintText    "Cuts the selection and places it on the clipboard."
  388.         label        Cut
  389.         mnemonic    t
  390.         accelerator    Ctrl+X
  391.         toolBarPixmap    cut_16
  392.         activated    {
  393.             #CTGENCommandScript
  394.             [.main editorArea] cutSelection
  395.             #CTGENEndCommandScript    
  396.         }
  397.         operations    {delete copyToClipboard}
  398.     }
  399. }
  400.  
  401. registerObject {
  402.     name        .edit.menu.copy
  403.     type        CustMenuPushButton
  404.     inToolBar    1
  405.     inPopUpMenu    1
  406.     objSpec        {
  407.         hintText    "Copies the selected components to the clipboard."
  408.         label        Copy
  409.         mnemonic    C
  410.         accelerator    Ctrl+C
  411.         toolBarPixmap    copy_16
  412.         activated    {
  413.             #CTGENCommandScript
  414.             [.main editorArea] copyToClipboard 
  415.             #CTGENEndCommandScript    
  416.         }
  417.         operations    copyToClipboard
  418.     }
  419. }
  420.  
  421. registerObject {
  422.     name        .edit.menu.paste
  423.     type        CustMenuPushButton
  424.     inToolBar    1
  425.     inPopUpMenu    1
  426.     objSpec        {
  427.         hintText    "Pastes the text on the clipboard in the label."
  428.         label        Paste
  429.         mnemonic    P
  430.         accelerator    Ctrl+V
  431.         toolBarPixmap    paste_16
  432.         activated    {
  433.             #CTGENCommandScript
  434.             [.main editorArea] pasteFromClipboard
  435.             #CTGENEndCommandScript    
  436.         }
  437.         operations    pasteFromClipboard
  438.     }
  439. }
  440.  
  441. registerObject {
  442.     name        .edit.menu.delete
  443.     type        CustMenuPushButton
  444.     inToolBar    1
  445.     inPopUpMenu    1
  446.     objSpec        {
  447.         hintText    "Deletes the selected components."
  448.         label        Delete
  449.         mnemonic    l
  450.         accelerator    Ctrl+Del
  451.         toolBarPixmap    delete_16
  452.         activated    {
  453.             #CTGENCommandScript
  454.             [.main editorArea] deleteSelection 
  455.             #CTGENEndCommandScript    
  456.         }
  457.         operations    delete
  458.     }
  459. }
  460.  
  461. registerObject {
  462.     name        .edit.menu.separator2
  463.     type        CustMenuSeparator
  464.     objSpec        {
  465.     }
  466. }
  467.  
  468. registerObject {
  469.     name        .edit.menu.move
  470.     type        CustMenuPushButton
  471.     inPopUpMenu    1
  472.     objSpec        {
  473.         hintText    "Moves the selected components."
  474.         label        Move
  475.         mnemonic    M
  476.         accelerator    Ctrl+Tab
  477.         activated    {
  478.             #CTGENCommandScript
  479.             [.main editorArea] moveSelection 
  480.             #CTGENEndCommandScript    
  481.         }
  482.         operations    move
  483.     }
  484. }
  485.  
  486. registerObject {
  487.     name        .edit.menu.duplicate
  488.     type        CustMenuPushButton
  489.     objSpec        {
  490.         hintText    "Duplicates the selected components."
  491.         label        Duplicate
  492.         mnemonic    D
  493.         activated    {
  494.             #CTGENCommandScript
  495.             [.main editorArea] copySelection 
  496.             #CTGENEndCommandScript    
  497.         }
  498.         operations    copy
  499.     }
  500. }
  501.  
  502. registerObject {
  503.     name        .edit.menu.replace
  504.     type        CustMenuPushButton
  505.     objSpec        {
  506.         hintText    "Replaces the selected component."
  507.         label        Replace
  508.         mnemonic    R
  509.         accelerator    Ctrl+R
  510.         activated    {
  511.             #CTGENCommandScript
  512.             [.main editorArea] replaceSelection 
  513.             #CTGENEndCommandScript    
  514.         }
  515.         operations    replace
  516.     }
  517. }
  518.  
  519. registerObject {
  520.     name        .edit.menu.separator3
  521.     type        CustMenuSeparator
  522. }
  523.  
  524. registerObject {
  525.     name        .edit.menu.selectall
  526.     type        CustMenuPushButton
  527.     objSpec        {
  528.         hintText    "Selects all components."
  529.         label        "Select All"
  530.         mnemonic    A
  531.         accelerator    Ctrl+A
  532.         activated    {
  533.             #CTGENCommandScript
  534.             [.main editorArea] selectAll 
  535.             #CTGENEndCommandScript    
  536.         }
  537.         operations    diagram
  538.     }
  539. }
  540.  
  541. registerObject {
  542.     name        .edit.menu.deselectall
  543.     type        CustMenuPushButton
  544.     objSpec        {
  545.         hintText    "Deselects all components."
  546.         label        "Deselect All"
  547.         mnemonic    s
  548.         accelerator    Ctrl+\\
  549.         activated    {
  550.             #CTGENCommandScript
  551.             [.main editorArea] deselectAll 
  552.             #CTGENEndCommandScript    
  553.         }
  554.         operations    diagram
  555.     }
  556. }
  557.  
  558. registerObject {
  559.     name        .edit.menu.center
  560.     type        CustMenuPushButton
  561.     objSpec        {
  562.         hintText    "Centers the diagram."
  563.         label        Center
  564.         mnemonic    e
  565.         activated    {
  566.             #CTGENCommandScript
  567.             [.main editorArea] center 
  568.             #CTGENEndCommandScript    
  569.         }
  570.         operations    center
  571.     }
  572. }
  573.  
  574. registerObject {
  575.     name        .view.menu.toolbar
  576.     type        CustMenuCheckButton
  577.     objSpec        {
  578.         hintText    "Shows or hides the toolbar."
  579.         label        ToolBar
  580.         mnemonic    T
  581.         state        1
  582.         stateChanged    {
  583.             #CTGENCommandScript
  584.             .main toolBarPresent [[.main menuBar].view.menu.toolbar state]
  585.             #CTGENEndCommandScript    
  586.         }
  587.     }
  588. }
  589.  
  590. registerObject {
  591.     name        .view.menu.contextarea
  592.     type        CustMenuCheckButton
  593.     objSpec        {
  594.         hintText    "Shows or hides the context area."
  595.         label        "Context Area"
  596.         mnemonic    C
  597.         state        1
  598.         stateChanged    {
  599.             #CTGENCommandScript
  600.             .main contextAreaPresent [[.main menuBar].view.menu.contextarea state]
  601.             #CTGENEndCommandScript    
  602.         }
  603.     }
  604. }
  605.  
  606. registerObject {
  607.     name        .view.menu.messagearea
  608.     type        CustMenuCheckButton
  609.     objSpec        {
  610.         hintText    "Shows or hides the message area."
  611.         label        "Message Area"
  612.         mnemonic    M
  613.         state        1
  614.         stateChanged    {
  615.             #CTGENCommandScript
  616.             .main messageAreaPresent [[.main menuBar].view.menu.messagearea state]
  617.             #CTGENEndCommandScript    
  618.         }
  619.     }
  620. }
  621.  
  622. registerObject {
  623.     name        .item.menu.changename
  624.     type        CustMenuPushButton
  625.     objSpec        {
  626.         hintText    "Changes the name of the selected item."
  627.         label        {Change Name...}
  628.         mnemonic    N
  629.         activated    {
  630.             #CTGENCommandScript
  631.             .main popUpNameDialog 
  632.             #CTGENEndCommandScript    
  633.         }
  634.         operations    {item save}
  635.     }
  636. }
  637.  
  638. registerObject {
  639.     name        .item.menu.editscope
  640.     type        CustMenuPushButton
  641.     objSpec        {
  642.         hintText    "Edits the scope of the selected item."
  643.         label        {Edit Scope...}
  644.         mnemonic    c
  645.         activated    {
  646.             #CTGENCommandScript
  647.             .main popUpScopeDialog 
  648.             #CTGENEndCommandScript    
  649.         }
  650.         operations    {item}
  651.     }
  652. }
  653.  
  654. registerObject {
  655.     name        .item.menu.editproperties
  656.     type        CustMenuPushButton
  657.     inPopUpMenu    1
  658.     objSpec        {
  659.         hintText    "Edits properties of selected components."
  660.         label        {Edit Properties...}
  661.         mnemonic    E
  662.         accelerator    Ctrl+E
  663.         activated    {
  664.             #CTGENCommandScript
  665.             .main editProperties 
  666.             #CTGENEndCommandScript    
  667.         }
  668.         operations    {item save}
  669.     }
  670. }
  671.  
  672. registerObject {
  673.     name        .item.menu.showproperties
  674.     type        CustMenuPushButton
  675.     inPopUpMenu    1
  676.     objSpec        {
  677.         hintText    "Shows properties of selected components."
  678.         label        {Show Properties...}
  679.         mnemonic    S
  680.         activated    {
  681.             #CTGENCommandScript
  682.             .main showProperties 
  683.             #CTGENEndCommandScript    
  684.         }
  685.         operations    item
  686.     }
  687. }
  688.  
  689. registerObject {
  690.     name        .item.menu.deleteproperties
  691.     type        CustMenuPushButton
  692.     objSpec        {
  693.         hintText    "Deletes properties of selected components."
  694.         label        {Delete Properties...}
  695.         mnemonic    D
  696.         activated    {
  697.             #CTGENCommandScript
  698.             .main removeProperties 
  699.             #CTGENEndCommandScript    
  700.         }
  701.         operations    {item save}
  702.     }
  703. }
  704.  
  705. registerObject {
  706.     name        .options.menu.redraw
  707.     type        CustMenuPushButton
  708.     objSpec        {
  709.         hintText    "Redraws the diagram."
  710.         label        Redraw
  711.         mnemonic    R
  712.         activated    {
  713.             #CTGENCommandScript
  714.             [.main editorArea] redraw
  715.             #CTGENEndCommandScript    
  716.         }
  717.     }
  718. }
  719.  
  720. registerObject {
  721.     name        .options.menu.zoomout
  722.     type        CustMenuPushButton
  723.     inToolBar    1
  724.     objSpec        {
  725.         hintText    "Uses a smaller scale factor for displaying."
  726.         label        {Zoom Out}
  727.         mnemonic    Z
  728.         toolBarPixmap    zmout_16
  729.         activated    {
  730.             #CTGENCommandScript
  731.             [.main options] zoomOut
  732.             #CTGENEndCommandScript    
  733.         }
  734.     }
  735. }
  736.  
  737. registerObject {
  738.     name        .options.menu.zoomin
  739.     type        CustMenuPushButton
  740.     inToolBar    1
  741.     objSpec        {
  742.         hintText    "Uses a larger scale factor for displaying."
  743.         label        {Zoom In}
  744.         mnemonic    I
  745.         toolBarPixmap    zmin_16
  746.         activated    {
  747.             #CTGENCommandScript
  748.             [.main options] zoomIn
  749.             #CTGENEndCommandScript    
  750.         }
  751.     }
  752. }
  753.  
  754. registerObject {
  755.     name        .options.menu.grid
  756.     type        CustMenuPushButton
  757.     objSpec        {
  758.         hintText    "Changes the size of the positioning grid."
  759.         label        Grid...
  760.         mnemonic    G
  761.         activated    {
  762.             #CTGENCommandScript
  763.             [.main options] grid
  764.             #CTGENEndCommandScript    
  765.         }
  766.     }
  767. }
  768.  
  769. registerObject {
  770.     name        .options.menu.font
  771.     type        CustCascadeButton
  772.     objSpec        {
  773.         hintText    "Contains commands for changing fonts."
  774.         label        Font
  775.         mnemonic    n
  776.     }
  777. }
  778.  
  779. registerObject {
  780.     name        .options.menu.font.menu
  781.     type        CustMenu
  782. }
  783.  
  784. registerObject {
  785.     name        .options.menu.font.menu.normal
  786.     type        CustMenuPushButton
  787.     objSpec        {
  788.         hintText    "Changes the normal font."
  789.         label        Normal...
  790.         mnemonic    N
  791.         activated    {
  792.             #CTGENCommandScript
  793.             [.main options] normalFont 
  794.             #CTGENEndCommandScript    
  795.         }
  796.     }
  797. }
  798.  
  799. registerObject {
  800.     name        .options.menu.font.menu.annotation
  801.     type        CustMenuPushButton
  802.     objSpec        {
  803.         hintText    "Changes the annotation font."
  804.         label        Annotation...
  805.         mnemonic    A
  806.         activated    {
  807.             #CTGENCommandScript
  808.             [.main options] annotationFont 
  809.             #CTGENEndCommandScript    
  810.         }
  811.     }
  812. }
  813.  
  814. registerObject {
  815.     name        .options.menu.color
  816.     type        CustCascadeButton
  817.     objSpec        {
  818.         hintText    "Contains commands for changing colors."
  819.         label        Color
  820.         mnemonic    C
  821.     }
  822. }
  823.  
  824. registerObject {
  825.     name        .options.menu.color.menu
  826.     type        CustMenu
  827. }
  828.  
  829. registerObject {
  830.     name        .options.menu.color.menu.foreground
  831.     type        CustMenuPushButton
  832.     objSpec        {
  833.         hintText    "Changes the foreground color."
  834.         label        Foreground...
  835.         mnemonic    F
  836.         activated    {
  837.             #CTGENCommandScript
  838.             [.main options] foreground
  839.             #CTGENEndCommandScript    
  840.         }
  841.     }
  842. }
  843.  
  844. registerObject {
  845.     name        .options.menu.color.menu.background
  846.     type        CustMenuPushButton
  847.     objSpec        {
  848.         hintText    "Changes the background color."
  849.         label        Background...
  850.         mnemonic    B
  851.         activated    {
  852.             #CTGENCommandScript
  853.             [.main options] background
  854.             #CTGENEndCommandScript    
  855.         }
  856.     }
  857. }
  858.  
  859. registerObject {
  860.     name        .options.menu.color.menu.selection
  861.     type        CustMenuPushButton
  862.     objSpec        {
  863.         hintText    "Changes the color for selection dots."
  864.         label        Selection...
  865.         mnemonic    S
  866.         activated    {
  867.             #CTGENCommandScript
  868.             [.main options] selectionColor
  869.             #CTGENEndCommandScript    
  870.         }
  871.     }
  872. }
  873.  
  874. registerObject {
  875.     name        .options.menu.printoptions
  876.     type        CustMenuPushButton
  877.     objSpec        {
  878.         hintText    "Changes options for printing."
  879.         label        {Print Options...}
  880.         mnemonic    O
  881.         activated    {
  882.             #CTGENCommandScript
  883.             [.main options] printOptions
  884.             #CTGENEndCommandScript    
  885.         }
  886.     }
  887. }
  888.  
  889. registerObject {
  890.     name        .options.menu.printersetup
  891.     type        CustMenuPushButton
  892.     objSpec        {
  893.         hintText    "Changes settings for the graphical printer."
  894.         label        {Printer Setup...}
  895.         mnemonic    P
  896.         activated    {
  897.             #CTGENCommandScript
  898.             [.main options] psPrinterSetup 
  899.             #CTGENEndCommandScript    
  900.         }
  901.     }
  902. }
  903.  
  904. registerObject {
  905.     name        .options.menu.pointerfocus
  906.     type        CustMenuCheckButton
  907.     objSpec        {
  908.         hintText    "Changes keyboard focus policy for labels."
  909.         label        {Pointer Focus}
  910.         mnemonic    F
  911.         stateChanged    {
  912.             #CTGENCommandScript
  913.             [.main editorArea] pointerFocus [%this state]
  914.             #CTGENEndCommandScript    
  915.         }
  916.     }
  917. }
  918.  
  919. registerObject {
  920.     name        .check.menu.contents
  921.     type        CustMenuPushButton
  922.     objSpec        {
  923.         hintText    "Checks the contents of this diagram."
  924.         label        Contents
  925.         mnemonic    C
  926.         activated    {
  927.             #CTGENCommandScript
  928.             .main checkContents
  929.             #CTGENEndCommandScript    
  930.         }
  931.         operations    check
  932.     }
  933. }
  934.  
  935. registerObject {
  936.     name        .utilities.menu.classbrowser
  937.     type        CustMenuPushButton
  938.     objSpec        {
  939.         hintText    "Starts the class browser."
  940.         label        {Class Browser}
  941.         mnemonic    C
  942.         activated    {
  943.             #CTGENCommandScript
  944.             set script "SystemUtilities::fork otk clbrowser -c [list [get_comm_name]]"
  945.             .main startCommand tcl $script "" "Starting Class Browser" {0 0} 1
  946.             #CTGENEndCommandScript    
  947.         }
  948.         operations    diagram
  949.     }
  950. }
  951.  
  952. registerObject {
  953.     name        .utilities.menu.monitoringwindow
  954.     type        CustMenuPushButton
  955.     objSpec        {
  956.         hintText    "Opens an output only window for a command."
  957.         label        {Monitoring Window...}
  958.         mnemonic    M
  959.         activated    {
  960.             #CTGENCommandScript
  961.             .main startExetool mtool
  962.             #CTGENEndCommandScript    
  963.         }
  964.     }
  965. }
  966.  
  967. registerObject {
  968.     name        .utilities.menu.executionwindow
  969.     type        CustMenuPushButton
  970.     objSpec        {
  971.         hintText    "Opens an interactive window for a command."
  972.         label        {Execution Window...}
  973.         mnemonic    x
  974.         activated    {
  975.             #CTGENCommandScript
  976.             .main startExetool xtool
  977.             #CTGENEndCommandScript    
  978.         }
  979.     }
  980. }
  981.  
  982. registerObject {
  983.     name        .utilities.menu.reports
  984.     type        CustCascadeButton
  985.     objSpec        {
  986.         hintText    "Contains commands for generating reports."
  987.         label        Reports
  988.         mnemonic    R
  989.     }
  990. }
  991.  
  992. registerObject {
  993.     name        .utilities.menu.reports.menu
  994.     type        CustMenu
  995.     objSpec        {
  996.         pinnable    1
  997.     }
  998. }
  999.  
  1000. registerObject  {
  1001.     name        .utilities.menu.reports.menu.onitemsandproperties
  1002.     type        CustMenuPushButton
  1003.     visible        {1 1 1 1 1}
  1004.     objSpec        {
  1005.         hintText    "Generates a report on items and their properties."
  1006.         label        {On Items And Properties...}
  1007.         mnemonic    I
  1008.         activated    {
  1009.             #CTGENCommandScript
  1010.             set box .main.reportOptions
  1011.             EntryDialog new $box \
  1012.                 -modal yes \
  1013.                 -title "Report Options" \
  1014.                 -message "Property Name(s):" \
  1015.                 -helpPressed {.main helpOnName propertyNames} \
  1016.                 -cancelPressed {.main.reportOptions delete} \
  1017.                 -okPressed {
  1018.                 set opts [.main.reportOptions entry]
  1019.                 if {$opts != ""} {
  1020.                     set opts "-o $opts"
  1021.                 }
  1022.                 set file "items.tcl $opts"
  1023.                 set msg "On Items And Properties"
  1024.                 .main startReport $file $msg
  1025.                 .main.reportOptions delete
  1026.                 }
  1027.             $box popUp
  1028.             #CTGENEndCommandScript    
  1029.         }
  1030.         operations    diagram
  1031.     }
  1032. }
  1033.  
  1034. registerObject  {
  1035.     name        .utilities.menu.reports.menu.oncomponentsandproperties
  1036.     type        CustMenuPushButton
  1037.     visible        {1 1 1 1 1}
  1038.     objSpec        {
  1039.         hintText    "Generates a report on components and their properties."
  1040.         label        {On Components And Properties...}
  1041.         mnemonic    p
  1042.         activated    {
  1043.             #CTGENCommandScript
  1044.             set box .main.reportOptions
  1045.             EntryDialog new $box \
  1046.                 -modal yes \
  1047.                 -title "Report Options" \
  1048.                 -message "Property Name(s):" \
  1049.                 -helpPressed {.main helpOnName propertyNames} \
  1050.                 -cancelPressed {.main.reportOptions delete} \
  1051.                 -okPressed {
  1052.                 set opts [.main.reportOptions entry]
  1053.                 if {$opts != ""} {
  1054.                     set opts "-o $opts"
  1055.                 }
  1056.                 set msg "On Components And Properties"
  1057.                 .main startReport "components.tcl $opts" $msg
  1058.                 .main.reportOptions delete
  1059.                 }
  1060.             $box popUp
  1061.             #CTGENEndCommandScript    
  1062.         }
  1063.         operations    diagram
  1064.     }
  1065. }
  1066.  
  1067. registerObject {
  1068.     name        .utilities.menu.separator1
  1069.     type        CustMenuSeparator
  1070.     objSpec        {
  1071.     }
  1072. }
  1073.  
  1074. registerObject {
  1075.     name        .utilities.menu.deleteunreferenceditems
  1076.     type        CustMenuPushButton
  1077.     objSpec        {
  1078.         hintText    "Deletes all work items without a reference."
  1079.         label        {Delete Unreferenced Items}
  1080.         mnemonic    U
  1081.         activated    {
  1082.             #CTGENCommandScript
  1083.             .main removeUnreferencedItems
  1084.             #CTGENEndCommandScript    
  1085.         }
  1086.         operations    diagram
  1087.     }
  1088. }
  1089.  
  1090. registerObject {
  1091.     name        .help.menu.whatsthis
  1092.     type        CustMenuPushButton
  1093.     objSpec        {
  1094.         hintText    "Shows help about the selected component."
  1095.         label        "What's This?"
  1096.         mnemonic    W
  1097.         activated    {
  1098.             #CTGENCommandScript
  1099.             .main helpOnContext 
  1100.             #CTGENEndCommandScript    
  1101.         }
  1102.     }
  1103. }
  1104.  
  1105.  
  1106. registerObject {
  1107.     type    CustMenuPushButton
  1108.     name    .help.menu.helptopics
  1109.     objSpec {
  1110.     hintText    "Shows help topics."
  1111.     label        "Help Topics"
  1112.     mnemonic    T
  1113.     activated    {showHelpTopics}
  1114.     }
  1115. }
  1116.  
  1117. registerObject  {
  1118.     name        .help.menu.productdocumentation
  1119.     type        CustMenuPushButton
  1120.     objSpec        {
  1121.         label        {Product Documentation}
  1122.         hintText    {Starts online documentation.}
  1123.         activated    {
  1124.             #CTGENMessage
  1125.             wmtkmessage {Start online documentation ...}
  1126.             #CTGENBusyCursorOn
  1127.             .main busy TRUE
  1128.             #CTGENCommandScript
  1129.             startOnlineDoc 
  1130.             #CTGENEndCommandScript    
  1131.             #CTGENRemoveMessage
  1132.             wmtkmessage ""
  1133.             #CTGENBusyCursorOff
  1134.             .main busy FALSE
  1135.         }
  1136.     }
  1137. }
  1138.