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

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