home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / dos / tools / aurora21 / cumenu.aml < prev    next >
Text File  |  1995-08-10  |  18KB  |  431 lines

  1.  
  2. // -------------------------------------------------------------------
  3. // The Aurora Editor v2.1
  4. // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
  5. //
  6. // Aurora Menu definitions (included by MAIN.AML)
  7. //
  8. // This is a CUA compliant menu definition file. It closely matches
  9. // the Borland IDE editor and the CodeWright Editor as best as possible.
  10. // This file along with the KBD.AML should be compiled together.
  11. //
  12. // CUA keyboard mapping and Menu design by
  13. // Keith Rowland (keithr@primenet.com)
  14. // 19-May-1995
  15. //
  16. // If you have made any changes, save this file and select 'Recompile
  17. // the Editor' from the Set menu. Exit and re-enter the editor for
  18. // your changes to take effect.
  19. // -------------------------------------------------------------------
  20.  
  21. // -------------------------------------------------------------------
  22. //  Edit Window menu bar and tool bar
  23. // -------------------------------------------------------------------
  24.  
  25.   function  EditMen
  26.  
  27.     // menu bar
  28.     menubar "" 1
  29.       item "&File"     "editFile"
  30.       item "&Edit"     "editEdit"
  31.       item "&Block"    "editBlock"
  32.       item "&Search"   "editSearch"
  33.       item "&Text"     "editText"
  34.       item "F&old"     "editFold"
  35.       item "M&acro"    "editMacro"
  36.       item "O&ptions"  "editSet"
  37.       item "&Window"   "editWindow"
  38.       item "&Help"     "editHelp"
  39.     end
  40.  
  41.     // tool bar
  42.     menubar "" 2
  43.       item "<&&≡>"     toolbar                 // close tool bar
  44.       item "<&&?>"     quickref 'u' 'f'        // users guide
  45.       item "<&&*>"     open "*.*"              // display file manager
  46.       item "<&&/>"     copywin                 // copy window
  47.       item "<&&/>"     copywin                 // copy window
  48.       item "<&&─>"     splitwin 'h'            // split window horz
  49.       item "<&&|>"     splitwin 'v'            // split window vert
  50.       item "<&&o>"     askopen                 // open prompt
  51.       item "<&&s>"     save                    // save file
  52.       item "<&&F>"     askfind                 // find prompt
  53.       item "<&&f>"     findlast                // do last find/replace
  54.       item "<&&r>"     formatblock2            // reformat block
  55.       item "<&&«>"     undo                    // undo last change
  56.       item "<&&»>"     redo                    // redo last change
  57.       item "<&&>>"     foldblock2              // fold block
  58.       item "<&&<>"     destroyfold2            // unfold line
  59.     end
  60.   end
  61.  
  62.  
  63. // -------------------------------------------------------------------
  64. //  Edit Window pulldown menus
  65. // -------------------------------------------------------------------
  66.  
  67.   forward print2
  68.   menu  "editFile"
  69.     item " &New                     <ctrl n>"  opennew
  70.     item " &Open..            <f3>, <ctrl o>"  askopen
  71.     item " Open and &Insert..        <alt i>"  askinsert
  72.     item " Open &Binary.."                     askopenb
  73.     item " &Rename..                 <alt n>"  askname
  74.     item " &Save              <f2>, <ctrl s>"  save
  75.     item " Save &As.."                         asksaveas
  76.     item "-"
  77.     item " &File Manager..              <f4>"  open "*.*"
  78.     item " &Next"                              nextfile
  79.     item " Pre&v"                              prevfile
  80.     item " &List..                   <alt ->"  filelist
  81.     item "─"
  82.     item " &Print                   <ctrl p>"  print2
  83.     item " Prin&ter Settings..|*"              runcfg "print"
  84.     item "─"
  85.     item " &Close         <alt q>, <ctrl f4>"  close
  86.     item " E&xit           <alt x>, <alt f4>"  closeall
  87.     item " Clos&e and Save"                    close 's'
  88.     item " Exit an&d Save All"                 closeall 's'
  89.   end
  90.  
  91.   menu  "editEdit"
  92.     item " &Undo                      <ctrl z>"  undo
  93.     item " &Redo                      <ctrl a>"  redo
  94.     item "─"
  95.     item " Cu&t                       <ctrl x>"  cut
  96.     item " Cut L&ine                  <ctrl y>"  cut
  97.     item " Cut &Append          <shift ctrl x>"  cut 'a'
  98.     item " Cut Append Li&ne     <shift ctrl y>"  cut 'a'
  99.     item " &Copy                      <ctrl c>"  copy
  100.     item " Cop&y Append         <shift ctrl c>"  copy 'a'
  101.     item " Copy to &Windows           <ctrl u>"  copy 'w'
  102.     item "─"
  103.     item " &Paste                     <ctrl v>"  paste
  104.     item " Paste &Over          <shift ctrl v>"  paste 'o'
  105.     item " Paste &from Windows  <shift ctrl u>"  paste 'w'
  106.     item " &Delete                       <del>"  paste 'w'
  107.       if getmarkbuf == getcurrbuf then
  108.         deleteblock
  109.       end
  110.     item "─"
  111.     item " C&lear                   <ctrl del>"  clear
  112.     item " Current Clip&board..|*"               askclip
  113.   end
  114.  
  115.   menu  "editMark"
  116.     item " Mark &Line         <alt l>"   markline
  117.     item " Mark &Column       <alt k>"   markcolumn
  118.     item " Mark C&haracter"              markchar
  119.     item " Mark &Word         <alt 1>"   markword
  120.     item " Mark to &EOL       <alt 2>"   markeol
  121.     item " Mark &Paragraph    <alt 3>"   markpara "tb"
  122.     item "─"
  123.     item " &Unmark            <alt u>"   destroymark
  124.   end
  125.  
  126.   menu  "editBlock"
  127.     item " Mar&k..                      "    submenu "editMark"
  128.     item " &Copy                  <alt c>"    copyblock2
  129.     item " Copy &Over                    "    copyblockover
  130.     item " &Move                  <alt m>"    moveblock2
  131.     item " Mo&ve Over            <ctrl m>"    moveblockover
  132.     item " &Delete                <alt d>"    deleteblock2
  133.     item " &Indent             <shift f8>"    shiftblock  1
  134.     item " Uninden&t           <shift f7>"    shiftblock -1
  135.     item "─"
  136.     item " &Fill              <ctrl k><f>"    fillblock2
  137.     item " &Reformat              <alt r>"    formatblock2
  138.     item " R&eformat Right        <alt y>"    formatblock2 "rj"
  139.     item " S&ave..            <ctrl k><s>"    saveblock2
  140.     item " &Sort              <ctrl k><o>"    sortblock2
  141.     item " Lo&wercase"                        caseblock 'l'
  142.     item " U&ppercase         <ctrl k><u>"    caseblock
  143.     item "─"
  144.     item " &Left Justify"                     justblock2 'l'
  145.     item " Ri&ght Justify"                    justblock2 'r'
  146.     item " Ce&nter            <ctrl k><c>"    justblock2 'c'
  147.   end
  148.  
  149.   menu  "editSearch"
  150.     item " &Find..             <f5>, <ctrl f>"   askfind
  151.     item " Re&place..                <ctrl g>"   askrepl
  152.     item " &Repeat Last Find/Repl    <ctrl l>"   findlast
  153.     item " &Scan Files..          <ctrl q><s>"   askscan
  154.     item " &Incremental Search       <ctrl i>"   isearch
  155.     item " Find &Occurrences..       <ctrl h>"   askfindo
  156.     item "─"
  157.     item " &Quick Bookmark           <ctrl 2>"   quickbook
  158.     item " Pre&v Bookmark            <ctrl 6>"   cyclebook
  159.     item " Place &Bookmark.."                    placebook
  160.     item " &Go to Bookmark.."                    askbook
  161.     item "─"
  162.     item " Go to &Line..             <ctrl j>"   askrow
  163.     item " Go to Bloc&k Start        <ctrl b>"   gotomark 't'
  164.     item " Go to Block En&d"                     gotomark 'b'
  165.     item " Go to Ne&xt Fold           <alt 7>"   search2 "f/f"
  166.     item "─"
  167.     item " Find &Matching Char       <ctrl ]>"   gotomatch2
  168.     item " Go to Compiler &Error     <alt f7>"   gotoerror
  169.   end
  170.  
  171.   menu  "editText"
  172.     item " &Insert Line       <ctrl enter>"   insline2
  173.     item " &Delete Line       <ctrl baksp>"   delline
  174.     item " &Split Line"                       splitline2
  175.     item " &Join Line              <alt j>"   joinline
  176.     item "─"
  177.     item " &Erase to End          <alt f6>"   delchar (getlinelen)
  178.     item " Delete Right &Word     <ctrl t>"   delword
  179.     item " Du&plicate Line         <alt 4>"   insline (gettext)
  180.     item " Sw&ap Lines             <alt 5>"   swapline
  181.     item " Ce&nter Line            <alt 6>"   centerline
  182.     item "─"
  183.     item " &Comment Line          <alt f1>"   commentline
  184.     item " Enter &Literal..       <ctrl [>"   literal
  185.     item " ASCII C&hart..          <alt =>"   asciilist
  186.     item " Date/&Time Stamp    <ctrl k><t>"   timestamp
  187.     item " E&xpand Tabs        <ctrl k><x>"   tabfile
  188.     item " Hi&ghlight Word       <ctrl \\>"   hiliteword
  189.   end
  190.  
  191.   menu  "editFold"
  192.     item " &Fold Next Line          <alt 8>"    foldline
  193.     item " &Unfold Next Line        <alt 9>"    foldline 'u'
  194.     item "─"
  195.     item " C&reate Fold"                        createfold
  196.     item " &Destroy Fold            <alt g>"    destroyfold2
  197.     item " &Open Fold               <alt \\>"   openfold
  198.     item " &Close Fold              <alt \\>"   closefold
  199.     item "─"
  200.     item " Fold Bloc&k"                         foldblock2
  201.     item " Fold Block Fl&at"                    foldflat
  202.     item " Des&troy Block Folds"                foldblock 'ds'
  203.     item " O&pen Block Folds"                   foldblock 'os'
  204.     item " C&lose Block Folds"                  foldblock 'cs'
  205.     item "─"
  206.     item " Destro&y All Folds"                  foldall 'ds'
  207.     item " Ope&n All Folds          <alt [>"    foldall 'os'
  208.     item " Clo&se All Folds         <alt ]>"    foldall 'cs'
  209.     item "─"
  210.     item " &Export without Folds.."             asksaveas 'x'
  211.     item " E&xport Block without Folds.."       saveblock2 'x'
  212.   end
  213.  
  214.   menu  "editMacro"
  215.     item " &Record Toggle        <ctrl r>"    record
  216.     item " &Play                 <ctrl e>"    play
  217.     item " &Erase"                            erasekey
  218.     item " Era&se All"                        erasekey 'a'
  219.     item " Ope&n.."                           askopenkey
  220.     item " Sa&ve.."                           asksavekey
  221.     item " &Assign to Key.."                  assignkey
  222.     item "─"
  223.     item " &Macro List..       <ctrl f12>"    runmac "maclist"
  224.     item " &Key Assignments.."                opencfg "kbd"
  225.     item " Sho&w Available Keys.."            runmac "keydef"
  226.     item "─"
  227.     item " Macro E&xpression..  <alt f12>"    askeval
  228.     item " R&un Macro.."                      askrmacro
  229.     item " Compi&le Macro.."                  askcmacro
  230.     item "─"
  231.     item " &OS Command..         <alt f9>|*"  askrun
  232.     item " OS Cap&ture..                 "    askruncap
  233.     item " OS S&hell                 <f9>|*"  shell
  234.   end
  235.  
  236.   // Note: do not change the first 12 lines of this menu
  237.   // (except for key definitions)
  238.   menu  "editSet"
  239.     item " &AutoIndent"                        setting 'A' TOGGLE
  240.     item " &Backup"                            setting 'B' TOGGLE
  241.     item " Line &Draw              <ctrl d>"   setting 'D' TOGGLE
  242.     item " Line St&yle..                  "   submenu "LineStyle"
  243.     item " &Match Character"                   setting 'M' TOGGLE
  244.     item " &Smart Tabs"                        setting 'S' TOGGLE
  245.     item " Synta&x Highlighting"               setting 'X' TOGGLE
  246.     item " &Translate                      "   setting 'T' TOGGLE
  247.     item " &Undo"                              setting 'U' TOGGLE
  248.     item " &Variable Tabs"                     setting 'V' TOGGLE
  249.     item " &Word Wrap"                         setting 'W' TOGGLE
  250.     item " &Live Word Wrap         <ctrl w>"   setting 'L' TOGGLE
  251.     item "─"
  252.     item " Mar&gins and Tabs..|*"              runcfg "marg"
  253.     item " &Line Delimiter Options..|*"        runcfg "ldlm"
  254.     item "─"
  255.     item " &Configuration and Setup..|*"       runcfg "main"
  256.     item " Save Co&nfiguration"                savecfg
  257.     item "─"
  258.     item " &Recompile the Editor   <alt f2>"   recompile
  259.   end
  260.  
  261.   // Note: do not change this menu (except for key definitions)
  262.   menu  "LineStyle"
  263.     item " &Single"               setdraw 0
  264.     item " Double &Horizontal"    setdraw 1
  265.     item " Double &Vertical"      setdraw 2
  266.     item " &Double"               setdraw 3
  267.     item " &Eraser"               setdraw 4
  268.   end
  269.  
  270.   menu  "editWindow"
  271.     item " &Restore"                       restore
  272.     item " &Move/Size         <ctrl f5>"   sizekey
  273.     item " P&an               <ctrl f6>"   pankey
  274.     item " M&inimize         <alt down>"   minimize
  275.     item " Ma&ximize           <alt up>"   maximize
  276.     item " &Next                   <f6>"   nextwindow
  277.     item " &Prev             <shift f6>"   prevwindow
  278.     item " &List..              <alt 0>"   winlist
  279.     item "─"
  280.     item " &Copy"                          copywin
  281.     item " Split Hor&z"                    splitwin 'h'
  282.     item " Split Ver&t          <alt v>"   splitwin 'v'
  283.     item "─"
  284.     item " Ca&scade          <shift f5>"   cascade
  285.     item " Tile &Horz        <shift f4>"   tile 'h'
  286.     item " Tile &Vert        <shift f3>"   tile 'v'
  287.     item "─"
  288.     item " Tool &Bar          <ctrl f8>"   toolbar
  289.     item " Pr&ompt Style.."                runcfg "prom"
  290.   end
  291.  
  292.   menu  "editHelp"
  293.     item " &User's Guide Topics"                     runmac "helpuser"
  294.     item " User's &Guide"                            quickref 'u'
  295.     item " User &Tips"                               quickref 't'
  296.     item "-"
  297.     item " &Language Reference Topics"               runmac "helplang"
  298.     item " Language &Reference"                      quickref 'l'
  299.     item "-"
  300.     item " &Function Reference          <shift f2>"  quickref 'f'
  301.     item " Function &Quick Reference    <shift f1>"  quickref 'q'
  302.     item "-"
  303.     item " &Ordering Information"                    quickref 'o'
  304.     item "-"
  305.     item " &About.."                                 about
  306.   end
  307.  
  308. // -------------------------------------------------------------------
  309. //  File Manager window menu bar
  310. // -------------------------------------------------------------------
  311.  
  312.   function  FmgrMen
  313.     menubar "" 1
  314.       item "&File"    "fmgrFile"
  315.       item "&Mark"    "fmgrMark"
  316.       item "&Command" "fmgrCommand"
  317.       item "&Sort"    "fmgrSort"
  318.       item "M&acro"   "editMacro"
  319.       item "O&ptions" "fmgrSet"
  320.       item "&Window"  "fmgrWindow"
  321.       item "&Help"    "editHelp"
  322.     end
  323.   end
  324.  
  325. // -------------------------------------------------------------------
  326. //  File Manager window pulldown menus
  327. // -------------------------------------------------------------------
  328.  
  329.   menu  "fmgrFile"
  330.     item " &New                   <ctrl n>"  opennew
  331.     item " &Open..          <f3>, <ctrl o>"  askopen
  332.     item " Open &Binary.."                   askopenb
  333.     item " Open Las&t              <alt z>"  openlast
  334.     item " Par&ent        <ctrl backspace>"  fup
  335.     item " &Refresh"                         reopen
  336.     item "─"
  337.     item " &Print                 <ctrl p>"  print
  338.     item " Prin&ter Settings..|*"            runcfg "print"
  339.     item "─"
  340.     item " &Close       <alt q>, <ctrl f4>"  close
  341.     item " E&xit         <alt x>, <alt f4>"  closeall
  342.   end
  343.  
  344.   menu  "fmgrMark"
  345.     item " Mark &Toggle     <space>"     fmark
  346.     item "─"
  347.     item " Mar&k All        <alt k>"     fmark "ma"
  348.     item " &Unmark All      <alt u>"     fmark "ua"
  349.   end
  350.  
  351.   menu  "fmgrCommand"
  352.     item " &Open                  <enter>"    fopen
  353.     item " Open &Binary         <shift b>"    fopen 'b'
  354.     item " Open &Key Macro      <shift k>"    openkey2 (getffile)
  355.     item "─"
  356.     item " &Move..              <shift m>"    fmove
  357.     item " &Copy..              <shift c>"    fcopy
  358.     item " &Delete       <del>, <shift d>"    fdelete
  359.     item " Re&name..            <shift n>"    frename
  360.     item "─"
  361.     item " &Run                 <shift r>"    frun 'c'
  362.     item " &Print               <shift p>"    fprint
  363.     item "─"
  364.     item " &Attributes..        <shift a>"    fattr
  365.     item " &Touch               <shift t>"    ftouch
  366.     item "─"
  367.     item " Cr&eate Directory.."               fmkdir
  368.     item " &Scan Files..      <ctrl q><s>"    askscan
  369.   end
  370.  
  371.   menu  "fmgrSort"
  372.     item " &Name           <alt n>"    fsort 'n'
  373.     item " &Extension      <alt e>"    fsort 'e'
  374.     item " &Size"                      fsort 's'
  375.     item " &Date-Time      <alt d>"    fsort 'd'
  376.     item " &OS Default"                fsort 'o'
  377.   end
  378.  
  379.   menu  "fmgrSet"
  380.     item " Confir&mations..|*"                     runcfg "conf"
  381.     item " &File Manager Options..|*"              runcfg "fmgr"
  382.     item " &Line Delimiter Options..|*"            runcfg "ldlm"
  383.     item "-"
  384.     item " &Configuration and Setup..|*"           runcfg "main"
  385.     item " Save Co&nfiguration"                    savecfg
  386.     item "-"
  387.     item " &Recompile the Editor   <alt f2>"       recompile
  388.   end
  389.  
  390.   menu "fmgrWindow"
  391.     item " &Restore"                      restore
  392.     item " &Move/Size        <ctrl f5>"   sizekey
  393.     item " P&an              <ctrl f6>"   pankey
  394.     item " M&inimize        <alt down>"   minimize
  395.     item " Ma&ximize          <alt up>"   maximize
  396.     item " &Next                  <f6>"   nextwindow
  397.     item " &Prev            <shift f6>"   prevwindow
  398.     item " &List..             <alt 0>"   winlist
  399.     item "─"
  400.     item " Ca&scade         <shift f5>"   cascade
  401.     item " Tile &Horz       <shift f4>"   tile 'h'
  402.     item " Tile &Vert       <shift f3>"   tile 'v'
  403.     item "─"
  404.     item " Pr&ompt Style.."               runcfg "prom"
  405.   end
  406.  
  407. // -------------------------------------------------------------------
  408. //  Miscellaneous menus
  409. // -------------------------------------------------------------------
  410.  
  411.   // yes/no/cancel popup menu
  412.   menu  "ync"
  413.     item " &Yes"
  414.     item " &No"
  415.     item " &Cancel"
  416.   end
  417.  
  418.   // ok/cancel popup menu
  419.   menu  "ok"
  420.     item " O&k"
  421.     item " &Cancel"
  422.   end
  423.  
  424.   // replace/append/cancel popup menu
  425.   menu  "rac"
  426.     item " &Replace"
  427.     item " &Append"
  428.     item " &Cancel"
  429.   end
  430.  
  431.